1 Sequences Rosen 6 th ed., §2.4 2 Sequences A sequence represents an ordered list of elements.A sequence represents an ordered list of elements. e.g.,

Slides:



Advertisements
Similar presentations
22C:19 Discrete Math Sequence and Sums Fall 2011 Sukumar Ghosh.
Advertisements

Series Brought to you by Tutorial Services – The Math Center.
A sequence is a set of numbers arranged in a definite order
Chapter 4 Mathematical Induction Used to verify a property of a sequence 2,4,6,8,… for i >= 1 a i = 2i –infinite sequence with infinite distinct values.
Sequences & Summations Section 2.4 of Rosen Fall 2008 CSCE 235 Introduction to Discrete Structures Course web-page: cse.unl.edu/~cse235 Questions:
1 Section 3.2 Sequences and Summations. 2 Sequence Function from a subset of Z (usually the set beginning with 1 or 0) to a set S a n denotes the image.
Sequences and Series A sequence is an ordered list of numbers where each term is obtained according to a fixed rule. A series, or progression, is a sum.
Introduction to sequences and series A sequence is a listing of numbers. For example, 2, 4, 6, 8,... or 1, 3, 5,... are the sequences of even positive.
Number Sequences Lecture 7: Sep 29 ? overhang. This Lecture We will study some simple number sequences and their properties. The topics include: Representation.
MATH 224 – Discrete Mathematics
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.
Lecture 9. Arithmetic and geometric series and mathematical induction
Sequences and Summations
2015 년 봄학기 강원대학교 컴퓨터과학전공 문양세 이산수학 (Discrete Mathematics) 수열과 합 (Sequences and Summations)
Section 2.4. Section Summary Sequences. Examples: Geometric Progression, Arithmetic Progression Recurrence Relations Example: Fibonacci Sequence Summations.
Copyright © 2007 Pearson Education, Inc. Slide 8-1.
Copyright © 2011 Pearson Education, Inc. Slide
Introduction to sequences and series
SEQUENCES AND SERIES Arithmetic. Definition A series is an indicated sum of the terms of a sequence.  Finite Sequence: 2, 6, 10, 14  Finite Series:2.
Sequences and Summations
Section 2.4. Section Summary Sequences. Examples: Geometric Progression, Arithmetic Progression Recurrence Relations Example: Fibonacci Sequence Summations.
Arithmetic Series. Definition of an arithmetic series. The sum of the terms in an arithmetic sequence.
1 Sequences Rosen 6 th ed., §2.4 2 Sequences A sequence represents an ordered list of elements.A sequence represents an ordered list of elements. Formally:
Discrete math Bijections 2 A function f is a one-to-one correspondence, or a bijection or reversible, or invertible, iff it is both one-to-one and onto.
Aim: Summation Notation Course: Alg. 2 & Trig. Do Now: Aim: What is this symbol It’s Greek to me! Find the sum of the geometric series.
Sequences Math 4 MM4A9: Students will use sequences and series.
Based on Rosen, Discrete Mathematics & Its Applications, 5e Prepared by (c) Michael P. Frank Modified by (c) Haluk Bingöl 1/18 Module.
Module #12: Summations Rosen 5 th ed., §3.2 Based on our knowledge on sequence, we can move on to summations easily.
Sequences & Series MATH Precalculus S. Rook.
강원대학교 컴퓨터과학전공 문양세 이산수학 (Discrete Mathematics) 수열과 합 (Sequences and Summations)
Review Write an explicit formula for the following sequences.
Sequences and Summations Section 2.4. Section Summary Sequences. – Examples: Geometric Progression, Arithmetic Progression Recurrence Relations – Example:
2014 년 봄학기 강원대학교 컴퓨터과학전공 문양세 이산수학 (Discrete Mathematics) 수열과 합 (Sequences and Summations)
Module #10: Proof Strategies Rosen 5 th ed., §3.1 (already covered)
Lecture#15 Discrete Mathematics. Summation Computing Summation Let a 0 = 2, a 1 = 3, a 2 = -2, a 3 = 1 and a 4 = 0. Compute each of the summations: =
Fall 2008/2009 I. Arwa Linjawi & I. Asma’a Ashenkity 11 Basic Structure : Sets, Functions, Sequences, and Sums Sequences and Summations.
13.3 Arithmetic and Geometric Series and Their Sums Finite Series.
8.1 CompSci 102© Michael Frank Today’s topics Integers & Number TheoryIntegers & Number Theory – –Sequences – –Summations Reading: Sections 3.2Reading:
Based on Rosen, Discrete Mathematics & Its Applications, 5e Prepared by (c) Michael P. Frank Modified by (c) Haluk Bingöl 1/18 Module.
Lecture # 20 Sequence & Series
8.1 – Sequences and Series. Sequences Infinite sequence = a function whose domain is the set of positive integers a 1, a 2, …, a n are the terms of the.
Arithmetic Sequences and Series Section Objectives Use sequence notation to find terms of any sequence Use summation notation to write sums Use.
8.1 CompSci 102© Michael Frank Today’s topics Integers & Number TheoryIntegers & Number Theory – –More proof techniques – –Sequences – –Summations Reading:
22C:19 Discrete Structures Sequence and Sums Fall 2014 Sukumar Ghosh.
CS 2210 (22C:19) Discrete Structures Sequence and Sums
The sum of the infinite and finite geometric sequence
11.3 – Geometric Sequences and Series
Solve the problem progression and series
Review Write an explicit formula for the following sequences.
The symbol for summation is the Greek letter Sigma, S.
CS 2210:0001 Discrete Structures Sequence and Sums
Mathematical Induction Recursion
VCU, Department of Computer Science CMSC 302 Sequences and Summations Vojislav Kecman 9/19/2018.
Rosen 5th ed., §3.2 ~19 slides, ~1 lecture
Rosen 5th ed., §3.2 ~19 slides, ~1 lecture
Rosen 5th ed., §3.2 ~9 slides, ~½ lecture
Copyright © Cengage Learning. All rights reserved.
ICS 253: Discrete Structures I
CS 2210:0001 Discrete Structures Sequence and Sums
Sequences and Series.
Sets, Sequences, and Summations
Geometric Sequences.
SUMMATION or SIGMA NOTATION
Recurrences (Method 4) Alexandra Stefan.
Rosen 5th ed., §3.2 ~9 slides, ~½ lecture
9.1 Sequences Sequences are ordered lists generated by a
Discrete Mathematics and its Applications
Discrete Mathematics and its Applications
9.5 Series.
Warm Up Use summation notation to write the series for the specified number of terms …; n = 7.
Presentation transcript:

1 Sequences Rosen 6 th ed., §2.4

2 Sequences A sequence represents an ordered list of elements.A sequence represents an ordered list of elements. e.g., {a n } = 1, 1/2, 1/3, 1/4, … e.g., {a n } = 1, 1/2, 1/3, 1/4, … 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. e.g., a n = f(n) = 1/n. e.g., a n = f(n) = 1/n. The symbol a n denotes f(n), also called term n of the sequence.The symbol a n denotes f(n), also called term n of the sequence.

3 Example with Repetitions Consider the sequence b n = (  1) n.Consider the sequence b n = (  1) n. {b n } = 1,  1, 1,  1, …{b n } = 1,  1, 1,  1, … {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}.

4 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.

5 Recognizing Sequences 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)

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.

7 The Trouble with Recognition (cont’d) We implicitly are supposed to find the simplest such function but, how should we define the simplicity of a function?We implicitly are supposed to find the simplest such function 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 Summations Rosen 6 th ed., §2.4

9 Summation Notation Given a series {a n }, the summation of {a n } from j to k is written and defined as follows:Given a series {a n }, 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 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 Simple Summation Example

12 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 Summation Manipulations Some handy identities for summations:Some handy identities for summations: (Index shifting.)

14 More Summation Manipulations (Grouping.) (Order reversal.) (Series splitting.)

15 Example: Impress Your Friends Boast, “I’m so smart; give me any 2-digit number n, and I’ll add all the numbers from 1 to n in my head in just a few seconds.”Boast, “I’m so smart; give me any 2-digit number n, and I’ll add all the numbers from 1 to n in my head in just a few seconds.” I.e., Evaluate the summation:I.e., Evaluate the summation: There is a simple closed-form formula for the result, discovered by Euler at age 12!There is a simple closed-form formula for the result, discovered by Euler at age 12! Leonhard Euler ( )

16 Euler’s Trick, Illustrated Consider the sum (assume n is even): 1+2+…+(n/2)+((n/2)+1)+…+(n-1)+nConsider the sum (assume n is even): 1+2+…+(n/2)+((n/2)+1)+…+(n-1)+n n/2 pairs of elements, each pair summing to n+1, for a total of (n/2)(n+1).n/2 pairs of elements, each pair summing to n+1, for a total of (n/2)(n+1). … n+1

17 Symbolic Derivation of Trick (k=n/2) order reversal index shifting Suppose n is even, that is, n=2k

18 Concluding Euler’s Derivation Also works for odd n (prove this at home).Also works for odd n (prove this at home).

19 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...

20 Here we go...Here we go... Geometric Sum Derivation

21 Derivation example cont...

22 Concluding long derivation...

23 More Series Infinite Geometric

24 More Series Geometric series Arithmetic Series (Euler’s trick) Quadratic series Cubic series

25 Example Evaluate. Evaluate. –Use series splitting. –Solve for desired summation. –Apply quadratic series rule. –Evaluate.

26 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.