Download presentation
Presentation is loading. Please wait.
Published byRoland Elliott Modified over 9 years ago
2
1 Sequences Rosen 6 th ed., §2.4
3
2 Sequences A sequence represents an ordered list of elements.A sequence represents an ordered list of elements. Formally: A sequence or series {a n } is identified with a generating function f:S A for some subset S N (often S=N or S=N {0}) and for some set A.Formally: A sequence or series {a n } is identified with a generating function f:S A for some subset S N (often S=N or S=N {0}) and for some set A. If f is a generating function for a series {a n }, then for n S, the symbol a n denotes f(n), also called term n of the sequence.If f is a generating function for a series {a n }, then for n S, the symbol a n denotes f(n), also called term n of the sequence.
4
3 Sequence Example An example of an infinite series:An example of an infinite series: –Consider the series {a n } = a 1, a 2, …, where ( n 1) a n = f(n) = 1/n. –Then {a n } = 1, 1/2, 1/3, …
5
4 Example with Repetitions Consider the sequence {b n } = b 0, b 1, … (note 0 is an index) where b n = ( 1) n.Consider the sequence {b n } = b 0, b 1, … (note 0 is an index) where b n = ( 1) n. {b n } = 1, 1, 1, 1, …{b n } = 1, 1, 1, 1, … Note repetitions!Note repetitions! {b n } denotes an infinite sequence of 1’s and 1’s, not the 2-element set {1, 1}.{b n } denotes an infinite sequence of 1’s and 1’s, not the 2-element set {1, 1}.
6
5 Recognizing Sequences Sometimes, you’re given the first few terms of a sequence, and you are asked to find the sequence’s generating function, or a procedure to enumerate the sequence.Sometimes, you’re given the first few terms of a sequence, and you are asked to find the sequence’s generating function, or a procedure to enumerate the sequence. Examples: What’s the next number?Examples: What’s the next number? –1,2,3,4,… –1,3,5,7,9,… –2,3,5,7,11,... 5 (the 5th smallest number >0) 11 (the 6th smallest odd number >0) 13 (the 6th smallest prime number)
7
6 The Trouble with Recognition The problem of finding “the” generating function given just an initial subsequence is not well defined.The problem of finding “the” generating function given just an initial subsequence is not well defined. This is because there are infinitely many computable functions that will generate any given initial subsequence.This is because there are infinitely many computable functions that will generate any given initial subsequence. We implicitly are supposed to find the simplest such function (because this one is assumed to be most likely), but, how should we define the simplicity of a function?We implicitly are supposed to find the simplest such function (because this one is assumed to be most likely), but, how should we define the simplicity of a function? –We might define simplicity as the reciprocal of complexity, but… –There are many plausible, competing definitions of complexity, and this is an active research area. So, these questions really have no objective right answer!So, these questions really have no objective right answer!
8
7 Summations Rosen 6 th ed., §2.4
9
8 Summation Notation Given a series {a n }, an integer lower bound (or limit) j 0, and an integer upper bound k j, then the summation of {a n } from j to k is written and defined as follows:Given a series {a n }, an integer lower bound (or limit) j 0, and an integer upper bound k j, then the summation of {a n } from j to k is written and defined as follows: Here, i is called the index of summation.Here, i is called the index of summation.
10
9 Generalized Summations For an infinite series, we may write:For an infinite series, we may write: To sum a function over all members of a set X={x 1, x 2, …}:To sum a function over all members of a set X={x 1, x 2, …}: Or, if X={x|P(x)}, we may just write:Or, if X={x|P(x)}, we may just write:
11
10 Simple Summation Example
12
11 More Summation Examples An infinite series with a finite sum:An infinite series with a finite sum: Using a predicate to define a set of elements to sum over:Using a predicate to define a set of elements to sum over:
13
12 Summation Manipulations Some handy identities for summations:Some handy identities for summations: (Index shifting.)
14
13 More Summation Manipulations (Order reversal.) (Series splitting.)
15
14 Example: Geometric Series A geometric series is a series of the formA geometric series is a series of the form a, ar, ar 2, ar 3, …, ar k, where a,r R. a, ar, ar 2, ar 3, …, ar k, where a,r R. The sum of such a series is given by:The sum of such a series is given by: We can reduce this to closed form via clever manipulation of summations...We can reduce this to closed form via clever manipulation of summations...
16
15 Nested Summations These have the meaning you’d expect.These have the meaning you’d expect. Note issues of free vs. bound variables, just like in quantified expressions, integrals, etc.Note issues of free vs. bound variables, just like in quantified expressions, integrals, etc.
17
16 More Series Geometric series Arithmetic Series (Euler’s trick) Quadratic series Cubic series
18
17 More Series Infinite Geometric
19
18 Example Evaluate. Evaluate. –Use series splitting. –Solve for desired summation. –Apply quadratic series rule. –Evaluate.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.