Presentation is loading. Please wait.

Presentation is loading. Please wait.

Sequences & Summations CS 1050 Rosen 3.2. Sequence A sequence is a discrete structure used to represent an ordered list. A sequence is a function from.

Similar presentations


Presentation on theme: "Sequences & Summations CS 1050 Rosen 3.2. Sequence A sequence is a discrete structure used to represent an ordered list. A sequence is a function from."— Presentation transcript:

1 Sequences & Summations CS 1050 Rosen 3.2

2 Sequence A sequence is a discrete structure used to represent an ordered list. A sequence is a function from a subset of the set of integers (usually either the set {0,1,2,...} or {1,2, 3,...}to a set S. We use the notation a n to denote the image of the integer n. We call a n a term of the sequence. Notation to represent sequence is {a n }

3 Examples {1, 1/2, 1/3, 1/4,...} or the sequence {a n } where a n = 1/n, n  Z +. {1,2,4,8,16,...} = {a n } where a n = 2 n, n  N. {1 2,2 2,3 2,4 2,...} = {a n } where a n = n 2, n  Z +

4 Common Sequences Arithmetica, a+d, a+2d, a+3d, a+4d, … n2n2 1, 4, 9, 16, 25,... n3n3 1, 8, 27, 64, 125,... n4n4 1, 16, 81, 256, 625,... 2n2n 2, 4, 8, 16, 32,... 3n3n 3, 9, 27, 81, 243,... n!1, 2, 6, 24, 120,...

5 Summations Notation for describing the sum of the terms a m, a m+1,..., a n from the sequence, {a n } n a m +a m+1 +... + a n =  a j j=m j is the index of summation (dummy variable) The index of summation runs through all integers from its lower limit, m, to its upper limit, n.

6 Examples

7 Summations follow all the rules of multiplication and addition! c(1+2+…+n) = c + 2c +…+ nc

8 Telescoping Sums Example

9 Closed Form Solutions A simple formula that can be used to calculate a sum without doing all the additions. Example: Proof: First we note that k 2 - (k-1) 2 = k 2 - (k 2 -2k+1) = 2k-1. Since k 2 -(k-1) 2 = 2k-1, then we can sum each side from k=1 to k=n

10 Proof (cont.)

11 Closed Form Solutions to Sums

12 Double Summations

13 Cardinality Earlier we defined cardinality of a set as the number of elements in the set. We can extend this idea to infinite sets. The sets A and B have the same cardinality if and only if there is a one-to-one correspondence from A to B. A set that is either finite or has the same cardinality as the set of natural numbers is called countable. A set that is not countable is called uncountable.

14 Cardinality Cardinality of set of natural numbers? An infinite set is countable if and only if it is possible to list the elements in a sequence (indexed by the positive integers). –Why? A one-to-one correspondence f can be expressed in terms of the sequence a 1, a 2, a 3 …., where a 1 = f(1), a 2 =f(2), etc. –One-to-one correspondence for set of odd positive integers (in terms of positive integers)? f(n) = 2n - 1


Download ppt "Sequences & Summations CS 1050 Rosen 3.2. Sequence A sequence is a discrete structure used to represent an ordered list. A sequence is a function from."

Similar presentations


Ads by Google