9/13/2011Lecture 2.5 -- Sequences1 Lecture 2.5: Sequences* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Zeph.

Slides:



Advertisements
Similar presentations
Functions; Sequences, Sums, Countability
Advertisements

Sequences, Series, and the Binomial Theorem
MONDAYTUESDAYWEDNESDAYTHURSDAYFRIDAY DEC 3 UNIT 4 TEST DEC 4 Sequences & Series DEC 5 Sequences & Series DEC 6 Post Test in Computer Lab DEC 7 Sequences.
11.4 Geometric Sequences Geometric Sequences and Series geometric sequence If we start with a number, a 1, and repeatedly multiply it by some constant,
Copyright © 2007 Pearson Education, Inc. Slide 8-1.
GPS – Sequences and Series  MA3A9. Students will use sequences and series  a. Use and find recursive and explicit formulae for the terms of sequences.
1 © 2010 Pearson Education, Inc. All rights reserved 10.1 DEFINITION OF A SEQUENCE An infinite sequence is a function whose domain is the set of positive.
Number Sequences Lecture 7: Sep 29 ? overhang. This Lecture We will study some simple number sequences and their properties. The topics include: Representation.
THE BEST CLASS EVER…ERRR…. PRE-CALCULUS Chapter 13 Final Exam Review.
Explicit, Summative, and Recursive
9/8/2011Lecture Functions1 Lecture 2.4: Functions CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda.
Lecture 3.1: Mathematical Induction CS 250, Discrete Structures, Fall 2014 Nitesh Saxena Adopted from previous lectures by Cinda Heeren, Zeph Grunschlag.
1 © 2010 Pearson Education, Inc. All rights reserved © 2010 Pearson Education, Inc. All rights reserved Chapter 11 Further Topics in Algebra.
1 © 2010 Pearson Education, Inc. All rights reserved © 2010 Pearson Education, Inc. All rights reserved Chapter 10 Further Topics in Algebra.
Lecture 5.2: Special Graphs and Matrix Representation CS 250, Discrete Structures, Fall 2013 Nitesh Saxena Adopted from previous lectures by Zeph Grunschlag.
CS 250, Discrete Structures, Fall 2011 Nitesh Saxena
Lecture 3.4: Recursive Algorithms CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Zeph Grunschlag.
Patterns and Sequences
12.3 Geometric Sequences and Series ©2001 by R. Villar All Rights Reserved.
Sequences and Summations Section 2.4. Section Summary Sequences. – Examples: Geometric Progression, Arithmetic Progression Recurrence Relations – Example:
1 Lecture 3.3: Recursion CS 250, Discrete Structures, Fall 2012 Nitesh Saxena Adopted from previous lectures by Cinda Heeren, Zeph Grunschlag.
Lecture 4.3: Closures and Equivalence Relations CS 250, Discrete Structures, Fall 2013 Nitesh Saxena Adopted from previous lectures by Cinda Heeren.
Sequences and Series (Section 9.4 in Textbook).
Lecture 6.1: Misc. Topics: Number Theory CS 250, Discrete Structures, Fall 2011 Nitesh Saxena.
Section 9-4 Sequences and Series.
Lecture 5.4: Paths and Connectivity CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Zeph Grunschlag.
Lecture 4.1: Relations Basics CS 250, Discrete Structures, Fall 2012 Nitesh Saxena Adopted from previous lectures by Cinda Heeren.
Lecture 2.2: Set Theory CS 250, Discrete Structures, Fall 2015 Nitesh Saxena Adopted from previous lectures by Cinda Heeren.
Functions Discrete Structure. L62 Functions. Basic-Terms. DEF: A function f : A  B is given by a domain set A, a codomain set B, and a rule which for.
Lecture 4.2: Relations CS 250, Discrete Structures, Fall 2013 Nitesh Saxena Adopted from previous lectures by Cinda Heeren, Zeph Grunschlag.
Lecture 2.5: Sequences CS 250, Discrete Structures, Fall 2014 Nitesh Saxena Adopted from previous lectures by Zeph Grunschlag.
Sequences & Series: Arithmetic, Geometric, Infinite!
Sequences and Series Explicit, Summative, and Recursive.
How do I find the sum & terms of geometric sequences and series?
Lecture 1.5: Proof Techniques CS 250, Discrete Structures, Fall 2012 Nitesh Saxena Adopted from previous lectures by Cinda Heeren 1.
9/29/2011Lecture Strong Induction1 Lecture 3.2: Strong Induction CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures.
Lecture 5.3: Graph Isomorphism and Connectivity CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Zeph Grunschlag.
Number Sequences Lecture 7: Sep 27 (chapter 4.1 of the book and chapter of the notes) ? overhang.
Sequences Lecture 11. L62 Sequences Sequences are a way of ordering lists of objects. Java arrays are a type of sequence of finite size. Usually, mathematical.
9/27/2011 Lecture Mathematical Induction1 Lecture 3.1: Mathematical Induction* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from.
Copyright © 2012 Pearson Education, Inc. Publishing as Addison Wesley CHAPTER 8: Sequences, Series, and Combinatorics 8.1 Sequences and Series 8.2 Arithmetic.
Lecture 3.4: Recursive Algorithms CS 250, Discrete Structures, Fall 2015 Nitesh Saxena Adopted from previous lectures by Zeph Grunschlag.
Sequences and Sums.
Discrete Mathematics Lecture#14.
Lecture 3.2: Induction and Strong Induction (contd.)
Chapter 8: Further Topics in Algebra
Lecture 3.2: Induction, and Strong Induction
CS 250, Discrete Structures, Fall 2015
CS 250, Discrete Structures, Fall 2011 Nitesh Saxena
Lecture 3.2: Induction and Strong Induction (contd.)
Lecture 3.2: Induction, and Strong Induction
CS 250, Discrete Structures, Fall 2013
Sequences Overview.
Geometric Sequences.
Copyright © Zeph Grunschlag,
Lecture 3.2: Induction, and Strong Induction
9.1: Introduction to Sequences
Lecture 1.6: Proof Techniques (contd)
CS 250, Discrete Structures, Fall 2015 Nitesh Saxena
SE-561 Math Foundations of Software Engineering VIII. Functions
Lecture 3.1: Mathematical Induction
CS 250, Discrete Structures, Fall 2014 Nitesh Saxena
CS 250, Discrete Structures, Fall 2014 Nitesh Saxena
Lecture 1.6: Proof Techniques (contd)
Lecture 5.3: Graph Isomorphism and Paths
CS 250, Discrete Structures, Fall 2014 Nitesh Saxena
9.5 Series.
Lecture 3.1: Mathematical Induction
CS 250, Discrete Structures, Fall 2015 Nitesh Saxena
CS 250, Discrete Structures, Fall 2015 Nitesh Saxena
Presentation transcript:

9/13/2011Lecture Sequences1 Lecture 2.5: Sequences* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Zeph Grunschlag

9/13/2011Lecture Sequences2 Course Admin Mid-Term 1 on Thursday, Sep 22 In-class (from 11am-12:15pm) Will cover everything until the lecture on Sep 15 No lecture on Sep 20 As announced previously, I will be traveling to Beijing to attend and present a paper at the Ubicomp 2012 conference This will not affect our overall topic coverage This will also give you more time to prepare for the exam

9/13/2011Lecture Sequences3 Course Admin HW1 grading delayed a bit TA/grader was sick with chicken pox Trying to finish as soon as possible HW1 solution has been released HW2 will be posted soon Covers chapter 2 (lectures 2.*) Will be due in about a week after the mid-term Start working on it nevertheless. Will be helpful in preparation of the mid-term

9/13/2011Lecture Sequences4 Outline Sequences Summation

9/13/2011Lecture Sequences5 Sequences Sequences are a way of ordering lists of objects. Java arrays are a type of sequence of finite size. Usually, mathematical sequences are infinite. To give an ordering to arbitrary elements, one has to start with a basic model of order. The basic model to start with is the set N = {0, 1, 2, 3, …} of natural numbers. For finite sets, the basic model of size n is: n = {1, 2, 3, 4, …, n-1, n }

9/13/2011Lecture Sequences6 Sequences Definition: Given a set S, an (infinite) sequence in S is a function N  S. A finite sequence in S is a function n  S. Symbolically, a sequence is represented using the subscript notation a i. This gives a way of specifying formulaically Note: Other sets can be taken as ordering models. The book often uses the positive numbers Z + so counting starts at 1 instead of 0. I’ll usually assume the ordering model N. Q: Give the first 5 terms of the sequence defined by the formula

9/13/2011Lecture Sequences7 Sequence Examples A: Plug in for i in sequence 0, 1, 2, 3, 4: Formulas for sequences often represent patterns in the sequence. Q: Provide a simple formula for each sequence: a) 3,6,11,18,27,38,51, … b) 0,2,8,26,80,242,728,… c) 1,1,2,3,5,8,13,21,34,…

9/13/2011Lecture Sequences8 Sequence Examples A: Try to find the patterns between numbers. a) 3,6,11,18,27,38,51, … a 1 =6=3+3, a 2 =11=6+5, a 3 =18=11+7, … and in general a i +1 = a i +(2i +3). This is actually a good enough formula. Later we’ll learn techniques that show how to get the more explicit formula: a i = 6 + 4(i –1) + (i –1) 2 b) 0,2,8,26,80,242,728,… If you add 1 you’ll see the pattern more clearly. a i = 3 i –1 c) 1,1,2,3,5,8,13,21,34,… This is the famous Fibonacci sequence given by a i +1 = a i + a i-1

9/13/2011Lecture Sequences9 Bit Strings Bit strings are finite sequences of 0’s and 1’s. Often there is enough pattern in the bit-string to describe its bits by a formula. EG: The bit-string is described by the formula a i =1, where we think of the string of being represented by the finite sequence a 1 a 2 a 3 a 4 a 5 a 6 a 7 Q: What sequence is defined by a 1 =1, a 2 =1 a i+2 = a i  a i+1

9/13/2011Lecture Sequences10 Bit Strings A: a 0 =1, a 1 =1 a i+2 = a i  a i+1 : 1,1,0,1,1,0,1,1,0,1,…

9/13/2011Lecture Sequences11 Summations The symbol “S” takes a sequence of numbers and turns it into a sum. Symbolically: This is read as “the sum from i =0 to i =n of a i ” Note how “S” converts commas into plus signs. One can also take sums over a set of numbers:

9/13/2011Lecture Sequences12 Summations EG: Consider the identity sequence a i = i Or listing elements: 0, 1, 2, 3, 4, 5,… The sum of the first n numbers is given by:

9/13/2011Lecture Sequences13 Summation Formulas – Arithmetic There is an explicit formula for the previous: Intuitive reason: The smallest term is 1, the biggest term is n so the avg. term is (n+1)/2. There are n terms. To obtain the formula simply multiply the average by the number of terms.

9/13/2011Lecture Sequences14 Summation Formulas – Geometric Geometric sequences are number sequences with a fixed constant of proportionality r between consecutive terms. For example: 2, 6, 18, 54, 162, … Q: What is r in this case?

9/13/2011Lecture Sequences15 Summation Formulas 2, 6, 18, 54, 162, … A: r = 3. In general, the terms of a geometric sequence have the form a i = a r i where a is the 1 st term when i starts at 0. A geometric sum is a sum of a portion of a geometric sequence and has the following explicit formula:

9/13/2011Lecture Sequences16 Summation Examples If you are curious about how one could prove such formulas, your curiosity will soon be “satisfied” as you will become adept at proving such formulas a few lectures from now! Q: Use the previous formulas to evaluate each of the following 1. 2.

9/13/2011Lecture Sequences17 Summation Examples A: 1. Use the arithmetic sum formula and additivity of summation:

9/13/2011Lecture Sequences18 Summation Examples A: 2. Apply the geometric sum formula directly by setting a = 1 and r = 2:

9/13/2011Lecture Sequences19 Composite Summation For example: What’s

9/13/2011Lecture Sequences20 Today’s Reading Rosen 2.4