Recursion. The Fibonacci sequence presented in 1201 by Leonardo Fibonacci is one of the most famous. It looks like this 1, 1, 2, 3, 5, 8, 13, 21, 34,

Slides:



Advertisements
Similar presentations
CONTINUOUSLY COMPOUNDED INTEREST FORMULA amount at the end Principal (amount at start) annual interest rate (as a decimal) time (in years)
Advertisements

EXAMPLE 5 Model continuously compounded interest A = Pe rt SOLUTION Finance You deposit $4000 in an account that pays 6% annual interest compounded continuously.
Arithmetic Sequences and Series Unit Definition Arithmetic Sequences – A sequence in which the difference between successive terms is a constant.
Compound growth of savings or investments 1. Interest: definition A. a sum paid or charged for the use of money or for borrowing money B.such a sum expressed.
Deriving the Ordinary Annuity Formula. When we deposit an amount, P, m times per year (at the end of each period) into an account that compounds m times.
7.5 Use Recursive Rules with Sequences and Functions
Exponential Functions and their Graphs
EXAMPLE 5 Find the balance in an account You deposit $4000 in an account that pays 2.92% annual interest. Find the balance after 1 year if the interest.
7.7 Day 1 Notes Base e and Natural Logarithms
1 © 2010 Pearson Education, Inc. All rights reserved © 2010 Pearson Education, Inc. All rights reserved Chapter 10 Further Topics in Algebra.
Geometric Sequences and Series A sequence is geometric if the ratios of consecutive terms are the same. 2, 8, 32, 128, 512,... Definition of Geometric.
Applied Discrete Mathematics Week 9: Relations
A3 4.1 Exponential functions, Compound Interest, Interest Compounded Continuously, Applications HW: p , 25-55, odd.
12-1 Arithmetic Sequences and Series. Sequence- A function whose domain is a set of natural numbers Arithmetic sequences: a sequences in which the terms.
Slide Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley.
Exponential Functions Exponential functions Geometric Sequences.
Exponential Growth & Decay
6-7 Change each percent to a decimal. 1.4% 2.9%3.2.0% 4.6.5% % % COURSE 2 LESSON 9-7 (For help, go to Lessons 6-2.) Simple and Compound Interest.
What is happening here? 1, 1, 2, 3, 5, 8 What is after 8? What is the 10 th number?
11.5 = Recursion & Iteration. Arithmetic = adding (positive or negative)
Chapter 13: Sequences & Series L13.2 Recursive Definitions + Function Iteration.
ARITHMETIC SEQUENCES. (a) 5, 9, 13, 17, 21,25 (b) 2, 2.5, 3, 3.5, 4, 4, (c) 8, 5, 2, - 1, - 4, - 7 Adding 4 Adding.5 Adding - 3 Arithmetic Sequences.
CSE 2813 Discrete Structures Recurrence Relations Section 6.1.
Types of Compound Interest Compound Annually= Once per year Compound Semi-annually= 2 times per year Compound Quarterly= 4 times per year Compound Monthly=
Exponential Functions
Series and Sequences An infinite sequence is an unending list of numbers that follow a pattern. The terms of the sequence are written a1, a2, a3,...,an,...
Chapter 11 Section 11.1 – 11.7 Review. Chapter 11.1 – 11.4 Pretest Evaluate each expression 1. (⅔) -4 = ___________2. (27) - ⅔ = __________ 3. (3x 2 y.
9.3 Geometric Sequences and Series. Objective To find specified terms and the common ratio in a geometric sequence. To find the partial sum of a geometric.
Advanced Precalculus Notes 11.1 Sequences. A sequence is a function whose domain is the set of positive integers. Write the first six terms of the sequence:
Sequences and Summations Section 2.4. Section Summary Sequences. – Examples: Geometric Progression, Arithmetic Progression Recurrence Relations – Example:
Unit 5 – Series, Sequences, and Limits Section 5.2 – Recursive Definitions Calculator Required.
1 Topics Recursion sections 8.1 – Recursion A recursively defined sequence –First, certain initial values are specified –Later terms of the sequence.
Lesson 11-1 Sequences. Vocabulary Sequence – a list of numbers written in a definite order { a 1, a 2, a 3, a n-1, a n } Fibonacci sequence – a recursively.
1 © 2010 Pearson Education, Inc. All rights reserved © 2010 Pearson Education, Inc. All rights reserved Chapter 10 Further Topics in Algebra.
7-7 Simple and Compound Interest. Definitions Left side Principal Interest Interest rate Simple interest Right side When you first deposit money Money.
Compounding Interest Formula It’s like Math, but not really.
Objectives: Determine the Future Value of a Lump Sum of Money Determine the Present Value of a Lump Sum of Money Determine the Time required to Double.
Geometric Sequences & Series
Simple Interest Formula I = PRT. I = interest earned (amount of money the bank pays you) P = Principle amount invested or borrowed. R = Interest Rate.
You deposit $950 into an account that earns 4 % interest compounded annually. Find the balance in the account after five years. In your last calculation,
Infinite Geometric Series Recursion & Special Sequences Definitions & Equations Writing & Solving Geometric Series Practice Problems.
Chapter 11 Sequences, Induction, and Probability Copyright © 2014, 2010, 2007 Pearson Education, Inc Geometric Sequences and Series.
Lesson 10.1, page 926 Sequences and Summation Notation Objective: To find terms of sequences given the nth term and find and evaluate a series.
Essential Questions Introduction to Sequences
4.2A Arithmetic Explicit and Recursive Sequences
Classify the given numbers; a).255 b)√121 c)¾. Let the function rule be given by: F(x) = 3 + 4x -2 Complete the table: X012-4T F(x)
HONORS ALGEBRA DAY 1: SOLVING EXPONENTIAL EQUATIONS & INEQUALITIES.
13.2 – Recursive Definitions Essential Question: How and when is a recursive definition used?
Algebra II 8-1 (2). Starter: Graph: y = 2(4) x+3 -2 Asymptote: Domain: Range:
EXAMPLE FORMULA DEFINITION 1.
Arithmetic and Geometric sequence and series
11.2 Arithmetic Sequences.
8.3 Compound Interest HW: (1-21 Odds, Odds)
Annuities, methods of savings, investment
Future Value of an Investment
Sequences and Series.
Splash Screen.
Copyright © 2014, 2010, 2007 Pearson Education, Inc.
7-8 Notes for Algebra 1 Recursive Formulas.
Simple and Compound Interest
Notes Over 11.5 Recursive Rules
Geometric Sequences and Series
Section 12.1 Sequences and Section 12.2 Arithmetic Sequences
Geometric Sequences A geometric sequence is a list of numbers with a common ratio symbolized as r. This means that you can multiply by the same amount.
Write the recursive and explicit formula for the following sequence
Classwork: Explicit & Recursive Definitions of
Homework: Explicit & Recursive Definitions of
Use elimination to get rid of a1 and solve for d.
Warm Up Write the first 4 terms of each sequence:
Example 7 Investment The future value of $3000 invested for 3 years at rate r, compounded annually, is given by What interest rate will give a future value.
Presentation transcript:

Recursion

The Fibonacci sequence presented in 1201 by Leonardo Fibonacci is one of the most famous. It looks like this 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89,... After the first two numbers each number is the sum of the two numbers that precedes it.

The formula a n = a n-1 + a n-2 is an example of a recursive formula. Definition of a recursive formula. A recursive formula has two parts. The value(s) of the first term(s) A recursion equation that shows how to find each term from the term(s) before it.

Example 1. Find the first five terms of the sequence in which a 1 = 5 and a n+1 = 2a n + 3, n≥1. a 1 = 5. n=1a 1+1 = 2a n + 3 a 2 = 2(5) + 3 a 2 = 13

Example 1. Find the first five terms of the sequence in which a 1 = 5 and a n+1 = 2a n + 3, n≥1. n=1a 1+1 = 2a n + 3 a 2 = 2(5) + 3 a 2 = 13 n=2a 2+1 = 2a a 3 = 2(13) + 3 a 3 = 29

Example 1. Find the first five terms of the sequence in which a 1 = 5 and a n+1 = 2a n + 3, n≥1. n=2a 2+1 = 2a a 3 = 2(13) + 3 a 3 = 29 n=3a 3+1 = 2a a 4 = 2(29) + 3 a 4 = 61

Example 1. Find the first five terms of the sequence in which a 1 = 5 and a n+1 = 2a n + 3, n≥1. n=3a 3+1 = 2a a 4 = 2(29) + 3 a 4 = 61 n=4a 4+1 = 2a a 5 = 2(61) + 3 a 5 = 125

Example 1. Find the first five terms of the sequence in which a 1 = 5 and a n+1 = 2a n + 3, n≥1. So the first 5 terms are 5, 13, 29, 61, and 125.

Example 2. Find the first three iterates x 1, x 2, x 3, of the function f(x) = 3x + 1 for an initial value of x 0 = 1 x 1 = f(1)= 3(1)+1= 4 x 2 = f(4)= 3(4)+1= 13 x 3 = f(13)= 3(13)+1= 40 The first three iterates are 4,13,40.

Example 3. You invest in a savings account that pays 6% interest compounded annually. Find the balance in the account after 3 years. For compounded interest New balance=Old balance+interest b n = b n b n-1

Example 3. 6%, compounded annually, 3 years. b n = b n b n-1 b 1 = b 1 = 530 b 2 = b 2 = b 3 = b 3 =