Mixed Recursion: Sec. 8.4 Exercise 3. The closed-form formula for the Towers of Hanoi problem, M n = 2 n – 1, can be proved by mathematical induction.

Slides:



Advertisements
Similar presentations
Week 6 - Wednesday CS322.
Advertisements

We want to prove the above statement by mathematical Induction for all natural numbers (n=1,2,3,…) Next SlideSlide 1.
Simple Interest Day 2 Formula I = PRT.
Chapter 1 Real Numbers, Algebra, and Problem Solving
Find the simple interest if the principal is $500, the interest rate is 11% and the time is 2 years. MATH 110 Sec 8-2: Interest Practice Exercises.
Triangular Form and Gaussian Elimination Boldly on to Sec. 7.3a…
Fall 2007CS 2251 Proof by Induction. Fall 2007CS 2252 Proof by Induction There are two forms of induction Standard Induction –Prove the theorem is true.
Recursion.
Exponential Growth.
Solve an equation with variables on both sides
Direct Variation.
Write reasons for each step
How to solve using cross multiplication Created by: Brittany and Andrea.
Solving 2-step equations ax + b = c. Keep it balanced Just like when solving a one- step equation keep it balanced. Just like when solving a one- step.
Standardized Test Practice
259 Lecture 3 Spring 2015 Finance Applications with Excel – Annuities an Amortization.
Standardized Test Practice
TIME VALUE OF MONEY CHAPTER 5.
Copyright © Cengage Learning. All rights reserved.
Number Sequences Lecture 7: Sep 29 ? overhang. This Lecture We will study some simple number sequences and their properties. The topics include: Representation.
Find the monthly payment R necessary to pay off a loan of $90,000 at 5% compounded monthly for 30 years. (Round final answer up to the nearest cent.) MATH.
Interest on Loans Section 6.8. Objectives Calculate simple interest Calculate compound interest Solve applications related to credit card payments.
Present Value of an Annuity with Annual Payments 1 Dr. Craig Ruff Department of Finance J. Mack Robinson College of Business Georgia State University ©
RMIT University; Taylor's College1 Lecture 6  To apply the Principle of Mathematical Induction  To solve the Towers of Hanoi puzzle  To define a recurrence.
California Standards NS1.4 Calculate given percentages of quantities and solve problems involving discounts at sales, interest earned, and tips. Also.
Compound Interest ©Dr. B. C. Paul 2001 revisions 2008, 2011 Note – The subject covered in these slides is considered to be “common knowledge” to those.
Advanced Counting Techniques CSC-2259 Discrete Structures Konstantin Busch - LSU1.
13.2 Recursive Definitions Objective 1) Provide the recursive definition for sequences; 2) Identify the type of a sequence from a recursive definition.
Unit 4 Seminar: Simple Interest
Recurrence Relations: Selected Exercises
Chapter McGraw-Hill/Irwin Copyright © 2008 by The McGraw-Hill Companies, Inc. All rights reserved. The Time Value of Money 9.
Mathematics Geometric Series Science and Mathematics Education Research Group Supported by UBC Teaching and Learning Enhancement Fund Department.
Recurrence Relation Models
Advanced Counting Techniques CSC-2259 Discrete Structures Konstantin Busch - LSU1.
Solve an equation by combining like terms EXAMPLE 1 8x – 3x – 10 = 20 Write original equation. 5x – 10 = 20 Combine like terms. 5x – =
Sec 3.4 Finding Rate ObjectivesObjectives – Use the basic percent formula to solve for rate – Find the rate of return when the amount of the return and.
Splash Screen. Then/Now You have already solved real-world problems using the percent equations. (Lesson 7–5) Find percent of increase and decrease. Solve.
Jeopardy Solving Equations Add and Subtract Multiply and Divide Multi-Step Variables on each side Grouping Symbols $100 $200 $300 $400 $500 $100 $200.
Exponential Function If a > 0 and a ≠ 1, then defines the exponential function with base a. 4.2.
COMP 170 L2 L11: Recursion, Recurrence, and Induction l Objective n Recursion  A problem solving technique that reduces big problems into smaller ones.
1+2+3+…+n = n(n+1)/2 We want to prove the above statement by mathematical Induction for all natural numbers (n=1,2,3,…) Next SlideSlide 1.
Slide Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley.
Steps for Solving Equations with Variables on Both Sides 1.Distribute when necessary. 2.Combine like terms if possible. 3.Add or subtract to get the variables.
Holt CA Course Simple Interest Warm Up Warm Up California Standards California Standards Lesson Presentation Lesson PresentationPreview.
Solving 2 step equations. Two step equations have addition or subtraction and multiply or divide 3x + 1 = 10 3x + 1 = 10 4y + 2 = 10 4y + 2 = 10 2b +
Chapter McGraw-Hill/Irwin Copyright © 2008 by The McGraw-Hill Companies, Inc. All rights reserved. The Time Value of Money 9.
Recurrence Relations: Selected Exercises. Copyright © Peter Cappello2 Exercise 10 (a) A person deposits $1,000 in an account that yields 9% interest compounded.
1 10 Section 8.1 Recursive Thinking Page 409
Jeopardy Solving Equations
Students will use inverse operations to solve one-step equations.
Students will use inverse operations to solve one-step equations.
Students will use inverse operations to solve one-step equations.
Students will solve two step equations (12-4).
ONE STEP EQUATIONS.
ONE STEP EQUATIONS.
Chapter 3 Section 4.
Students will use inverse operations to solve one-step equations.
Students will use inverse operations to solve one-step equations.
Notes 9.5 – Mathematical Induction
2-4 Solving Multi-Step Equations
Solve an equation by combining like terms
Solving Systems Check Point Quiz Corrections
Solving One Step Equations
Students will use inverse operations to solve one-step equations.
Supplemental Material
Solving Two Step Algebraic Equations
ONE STEP EQUATIONS.
Students will use inverse operations to solve one-step equations.
3(9z + 4) > 35z – 4 Original problem. Solve each inequality. Then graph the solution set on the number line. 3(9z + 4) > 35z – 4 Original problem.
ONE STEP EQUATIONS.
Presentation transcript:

Mixed Recursion: Sec. 8.4 Exercise 3. The closed-form formula for the Towers of Hanoi problem, M n = 2 n – 1, can be proved by mathematical induction. You might be wondering at this point, “What’s mathematical induction?” I’m so glad you asked!

Mixed Recursion: Sec. 8.4 Mathematical Induction Mathematical induction is a technique often used for proving formulas that involve counting numbers (1, 2, 3, …). This technique requires two steps.

Mixed Recursion: Sec. 8.4 Mathematical Induction Step 1: Prove that the formula works for a specific case—typically for the number 1. Step 2: Assume the formula works for some number, k. Based on that assumption, show that it also works for k + 1.

Mixed Recursion: Sec. 8.4 Mathematical Induction If you can show that the formula works for a specific case, and that if it works for one natural number it will work for the next natural number, then you have proven that the formula will work for all natural numbers.

Mixed Recursion: Sec. 8.4 Exercise 3. The closed-form formula for the Towers of Hanoi problem, M n = 2 n – 1, can be proved by mathematical induction. a.What initial step is necessary? First we must show that the formula works for a specific case, such as for n = 1. M 1 = 2 1 – 1 = 2 – 1 = 1 This tells us that having one disc should require one move, which is true.

Mixed Recursion: Sec. 8.4 Exercise 3. The closed-form formula for the Towers of Hanoi problem, M n = 2 n – 1, can be proved by mathematical induction. b. The proof assumes that the formula works for a puzzle with k disks and then attempts to prove the formula must also work for a puzzle with k + 1 disks. Rewrite the assumption and goal of the induction proof in terms of the formula.

Mixed Recursion: Sec. 8.4 Exercise 3. The closed-form formula for the Towers of Hanoi problem, M n = 2 n – 1, can be proved by mathematical induction. b. Write the assumption and the goal. Assumption: M k = 2 k – 1 Goal: M k+1 = 2 k+1 – 1

Mixed Recursion: Sec. 8.4 Exercise 3. The closed-form formula for the Towers of Hanoi problem, M n = 2 n – 1, can be proved by mathematical induction. c. Show how the proof is completed by applying the recurrence relation. We know the recurrence relation is M n = 2M n Apply that recursion to our assumption.

Mixed Recursion: Sec. 8.4 Exercise 3. The closed-form formula for the Towers of Hanoi problem, M n = 2 n – 1, can be proved by mathematical induction. c. Show how the proof is completed by applying the recurrence relation. Assumption: M k = 2 k – 1 Applying our recursion: M k+1 = 2(2 k – 1) + 1

Mixed Recursion: Sec. 8.4 Exercise 3. c. Show how the proof is completed by applying the recurrence relation. Goal: M k+1 = 2 k+1 – 1 So far we have: M k+1 = 2(2 k – 1) + 1 Distribute the first 2: M k+1 = 2(2 k ) + 2(-1) + 1 = 2 k+1 – M k+1 = 2 k+1 – 1  Our Goal!

Mixed Recursion: Sec. 8.4 Exercise 7. To help him finish his final year of college, Sam took out a loan of $5,000. At the end of the first year after he graduated, there was a $4,500 balance, and at the end of the second year, $3,950 remained. The amount of money left at the end of n years can be modeled by the mixed recurrence relation t n = at n-1 + b. a. The information stated above is summarized in the following table:

Mixed Recursion: Sec. 8.4 Exercise 7. Please note there is a mistake in the book. The answers in the back of the book for this problem would be correct if t 2 were 3,950, instead of 3,900. We’ll proceed with the values given in the table, and our answers will be different from those in the back of the book.

Mixed Recursion: Sec. 8.4 Exercise 7. a. Use the general form of a mixed recurrence relation and the data in the table to write a system of equations. Solve for a and b. What is the recurrence relation for the amount of money in Sam’s account after n years? General form: t n = at n-1 + b For n = 1: 4,500 = a(5,000) + b For n = 2: 3,900 = a(4,500) + b

Mixed Recursion: Sec. 8.4 Exercise 7. a. What is the recurrence relation for the amount of money in Sam’s account after n years? For n = 1: 4,500 = a(5,000) + b For n = 2: 3,900 = a(4,500) + b We can solve this using matrices: X =

Mixed Recursion: Sec. 8.4 Exercise 7. a. What is the recurrence relation for the amount of money in Sam’s account after n years? X = X = X X = So for the balance: t n = 1.2t n-1 – 1,500

Mixed Recursion: Sec. 8.4 Exercise 7. a. What is the recurrence relation for the amount of money in Sam’s account after n years? We could also solve this by looking at the ratio of successive 1 st differences:

Mixed Recursion: Sec. 8.4 Exercise 7. a. What is the recurrence relation for the amount of money in Sam’s account after n years? Multiply 1.2 times the first balance of 5,000 and we get 6,000. From there we need to subtract 1,500 in order to get to the second balance of 4,500. Thus, t n = 1.2t n

Mixed Recursion: Sec. 8.4 Exercise 7. b. What will be the balance owed on the loan at the end of the third year? The fourth year? Recurrence relation: t n = 1.2t n-1 – 1,500 End of second year: t 2 = $3,900 End of third year: t 3 = 1.2(3,900) – 1,500 = $3,180 End of fourth year: t 4 = 1.2(3,180) – 1,500 = $2,316

Mixed Recursion: Sec. 8.4 Exercise 7. c. What is the rate of interest on this loan? t n = 1.2t n-1 – 1,500 The value of a, which in this case is 1.2, tells us the interest rate. Take that value and subtract 1, which gives us.2, and then multiply by 100 to get the percent..2(100) = 20% interest

Mixed Recursion: Sec. 8.4 Exercise 7. d. Find the fixed point for this recurrence relation. What is the significance of this amount of money? t n = 1.2t n-1 – 1,500 x = 1.2x – 1,500 Subtract x from each side, and add 1,500 to each side. 1,500 =.2x Divide each side by.2, or multiply each side by 5. 7,500 = x If the original balance were $7,500, the loan would never be paid off. The $1,500 payment each year would exactly cover the interest.

Mixed Recursion: Sec. 8.4 Exercise 8. Suppose a college’s tuition over the past 3 years has risen from $8,000 to $8,700 to the present cost of $9,435. Use a mixed recurrence relation of the form t n = at n-1 + b to predict next year’s tuition.

Mixed Recursion: Sec. 8.4 Exercise 8. Use a mixed recurrence relation of the form t n = at n-1 + b to predict next year’s tuition. Multiply 8,000 by 1.05 to get 8,400. We need to add 300 to reach the year 2 value of 8,700. So our recurrence relation is t n = 1.05t n This leads us to predict next year’s tuition as 1.05(9,435) + 300, or $10,