Download presentation
1
Sequences and Summations
CSE 260
2
Outline Sequences Special Integer Sequences Summations
Cardinality: countable, uncountable infinite sets Exercise 1.7
3
Sequences Definition A sequence is a function from a subset of N, the set of natural numbers, to a set S. Notation an, called term of the sequence, denotes the image of the integer n. {an} denotes the sequence. Do not confuse the above with set notation.
4
Examples For the sequence {an}, where an=1/n for n=1,2,3…
a1=1, a2=1/2, a3=1/3, a4=1/4, … The sequence {bn}, where bn= (-1)n for n=0,1,2,3… starts with: 1, -1, 1, -1, 1, … The sequence {cn}, where cn= 2n for n=0, 1, 2, 3… starts with: 1, 2, 4, 8, 16, … Strings are sequences of the form a1a2…an. The length of the string is the number of its terms. The empty string is the string that has no terms.
5
Special Integer Sequences
To deduce a possible formula (rule) for the terms of a sequence from initial terms, ask the following: Are there runs of the same value? Are terms obtained from previous terms by adding the same amount or an amount that depends on the position in the sequence? Are terms obtained from previous terms by multiplying by a particular amount? Are terms obtained by combining previous terms in a certain way?
6
Examples Consider the sequence 1, 2, 2, 3, 3, 3, 4, 4, 4, 4…
Rule? An integer n appears exactly n times. Consider the sequence 5, 11, 17, 23, 29, 35, 41, 47, 53, 59… Rule? 5 + 6n Arithmetic progression: a + nd 1, 7, 25, 79, 341, 727, 2185, 6559, 19681, 59047… Rule? 3n-2
7
Useful Sequences nth Term First 10 Terms n2
1, 4, 9, 16, 25, 36, 49, 64, 81, 100, … n3 1, 8, 27, 64, 125, 216, 343, 512, 729, 1000, … n4 1, 16, 81,256,625,1296,2401,4096,6561,10000,… 2n 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, … n! 1,2,6,24,120,720,5040,40320,362880, ,…
8
Summations Consider the sequence {an}.
We define the following summation: j=mn aj = am+ am+1+ … +an. Terminology: j is called the index of summation, m is the lower limit, n is the upper limit.
9
Examples The sum of the first 100 terms of the sequence {an}, where an = 1/n for n=1, 2, 3… can be expressed as: j=1100 1/j The value of k=48 (-1) k is k=48 (-1) k = (-1)4 + (-1)5 + (-1)6 + (-1)7 + (-1)8 = 1 + (-1) (-1) + 1 = 1 The value of j=15 j2 is j=15 j = = = 55
10
Summations – Cont. Shifting the index of summation:
Let’s consider the sum j=15 j2 Let k = j-1 (i.e. j = k+1) j=15 j2 = k=04 (k+1)2 A geometric progression is a sequence of the form a, ar, ar2, …, ark A geometric series is the sum of terms of a geometric progression: S= j=0n arj It can be shown that if r0, j=0n arj = (arn+1 – a) / (r -1)
11
Useful Summation Formulae
Closed form k=0n ark (arn+1 – a) / (r -1), r1 k=1n k n (n+1) / 2 k=1n k2 n (n+1) (2n+1) / 6 k=1n k3 n2 (n+1)2 / 4
12
Double Summation i=14 j=13 i j = i=14 (i + 2i + 3i) = i=14 (6i)
= = 60
13
Summation over an Indexed Set
sS f(s) represents the sum of the values f(s) for all elements s of S. Example s{0,2,4} s2 = = 20
14
Example k=50100 k2 = ? k=1100 k2 = k=149 k2 + k=50100 k2, then
= 100101201/6 - 495099/6 = 338,350 – 40,425 = 297,925.
15
Cardinality - Countable/Uncountable Sets
Definition The sets A and B have the same cardinality if and only if there is a one-to-one correspondence (bijection) from A to B. Definition A set that is either finite or has the same cardinality as the set N of natural numbers is called countable. That is, an infinite set is countable if it is possible to list its elements in a sequence (indexed by the natural numbers). A set that is not countable is called uncountable.
16
Countable/Uncountable Sets
Notes The union of two countable sets is countable. A subset of a countable set is countable. If A is uncountable and AB then B is uncountable.
17
Examples The set O ={1, 3, 5, 7, …} of all odd positive integers is countable. Proof. Consider the function f(n)=2n+1 from N to O. It can easily be shown that f is a bijection. The set Z of integers is countable. The set Q of rational numbers is countable. The set R of real numbers is uncountable.
18
Exercise 1.7
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.