Recurrence Relations

Size: px
Start display at page:

Download "Recurrence Relations"

Transcription

1 Recurrence Relations Recurrence Relations Reading (Epp s textbook)

2 Recurrence Relations A recurrence relation for a sequence aa 0, aa 1, aa 2, ({a n }) is a formula that relates each term a k to certain of its predecessors aa kk 1, aa kk 2,, aa kk ii (one or more of the previous terms of the sequence), where i is an integer with kk ii 0. In other words, a recurrence relation is like a recursively defined sequence, but without specifying any initial values (initial conditions). Therefore, the same recurrence relation can have (and usually has) multiple solutions. If both the initial conditions and the recurrence relation are specified, then the sequence is uniquely determined. 2

3 Recurrence Relations Example: Consider the recurrence relation a n = 2a n-1 a n-2 for n = 2, 3, 4, Is the sequence {a n } with a n = 3n a solution of this recurrence relation? For n 2 we see that 2a n-1 a n-2 = 2(3(n 1)) 3(n 2) = 3n = a n. Therefore, {a n } with a n = 3n is a solution of the recurrence relation. 3

4 Recurrence Relations Is the sequence {a n } with a n = 5 a solution of the same recurrence relation? For n 2 we see that 2a n-1 a n-2 = = 5 = a n. Therefore, {a n } with a n =5 is also a solution of the recurrence relation. 4

5 Recurrence Relations Fibonacci Numbers: Consider the recurrence relation FF kk = FF kk 1 + FF kk 2 for all integers kk 2 Initial conditions FF 0 = 1, FF 1 = 1. Compute FF 2, FF 3 and so forth through FF 9. The method of Iteration. FF 2 = FF 1 + FF 0 = = 2 FF 3 = FF 2 + FF 1 = = 3 FF 4 = FF 3 + FF 2 = = 5 FF 5 = FF 4 + FF 3 = = 8 FF 6 = FF 5 + FF 4 = = 13 FF 7 = FF 6 + FF 5 = = 21 FF 8 = FF 7 + FF 6 = = 34 FF 9 = FF 8 + FF 7 = = 55 5

6 Modeling with Recurrence Relations Example: Someone deposits $10,000 in a savings account at a bank yielding 5% per year with interest compounded annually. How much money will be in the account after 30 years? Solution: Let P n denote the amount in the account after n years. How can we determine P n on the basis of P n-1? We can derive the following recurrence relation: P n = P n P n-1 = 1.05P n-1. 6

7 Modeling with Recurrence Relations The initial condition is P 0 = 10,000. Then we have: P 1 = 1.05P 0 P 2 = 1.05P 1 = (1.05) 2 P 0 P 3 = 1.05P 2 = (1.05) 3 P 0 P n = 1.05P n-1 = (1.05) n P 0 We now have an explicit formula to calculate P n for any natural number n and can avoid the iteration. Let us use this formula to find P 30 under the initial condition P 0 = 10,000: P 30 = (1.05) 30 10,000 = 43,

8 Explicit Formulas A sequence a0, a1, a2,... is called an arithmetic sequence if, and only if, there is a constant d such that aa nn = aa 0 + dd nn, for all integers n 0. A sequence a0, a1, a2,... is called a geometric sequence if, and only if, there is a constant r such that aa nn = aa 0 rr nn, for all integers n 0. 8

9 Correctness of an Explicit Formula Check the Correctness of an explicit formula by a Mathematical Induction!! Example: Let c0, c1, c2,... be the sequence defined as follows: cc kk = 2cc kk 1 + kk for all integers k 1, cc 0 = 1. Suppose your calculations suggest that c0, c1, c2,... satisfies the following explicit formula: Is this formula correct? cc nn = 2 nn + nn for all integers n 0. 9

10 Solving Recurrence Relations In general, we would prefer to have an explicit formula to compute the value of a n rather than conducting n iterations. For one class of recurrence relations, we can obtain such formulas in a systematic way. Those are the recurrence relations that express the terms of a sequence as linear combinations of previous terms. 10

11 Solving Recurrence Relations Definition: A linear homogeneous recurrence relation of degree k with constant coefficients is a recurrence relation of the form: a n = c 1 a n-1 + c 2 a n c k a n-k, Where c 1, c 2,, c k are real numbers, and c k 0. 11

12 Solving Recurrence Relations Examples: The recurrence relation P n = (1.05)P n-1 is a linear homogeneous recurrence relation of degree one. The recurrence relation f n = f n-1 + f n-2 is a linear homogeneous recurrence relation of degree two. The recurrence relation a n = a n-5 is a linear homogeneous recurrence relation of degree five. 12

13 Solving Recurrence Relations Examples Which of these are linear homogenous recurrence relations with constant coefficients? aa nn = aa nn 1 + 2aa nn 5 aa nn = 2aa nn aa nn = aa nn 1 + nn aa nn = aa nn 1 aa nn 2 aa nn = nn aa nn 1 Yes; with coefficients 1 and 2 (degree 5) No; not homogenous No; not homogenous No; not linear No; no constant coefficients. 13

14 Solving Recurrence Relations Cook-book recipe for solving linear homogenous recurrence relations with constant coefficients. We try to find solutions of the form a n = r n, where r is a constant. a n = r n is a solution of the recurrence relation a n = c 1 a n-1 + c 2 a n c k a n-k if and only if r n = c 1 r n-1 + c 2 r n c k r n-k. Divide this equation by r n-k and subtract the right-hand side from the left: r k - c 1 r k-1 - c 2 r k c k-1 r - c k = 0 This is called the characteristic equation of the recurrence relation. 14

15 Solving Recurrence Relations The solutions of this equation are called the characteristic roots of the recurrence relation. Let us now consider linear homogeneous recurrence relations of degree two. Theorem: Let c 1 and c 2 be real numbers. Suppose that r 2 c 1 r c 2 = 0 has two distinct roots r 1 and r 2. Then the sequence {a n } is a solution of the recurrence relation a n = c 1 a n-1 + c 2 a n-2 if and only if a n = C r 1 n + D r 2 n for n = 0, 1, 2,, where C and D are constants. See pp. 321 and 322 for the proof. 15

16 Example: Solving Recurrence Relations What is the solution of the recurrence relation a n = a n-1 + 2a n-2 with a 0 = 2 and a 1 = 7? Solution: The characteristic equation of the recurrence relation is r 2 r 2 = 0. Its roots are r = 2 and r = -1. Hence, the sequence {a n } is a solution to the recurrence relation if and only if: a n = C 2 n + D (-1) n for some constants C and D. 16

17 Solving Recurrence Relations Given the equation a n = C 2 n + D (-1) n and the initial conditions a 0 = 2 and a 1 = 7, it follows that a 0 = 2 => C + D = 2 a 1 = 7 => C 2 + D (-1) = 7 Solving these two equations gives us C = 3 and D = -1. Therefore, the solution to the recurrence relation and initial conditions is the sequence {a n } with a n = 3 2 n (-1) n. 17

18 Example: Solving Recurrence Relations Give an explicit formula for the Fibonacci numbers. Solution: The Fibonacci numbers satisfy the recurrence relation f n = f n-1 + f n-2 with initial conditions f 0 = 1 and f 1 = 1. The characteristic equation of the recurrence relation is r 2 r 1 = 0. Its roots are: r =, r =

19 Solving Recurrence Relations Therefore, the Fibonacci numbers are given by f n 1+ 5 = C 2 n 1 + D 2 5 n f 0 = 0 => C + D = 1 f 1 = 1 => f = C + 2 D 2 1 = The unique solution to this system of two equations and two variables is: C =, D =

20 Solving Recurrence Relations So finally we obtained an explicit formula for the Fibonacci numbers: = n n f n

21 Solving Recurrence Relations But what happens if the characteristic equation has only one root? How can we then match our equation with the initial conditions a 0 and a 1? Theorem: Let c 1 and c 2 be real numbers with c 2 0. Suppose that r 2 c 1 r c 2 = 0 has only one root r 0. A sequence {a n } is a solution of the recurrence relation a n = c 1 a n-1 + c 2 a n-2 if and only if a n = C r 0 n + D n r 0n, for n = 0, 1, 2,, where C and D are constants. 21

22 Solving Recurrence Relations Example: What is the solution of the recurrence relation a n = 6a n-1 9a n-2 with a 0 = 1 and a 1 = 6? Solution: The only root of r 2 6r + 9 = 0 is r 0 = 3. Hence, the solution to the recurrence relation is a n = C 3 n + D n3 n for some constants α 1 and α 2. To match the initial condition, we need a 0 = 1 => C = 1 a 1 = 6 => C 3 + D 3 = 6 Solving these equations yields C = 1 and D = 1. Consequently, the overall solution is given by a n = 3 n + n3 n. 22

Definition: A sequence is a function from a subset of the integers (usually either the set

Definition: A sequence is a function from a subset of the integers (usually either the set Math 3336 Section 2.4 Sequences and Summations Sequences Geometric Progression Arithmetic Progression Recurrence Relation Fibonacci Sequence Summations Definition: A sequence is a function from a subset

More information

Section Summary. Sequences. Recurrence Relations. Summations. Examples: Geometric Progression, Arithmetic Progression. Example: Fibonacci Sequence

Section Summary. Sequences. Recurrence Relations. Summations. Examples: Geometric Progression, Arithmetic Progression. Example: Fibonacci Sequence Section 2.4 Section Summary Sequences. Examples: Geometric Progression, Arithmetic Progression Recurrence Relations Example: Fibonacci Sequence Summations Introduction Sequences are ordered lists of elements.

More information

1 Recursive Algorithms

1 Recursive Algorithms 400 lecture note #8 [ 5.6-5.8] Recurrence Relations 1 Recursive Algorithms A recursive algorithm is an algorithm which invokes itself. A recursive algorithm looks at a problem backward -- the solution

More information

3.3 Accumulation Sequences

3.3 Accumulation Sequences 3.3. ACCUMULATION SEQUENCES 25 3.3 Accumulation Sequences Overview. One of the most important mathematical ideas in calculus is that of an accumulation of change for physical quantities. As we have been

More information

1 Examples of Weak Induction

1 Examples of Weak Induction More About Mathematical Induction Mathematical induction is designed for proving that a statement holds for all nonnegative integers (or integers beyond an initial one). Here are some extra examples of

More information

Chapter 5: Sequences, Mathematic Induction, and Recursion

Chapter 5: Sequences, Mathematic Induction, and Recursion Chapter 5: Sequences, Mathematic Induction, and Recursion Hao Zheng Department of Computer Science and Engineering University of South Florida Tampa, FL 33620 Email: zheng@cse.usf.edu Phone: (813)974-4757

More information

Recurrence Relations and Recursion: MATH 180

Recurrence Relations and Recursion: MATH 180 Recurrence Relations and Recursion: MATH 180 1: Recursively Defined Sequences Example 1: The sequence a 1,a 2,a 3,... can be defined recursively as follows: (1) For all integers k 2, a k = a k 1 + 1 (2)

More information

Sec$on Summary. Sequences. Recurrence Relations. Summations. Ex: Geometric Progression, Arithmetic Progression. Ex: Fibonacci Sequence

Sec$on Summary. Sequences. Recurrence Relations. Summations. Ex: Geometric Progression, Arithmetic Progression. Ex: Fibonacci Sequence Section 2.4 Sec$on Summary Sequences Ex: Geometric Progression, Arithmetic Progression Recurrence Relations Ex: Fibonacci Sequence Summations 2 Introduc$on Sequences are ordered lists of elements. 1, 2,

More information

Section Summary. Sequences. Recurrence Relations. Summations Special Integer Sequences (optional)

Section Summary. Sequences. Recurrence Relations. Summations Special Integer Sequences (optional) Section 2.4 Section Summary Sequences. o Examples: Geometric Progression, Arithmetic Progression Recurrence Relations o Example: Fibonacci Sequence Summations Special Integer Sequences (optional) Sequences

More information

Vocabulary. Term Page Definition Clarifying Example. arithmetic sequence. explicit formula. finite sequence. geometric mean. geometric sequence

Vocabulary. Term Page Definition Clarifying Example. arithmetic sequence. explicit formula. finite sequence. geometric mean. geometric sequence CHAPTER 2 Vocabulary The table contains important vocabulary terms from Chapter 2. As you work through the chapter, fill in the page number, definition, and a clarifying example. arithmetic Term Page Definition

More information

Advanced Counting Techniques. 7.1 Recurrence Relations

Advanced Counting Techniques. 7.1 Recurrence Relations Chapter 7 Advanced Counting Techniques 71 Recurrence Relations We have seen that a recursive definition of a sequence specifies one or more initial terms and a rule for determining subsequent terms from

More information

SEQUENCES AND SERIES

SEQUENCES AND SERIES A sequence is an ordered list of numbers. SEQUENCES AND SERIES Note, in this context, ordered does not mean that the numbers in the list are increasing or decreasing. Instead it means that there is a first

More information

CSCE 222 Discrete Structures for Computing. Dr. Hyunyoung Lee

CSCE 222 Discrete Structures for Computing. Dr. Hyunyoung Lee CSCE 222 Discrete Structures for Computing Sequences and Summations Dr. Hyunyoung Lee Based on slides by Andreas Klappenecker 1 Sequences 2 Sequences A sequence is a function from a subset of the set of

More information

Every subset of {1, 2,...,n 1} can be extended to a subset of {1, 2, 3,...,n} by either adding or not adding the element n.

Every subset of {1, 2,...,n 1} can be extended to a subset of {1, 2, 3,...,n} by either adding or not adding the element n. 11 Recurrences A recurrence equation or recurrence counts things using recursion. 11.1 Recurrence Equations We start with an example. Example 11.1. Find a recurrence for S(n), the number of subsets of

More information

12 Sequences and Recurrences

12 Sequences and Recurrences 12 Sequences and Recurrences A sequence is just what you think it is. It is often given by a formula known as a recurrence equation. 12.1 Arithmetic and Geometric Progressions An arithmetic progression

More information

Sequences and Series. College Algebra

Sequences and Series. College Algebra Sequences and Series College Algebra Sequences A sequence is a function whose domain is the set of positive integers. A finite sequence is a sequence whose domain consists of only the first n positive

More information

EECS 1028 M: Discrete Mathematics for Engineers

EECS 1028 M: Discrete Mathematics for Engineers EECS 1028 M: Discrete Mathematics for Engineers Suprakash Datta Office: LAS 3043 Course page: http://www.eecs.yorku.ca/course/1028 Also on Moodle S. Datta (York Univ.) EECS 1028 W 18 1 / 16 Sequences and

More information

Discrete Structures Lecture Sequences and Summations

Discrete Structures Lecture Sequences and Summations Introduction Good morning. In this section we study sequences. A sequence is an ordered list of elements. Sequences are important to computing because of the iterative nature of computer programs. The

More information

Algorithm Analysis Recurrence Relation. Chung-Ang University, Jaesung Lee

Algorithm Analysis Recurrence Relation. Chung-Ang University, Jaesung Lee Algorithm Analysis Recurrence Relation Chung-Ang University, Jaesung Lee Recursion 2 Recursion 3 Recursion in Real-world Fibonacci sequence = + Initial conditions: = 0 and = 1. = + = + = + 0, 1, 1, 2,

More information

CS311H. Prof: Peter Stone. Department of Computer Science The University of Texas at Austin

CS311H. Prof: Peter Stone. Department of Computer Science The University of Texas at Austin CS311H Prof: Department of Computer Science The University of Texas at Austin Recurrences In how many ways can a 2 n rectangular checkerboard be tiled using 1 2 and 2 2 pieces? Good Morning, Colleagues

More information

Chapter 8: Recursion. March 10, 2008

Chapter 8: Recursion. March 10, 2008 Chapter 8: Recursion March 10, 2008 Outline 1 8.1 Recursively Defined Sequences 2 8.2 Solving Recurrence Relations by Iteration 3 8.4 General Recursive Definitions Recursively Defined Sequences As mentioned

More information

Lesson 2: Recursive Formulas for Sequences

Lesson 2: Recursive Formulas for Sequences Classwork Example 1 Consider Akelia s sequence 5, 8, 11, 14, 17,. a. If you believed in patterns, what might you say is the next number in the sequence? b. Write a formula for Akelia s sequence. c. Explain

More information

CS 2210 Discrete Structures Advanced Counting. Fall 2017 Sukumar Ghosh

CS 2210 Discrete Structures Advanced Counting. Fall 2017 Sukumar Ghosh CS 2210 Discrete Structures Advanced Counting Fall 2017 Sukumar Ghosh Compound Interest A person deposits $10,000 in a savings account that yields 10% interest annually. How much will be there in the account

More information

5. Sequences & Recursion

5. Sequences & Recursion 5. Sequences & Recursion Terence Sim 1 / 42 A mathematician, like a painter or poet, is a maker of patterns. Reading Sections 5.1 5.4, 5.6 5.8 of Epp. Section 2.10 of Campbell. Godfrey Harold Hardy, 1877

More information

Mathematical Induction

Mathematical Induction Mathematical Induction MAT30 Discrete Mathematics Fall 018 MAT30 (Discrete Math) Mathematical Induction Fall 018 1 / 19 Outline 1 Mathematical Induction Strong Mathematical Induction MAT30 (Discrete Math)

More information

Ex. Here's another one. We want to prove that the sum of the cubes of the first n natural numbers is. n = n 2 (n+1) 2 /4.

Ex. Here's another one. We want to prove that the sum of the cubes of the first n natural numbers is. n = n 2 (n+1) 2 /4. Lecture One type of mathematical proof that goes everywhere is mathematical induction (tb 147). Induction is essentially used to show something is true for all iterations, i, of a sequence, where i N.

More information

Consider an infinite row of dominoes, labeled by 1, 2, 3,, where each domino is standing up. What should one do to knock over all dominoes?

Consider an infinite row of dominoes, labeled by 1, 2, 3,, where each domino is standing up. What should one do to knock over all dominoes? 1 Section 4.1 Mathematical Induction Consider an infinite row of dominoes, labeled by 1,, 3,, where each domino is standing up. What should one do to knock over all dominoes? Principle of Mathematical

More information

CSC2100B Data Structures Analysis

CSC2100B Data Structures Analysis CSC2100B Data Structures Analysis Irwin King king@cse.cuhk.edu.hk http://www.cse.cuhk.edu.hk/~king Department of Computer Science & Engineering The Chinese University of Hong Kong Algorithm An algorithm

More information

Section Summary. Definition of a Function.

Section Summary. Definition of a Function. Section 2.3 Section Summary Definition of a Function. Domain, Codomain Image, Preimage Injection, Surjection, Bijection Inverse Function Function Composition Graphing Functions Floor, Ceiling, Factorial

More information

Math 324 Summer 2012 Elementary Number Theory Notes on Mathematical Induction

Math 324 Summer 2012 Elementary Number Theory Notes on Mathematical Induction Math 4 Summer 01 Elementary Number Theory Notes on Mathematical Induction Principle of Mathematical Induction Recall the following axiom for the set of integers. Well-Ordering Axiom for the Integers If

More information

Math.3336: Discrete Mathematics. Advanced Counting Techniques

Math.3336: Discrete Mathematics. Advanced Counting Techniques Math.3336: Discrete Mathematics Advanced Counting Techniques Instructor: Dr. Blerina Xhabli Department of Mathematics, University of Houston https://www.math.uh.edu/ blerina Email: blerina@math.uh.edu

More information

Recurrence Relations

Recurrence Relations Recurrence Relations Winter 2017 Recurrence Relations Recurrence Relations A recurrence relation for the sequence {a n } is an equation that expresses a n in terms of one or more of the previous terms

More information

4.1 All in a Row (BC)

4.1 All in a Row (BC) 4.1 All in a Row (BC) Introduction to Series and Sequences You encounter sequences every day. Your monthly rent payments, the annual interest you earn on investments, a list of your car s miles per gallon

More information

MEETING 9 - INDUCTION AND RECURSION

MEETING 9 - INDUCTION AND RECURSION MEETING 9 - INDUCTION AND RECURSION We do some initial Peer Instruction... Predicates Before we get into mathematical induction we will repeat the concept of a predicate. A predicate is a mathematical

More information

Exam 2 Solutions. x 1 x. x 4 The generating function for the problem is the fourth power of this, (1 x). 4

Exam 2 Solutions. x 1 x. x 4 The generating function for the problem is the fourth power of this, (1 x). 4 Math 5366 Fall 015 Exam Solutions 1. (0 points) Find the appropriate generating function (in closed form) for each of the following problems. Do not find the coefficient of x n. (a) In how many ways can

More information

Lesson 24: True and False Number Sentences

Lesson 24: True and False Number Sentences NYS COMMON CE MATHEMATICS CURRICULUM Lesson 24 6 4 Student Outcomes Students identify values for the variables in equations and inequalities that result in true number sentences. Students identify values

More information

COL106: Data Structures and Algorithms (IIT Delhi, Semester-II )

COL106: Data Structures and Algorithms (IIT Delhi, Semester-II ) 1 Solve the following recurrence relations giving a Θ bound for each of the cases 1 : (a) T (n) = 2T (n/3) + 1; T (1) = 1 (Assume n is a power of 3) (b) T (n) = 5T (n/4) + n; T (1) = 1 (Assume n is a power

More information

Solving Recurrence Relations 1. Guess and Math Induction Example: Find the solution for a n = 2a n 1 + 1, a 0 = 0 We can try finding each a n : a 0 =

Solving Recurrence Relations 1. Guess and Math Induction Example: Find the solution for a n = 2a n 1 + 1, a 0 = 0 We can try finding each a n : a 0 = Solving Recurrence Relations 1. Guess and Math Induction Example: Find the solution for a n = 2a n 1 + 1, a 0 = 0 We can try finding each a n : a 0 = 0 a 1 = 2 0 + 1 = 1 a 2 = 2 1 + 1 = 3 a 3 = 2 3 + 1

More information

Section 4.1: Sequences and Series

Section 4.1: Sequences and Series Section 4.1: Sequences and Series In this section, we shall introduce the idea of sequences and series as a necessary tool to develop the proof technique called mathematical induction. Most of the material

More information

CMSC250 Homework 9 Due: Wednesday, December 3, Question: Total Points: Score:

CMSC250 Homework 9 Due: Wednesday, December 3, Question: Total Points: Score: Name & UID: Circle Your Section! 0101 (10am: 3120, Ladan) 0102 (11am: 3120, Ladan) 0103 (Noon: 3120, Peter) 0201 (2pm: 3120, Yi) 0202 (10am: 1121, Vikas) 0203 (11am: 1121, Vikas) 0204 (9am: 2117, Karthik)

More information

MATH 3012 N Homework Chapter 9

MATH 3012 N Homework Chapter 9 MATH 01 N Homework Chapter 9 February, 017 The recurrence r n+ = r n+1 + r n can be expressed with advancement operators as A A )r n = 0 The quadratic can then be factored using the quadratic formula,

More information

Lesson 10: Solving Inequalities

Lesson 10: Solving Inequalities Opening Exercise 1. Find the solution set to each inequality. Express the solution graphically on the number line and give the solution in interval notation. A. xx + 4 7 B. mm 3 + 8 > 9 C. 8yy + 4 < 7yy

More information

Generating Functions and the Fibonacci Sequence

Generating Functions and the Fibonacci Sequence Department of Mathematics Nebraska Wesleyan University June 14, 01 Fibonacci Sequence Fun Fact: November 3rd is Fibonacci Day! (1, 1,, 3) Definition The Fibonacci sequence is defined by the recurrence

More information

Number Representations

Number Representations Computer Arithmetic Algorithms Prof. Dae Hyun Kim School of Electrical Engineering and Computer Science Washington State University Number Representations Information Textbook Israel Koren, Computer Arithmetic

More information

Fall 2017 Test II review problems

Fall 2017 Test II review problems Fall 2017 Test II review problems Dr. Holmes October 18, 2017 This is a quite miscellaneous grab bag of relevant problems from old tests. Some are certainly repeated. 1. Give the complete addition and

More information

MATH 324 Summer 2011 Elementary Number Theory. Notes on Mathematical Induction. Recall the following axiom for the set of integers.

MATH 324 Summer 2011 Elementary Number Theory. Notes on Mathematical Induction. Recall the following axiom for the set of integers. MATH 4 Summer 011 Elementary Number Theory Notes on Mathematical Induction Principle of Mathematical Induction Recall the following axiom for the set of integers. Well-Ordering Axiom for the Integers If

More information

Outline. We will cover (over the next few weeks) Induction Strong Induction Constructive Induction Structural Induction

Outline. We will cover (over the next few weeks) Induction Strong Induction Constructive Induction Structural Induction Outline We will cover (over the next few weeks) Induction Strong Induction Constructive Induction Structural Induction Induction P(1) ( n 2)[P(n 1) P(n)] ( n 1)[P(n)] Why Does This Work? I P(1) ( n 2)[P(n

More information

Learning Objectives

Learning Objectives Learning Objectives Learn about recurrence relations Learn the relationship between sequences and recurrence relations Explore how to solve recurrence relations by iteration Learn about linear homogeneous

More information

V. Adamchik 1. Recurrences. Victor Adamchik Fall of 2005

V. Adamchik 1. Recurrences. Victor Adamchik Fall of 2005 V. Adamchi Recurrences Victor Adamchi Fall of 00 Plan Multiple roots. More on multiple roots. Inhomogeneous equations 3. Divide-and-conquer recurrences In the previous lecture we have showed that if the

More information

Section Summary. Sequences. Recurrence Relations. Summations. Examples: Geometric Progression, Arithmetic Progression. Example: Fibonacci Sequence

Section Summary. Sequences. Recurrence Relations. Summations. Examples: Geometric Progression, Arithmetic Progression. Example: Fibonacci Sequence Section 2.4 1 Section Summary Sequences. Examples: Geometric Progression, Arithmetic Progression Recurrence Relations Example: Fibonacci Sequence Summations 2 Introduction Sequences are ordered lists of

More information

Lecture 6: Recurrent Algorithms:

Lecture 6: Recurrent Algorithms: Lecture 6: Recurrent Algorithms: Divide-and-Conquer Principle Georgy Gimel farb COMPSCI 220 Algorithms and Data Structures 1 / 20 1 Divide-and-conquer 2 Math induction 3 Telescoping 4 Examples 5 Pros and

More information

Propositional Logic, Predicates, and Equivalence

Propositional Logic, Predicates, and Equivalence Chapter 1 Propositional Logic, Predicates, and Equivalence A statement or a proposition is a sentence that is true (T) or false (F) but not both. The symbol denotes not, denotes and, and denotes or. If

More information

Sequences A sequence is a function, where the domain is a set of consecutive positive integers beginning with 1.

Sequences A sequence is a function, where the domain is a set of consecutive positive integers beginning with 1. 1 CA-Fall 2011-Jordan College Algebra, 4 th edition, Beecher/Penna/Bittinger, Pearson/Addison Wesley, 2012 Chapter 8: Sequences, Series, and Combinatorics Section 8.1 Sequences and Series Sequences A sequence

More information

Sequences. 1. Number sequences. 2. Arithmetic sequences. Consider the illustrated pattern of circles:

Sequences. 1. Number sequences. 2. Arithmetic sequences. Consider the illustrated pattern of circles: Sequences 1. Number sequences Consider the illustrated pattern of circles: The first layer has just one blue ball. The second layer has three pink balls. The third layer has five black balls. The fourth

More information

6.2 SOLVING EASY RECURRENCES

6.2 SOLVING EASY RECURRENCES Section 6.2 Solving Easy Recurrences 6.2.1 6.2 SOLVING EASY RECURRENCES We identify a type of recurrence that can be solved by special methods. def: A recurrence relation a n = f(a 0,..., a n 1 ) has degree

More information

Homework 2 Solution Section 2.2 and 2.3.

Homework 2 Solution Section 2.2 and 2.3. Homework Solution Section. and.3...4. Write each of the following autonomous equations in the form x n+1 = ax n + b and identify the constants a and b. a) x n+1 = 4 x n )/3. x n+1 = 4 x n) 3 = 8 x n 3

More information

Sequences and Summations

Sequences and Summations COMP 182 Algorithmic Thinking Sequences and Summations Luay Nakhleh Computer Science Rice University Chapter 2, Section 4 Reading Material Sequences A sequence is a function from a subset of the set of

More information

Assignment 16 Assigned Weds Oct 11

Assignment 16 Assigned Weds Oct 11 Assignment 6 Assigned Weds Oct Section 8, Problem 3 a, a 3, a 3 5, a 4 7 Section 8, Problem 4 a, a 3, a 3, a 4 3 Section 8, Problem 9 a, a, a 3, a 4 4, a 5 8, a 6 6, a 7 3, a 8 64, a 9 8, a 0 56 Section

More information

Section 2: Equations and Inequalities

Section 2: Equations and Inequalities Topic 1: Equations: True or False?... 29 Topic 2: Identifying Properties When Solving Equations... 31 Topic 3: Solving Equations... 34 Topic 4: Solving Equations Using the Zero Product Property... 36 Topic

More information

16. . Proceeding similarly, we get a 2 = 52 1 = , a 3 = 53 1 = and a 4 = 54 1 = 125

16. . Proceeding similarly, we get a 2 = 52 1 = , a 3 = 53 1 = and a 4 = 54 1 = 125 . Sequences When we first introduced a function as a special type of relation in Section.3, we did not put any restrictions on the domain of the function. All we said was that the set of x-coordinates

More information

Lesson 12.7: Sequences and Series

Lesson 12.7: Sequences and Series Lesson 12.7: Sequences and Series May 30 7:11 AM Sequences Definition: A sequence is a set of numbers in a specific order. 2, 5, 8,. is an example of a sequence. Note: A sequence may have either a finite

More information

Legendre s Equation. PHYS Southern Illinois University. October 18, 2016

Legendre s Equation. PHYS Southern Illinois University. October 18, 2016 Legendre s Equation PHYS 500 - Southern Illinois University October 18, 2016 PHYS 500 - Southern Illinois University Legendre s Equation October 18, 2016 1 / 11 Legendre s Equation Recall We are trying

More information

Sequences and Summations ICS 6D. Prof. Sandy Irani

Sequences and Summations ICS 6D. Prof. Sandy Irani Sequences and Summations ICS 6D Prof. Sandy Irani Test Poll What is your favorite flavor of ice cream? A) Vanilla B) Chocolate C) Moose Tracks D) Mint Chocolate Chip E) None of the above Sequences A sequence

More information

Carmen s Core Concepts (Math 135)

Carmen s Core Concepts (Math 135) Carmen s Core Concepts (Math 135) Carmen Bruni University of Waterloo Week 4 1 Principle of Mathematical Induction 2 Example 3 Base Case 4 Inductive Hypothesis 5 Inductive Step When Induction Isn t Enough

More information

Continuously Compounded Interest. Simple Interest Growth. Simple Interest. Logarithms and Exponential Functions

Continuously Compounded Interest. Simple Interest Growth. Simple Interest. Logarithms and Exponential Functions Exponential Models Clues in the word problems tell you which formula to use. If there s no mention of compounding, use a growth or decay model. If your interest is compounded, check for the word continuous.

More information

Convert the equation to the standard form for an ellipse by completing the square on x and y. 3) 16x y 2-32x - 150y = 0 3)

Convert the equation to the standard form for an ellipse by completing the square on x and y. 3) 16x y 2-32x - 150y = 0 3) Math 370 Exam 5 Review Name Graph the ellipse and locate the foci. 1) x 6 + y = 1 1) foci: ( 15, 0) and (- 15, 0) Objective: (9.1) Graph Ellipses Not Centered at the Origin Graph the ellipse. ) (x + )

More information

or the number of bacteria in a colony after each hour, if the colony starts with one bacteria and each bacteria divides into two every hour

or the number of bacteria in a colony after each hour, if the colony starts with one bacteria and each bacteria divides into two every hour 448 Sequences and Series In everyday life, we can observe sequences or series of events in many contexts. For instance, we line up to enter a store in a sequence, we make a sequence of mortgage payments,

More information

Lesson 14: Solving Inequalities

Lesson 14: Solving Inequalities Hart Interactive Algebra 1 Lesson 14 Classwork 1. Consider the inequality xx 2 + 4xx 5. a. Think about some possible values to assign to xx that make this inequality a true statement. Find at least two

More information

Discrete Mathematics -- Chapter 10: Recurrence Relations

Discrete Mathematics -- Chapter 10: Recurrence Relations Discrete Mathematics -- Chapter 10: Recurrence Relations Hung-Yu Kao ( 高宏宇 ) Department of Computer Science and Information Engineering, National Cheng Kung University First glance at recurrence F n+2

More information

10-1 Sequences as Functions. Determine whether each sequence is arithmetic. Write yes or no. 1. 8, 2, 12, 22

10-1 Sequences as Functions. Determine whether each sequence is arithmetic. Write yes or no. 1. 8, 2, 12, 22 Determine whether each sequence is arithmetic. Write yes or no. 1. 8, 2, 12, 22 Subtract each term from the term directly after it. The common difference is 10. 3. 1, 2, 4, 8, 16 Subtract each term from

More information

S.3 Geometric Sequences and Series

S.3 Geometric Sequences and Series 68 section S S. Geometric In the previous section, we studied sequences where each term was obtained by adding a constant number to the previous term. In this section, we will take interest in sequences

More information

Lesson 26: Problem Set Sample Solutions

Lesson 26: Problem Set Sample Solutions Problem Set Sample Solutions Problems and 2 provide students with more practice converting arithmetic and geometric sequences between explicit and recursive forms. Fluency with geometric sequences is required

More information

Mathematical Induction

Mathematical Induction Mathematical Induction MAT231 Transition to Higher Mathematics Fall 2014 MAT231 (Transition to Higher Math) Mathematical Induction Fall 2014 1 / 21 Outline 1 Mathematical Induction 2 Strong Mathematical

More information

JUST THE MATHS UNIT NUMBER 2.1. SERIES 1 (Elementary progressions and series) A.J.Hobson

JUST THE MATHS UNIT NUMBER 2.1. SERIES 1 (Elementary progressions and series) A.J.Hobson JUST THE MATHS UNIT NUMBER.1 SERIES 1 (Elementary progressions and series) by A.J.Hobson.1.1 Arithmetic progressions.1. Arithmetic series.1.3 Geometric progressions.1.4 Geometric series.1.5 More general

More information

Problem Set 5 Solutions

Problem Set 5 Solutions Problem Set 5 Solutions Section 4.. Use mathematical induction to prove each of the following: a) For each natural number n with n, n > + n. Let P n) be the statement n > + n. The base case, P ), is true

More information

A SUMMARY OF RECURSION SOLVING TECHNIQUES

A SUMMARY OF RECURSION SOLVING TECHNIQUES A SUMMARY OF RECURSION SOLVING TECHNIQUES KIMMO ERIKSSON, KTH These notes are meant to be a complement to the material on recursion solving techniques in the textbook Discrete Mathematics by Biggs. In

More information

CS 220: Discrete Structures and their Applications. Mathematical Induction in zybooks

CS 220: Discrete Structures and their Applications. Mathematical Induction in zybooks CS 220: Discrete Structures and their Applications Mathematical Induction 6.4 6.6 in zybooks Why induction? Prove algorithm correctness (CS320 is full of it) The inductive proof will sometimes point out

More information

1 = k1 + k 2 2 = 3k 1 + 5k 2

1 = k1 + k 2 2 = 3k 1 + 5k 2 8..4. (a) Find the specific solution of a n = a n 1 + 1a n with initial conditions a 0 = 1 and a 1 =. The characteristic polynomial of this recurrence relation is x x 1, which has roots 3 and, so the general

More information

2009 A-level Maths Tutor All Rights Reserved

2009 A-level Maths Tutor All Rights Reserved 2 This book is under copyright to A-level Maths Tutor. However, it may be distributed freely provided it is not sold for profit. Contents the Sigma Notation 3 arithmetical progressions(series) 6 geometrical

More information

Math Assignment 11

Math Assignment 11 Math 2280 - Assignment 11 Dylan Zwick Fall 2013 Section 8.1-2, 8, 13, 21, 25 Section 8.2-1, 7, 14, 17, 32 Section 8.3-1, 8, 15, 18, 24 1 Section 8.1 - Introduction and Review of Power Series 8.1.2 - Find

More information

Applications. More Counting Problems. Complexity of Algorithms

Applications. More Counting Problems. Complexity of Algorithms Recurrences Applications More Counting Problems Complexity of Algorithms Part I Recurrences and Binomial Coefficients Paths in a Triangle P(0, 0) P(1, 0) P(1,1) P(2, 0) P(2,1) P(2, 2) P(3, 0) P(3,1) P(3,

More information

Sequences and Series

Sequences and Series UNIT 11 Sequences and Series An integrated circuit can hold millions of microscopic components called transistors. How many transistors can fit in a chip on the tip of your finger? Moore s law predicts

More information

(Infinite) Series Series a n = a 1 + a 2 + a a n +...

(Infinite) Series Series a n = a 1 + a 2 + a a n +... (Infinite) Series Series a n = a 1 + a 2 + a 3 +... + a n +... What does it mean to add infinitely many terms? The sequence of partial sums S 1, S 2, S 3, S 4,...,S n,...,where nx S n = a i = a 1 + a 2

More information

Lecture Notes 6: Dynamic Equations Part A: First-Order Difference Equations in One Variable

Lecture Notes 6: Dynamic Equations Part A: First-Order Difference Equations in One Variable University of Warwick, EC9A0 Maths for Economists Peter J. Hammond 1 of 54 Lecture Notes 6: Dynamic Equations Part A: First-Order Difference Equations in One Variable Peter J. Hammond latest revision 2017

More information

On Linear Recursive Sequences with Coefficients in Arithmetic-Geometric Progressions

On Linear Recursive Sequences with Coefficients in Arithmetic-Geometric Progressions Applied Mathematical Sciences, Vol. 9, 015, no. 5, 595-607 HIKARI Ltd, www.m-hikari.com http://dx.doi.org/10.1988/ams.015.5163 On Linear Recursive Sequences with Coefficients in Arithmetic-Geometric Progressions

More information

GSE Algebra 1. Unit Two Information. Curriculum Map: Reasoning with Linear Equations & Inequalities

GSE Algebra 1. Unit Two Information. Curriculum Map: Reasoning with Linear Equations & Inequalities GSE Algebra 1 Unit Two Information EOCT Domain & Weight: Equations 30% Curriculum Map: Reasoning with Linear Equations & Inequalities Content Descriptors: Concept 1: Create equations that describe numbers

More information

Algebra II. Table of Contents. Sequences and Series. Slide 1 / 153. Slide 2 / 153. Slide 3 /

Algebra II. Table of Contents. Sequences and Series. Slide 1 / 153. Slide 2 / 153. Slide 3 / Slide 1 / 153 Algebra II Slide 2 / 153 Sequences and Series 2015-04-21 www.njctl.org Table of Contents Click on the topic to go to that section Slide 3 / 153 Arithmetic Sequences Geometric Sequences Geometric

More information

The given pattern continues. Write down the nth term of the sequence {an} suggested by the pattern. 3) 4, 10, 16, 22, 28,... 3)

The given pattern continues. Write down the nth term of the sequence {an} suggested by the pattern. 3) 4, 10, 16, 22, 28,... 3) M60(Precalculus) Evaluate the factorial expression. 9! ) 7!! ch practice test ) Write out the first five terms of the sequence. ) {sn} = (-)n - n + n - ) The given pattern continues. Write down the nth

More information

1.1 The Language of Algebra 1. What does the term variable mean?

1.1 The Language of Algebra 1. What does the term variable mean? Advanced Algebra Chapter 1 - Note Taking Guidelines Complete each Now try problem after studying the corresponding example from the reading 1.1 The Language of Algebra 1. What does the term variable mean?

More information

Math 1 Exponential Functions Unit 2018

Math 1 Exponential Functions Unit 2018 1 Math 1 Exponential Functions Unit 2018 Points: /10 Name: Graphing Exponential Functions/Domain and Range Exponential Functions (Growth and Decay) Tables/Word Problems Linear vs Exponential Functions

More information

WORD: EXAMPLE(S): COUNTEREXAMPLE(S): EXAMPLE(S): COUNTEREXAMPLE(S): WORD: EXAMPLE(S): COUNTEREXAMPLE(S): EXAMPLE(S): COUNTEREXAMPLE(S): WORD:

WORD: EXAMPLE(S): COUNTEREXAMPLE(S): EXAMPLE(S): COUNTEREXAMPLE(S): WORD: EXAMPLE(S): COUNTEREXAMPLE(S): EXAMPLE(S): COUNTEREXAMPLE(S): WORD: Bivariate Data DEFINITION: In statistics, data sets using two variables. Scatter Plot DEFINITION: a bivariate graph with points plotted to show a possible relationship between the two sets of data. Positive

More information

Math 475, Problem Set #8: Answers

Math 475, Problem Set #8: Answers Math 475, Problem Set #8: Answers A. Brualdi, problem, parts (a), (b), and (d). (a): As n goes from to 6, the sum (call it h n ) takes on the values,, 8, 2, 55, and 44; we recognize these as Fibonacci

More information

5 1 Worksheet MATCHING: For # 1 4, match each graph to its equation. Not all equations will be used. 1) 2) 3) 4)

5 1 Worksheet MATCHING: For # 1 4, match each graph to its equation. Not all equations will be used. 1) 2) 3) 4) Algebra 1 Name: Per: 5 1 Worksheet MATCHING: For # 1 4, match each graph to its equation. Not all equations will be used. 1) 2) 3) 4) A) yy = xx 3 B) yy = xx + 3 C) yy = 1 2 xx 3 D) yy = xx 3 E) yy = 2

More information

Further Mathematics 2016 Core: RECURSION AND FINANCIAL MODELLING Chapter 5 - Recurrence Relations

Further Mathematics 2016 Core: RECURSION AND FINANCIAL MODELLING Chapter 5 - Recurrence Relations Further Mathematics 2016 Core: RECURSION AND FINANCIAL MODELLING Chapter 5 - Recurrence Relations Extract from Study Design Key knowledge the concept of a first- order linear recurrence relation and its

More information

Sequence. A list of numbers written in a definite order.

Sequence. A list of numbers written in a definite order. Sequence A list of numbers written in a definite order. Terms of a Sequence a n = 2 n 2 1, 2 2, 2 3, 2 4, 2 n, 2, 4, 8, 16, 2 n We are going to be mainly concerned with infinite sequences. This means we

More information

MATH 415, WEEKS 14 & 15: 1 Recurrence Relations / Difference Equations

MATH 415, WEEKS 14 & 15: 1 Recurrence Relations / Difference Equations MATH 415, WEEKS 14 & 15: Recurrence Relations / Difference Equations 1 Recurrence Relations / Difference Equations In many applications, the systems are updated in discrete jumps rather than continuous

More information

Worksheets for GCSE Mathematics. Quadratics. mr-mathematics.com Maths Resources for Teachers. Algebra

Worksheets for GCSE Mathematics. Quadratics. mr-mathematics.com Maths Resources for Teachers. Algebra Worksheets for GCSE Mathematics Quadratics mr-mathematics.com Maths Resources for Teachers Algebra Quadratics Worksheets Contents Differentiated Independent Learning Worksheets Solving x + bx + c by factorisation

More information

Proofs. Methods of Proof Divisibility Floor and Ceiling Contradiction & Contrapositive Euclidean Algorithm. Reading (Epp s textbook)

Proofs. Methods of Proof Divisibility Floor and Ceiling Contradiction & Contrapositive Euclidean Algorithm. Reading (Epp s textbook) Proofs Methods of Proof Divisibility Floor and Ceiling Contradiction & Contrapositive Euclidean Algorithm Reading (Epp s textbook) 4.3 4.8 1 Divisibility The notation d n is read d divides n. Symbolically,

More information

Section 4.2: Mathematical Induction 1

Section 4.2: Mathematical Induction 1 Section 4.: Mathematical Induction 1 Over the next couple of sections, we shall consider a method of proof called mathematical induction. Induction is fairly complicated, but a very useful proof technique,

More information

Sequences and the Binomial Theorem

Sequences and the Binomial Theorem Chapter 9 Sequences and the Binomial Theorem 9. Sequences When we first introduced a function as a special type of relation in Section.3, we did not put any restrictions on the domain of the function.

More information