MI 4 Mathematical Induction Name. Mathematical Induction

Similar documents
Chapter 2. Mathematical Reasoning. 2.1 Mathematical Models

Induction 1 = 1(1+1) = 2(2+1) = 3(3+1) 2

CHAPTER 4 SOME METHODS OF PROOF

What can you prove by induction?

cse547, math547 DISCRETE MATHEMATICS Professor Anita Wasilewska

ASSIGNMENT 1 SOLUTIONS

CS1800: Mathematical Induction. Professor Kevin Gold

Math 300: Final Exam Practice Solutions

Cool Results on Primes

Mathematical Induction

Introducing Proof 1. hsn.uk.net. Contents

What is proof? Lesson 1

WORKSHEET ON NUMBERS, MATH 215 FALL. We start our study of numbers with the integers: N = {1, 2, 3,...}

MATH CSE20 Homework 5 Due Monday November 4

1 Sequences and Summation

, p 1 < p 2 < < p l primes.

Appendix G: Mathematical Induction

6.042/18.062J Mathematics for Computer Science March 17, 2005 Srini Devadas and Eric Lehman. Recurrences

You separate binary numbers into columns in a similar fashion. 2 5 = 32

Winter Camp 2009 Number Theory Tips and Tricks

Basics of Proofs. 1 The Basics. 2 Proof Strategies. 2.1 Understand What s Going On

Writing proofs. Tim Hsu, San José State University. May 31, Definitions and theorems 3. 2 What is a proof? 3. 3 A word about definitions 4

The Basics COPYRIGHTED MATERIAL. chapter. Algebra is a very logical way to solve

Matrix Multiplication

Math Circle: Recursion and Induction

MATHEMATICAL INDUCTION

Inference and Proofs (1.6 & 1.7)

Chapter12. Relations, Functions, and Induction

Solving with Absolute Value

QUADRATICS 3.2 Breaking Symmetry: Factoring

Lecture 3: Sizes of Infinity

base 2 4 The EXPONENT tells you how many times to write the base as a factor. Evaluate the following expressions in standard notation.

MA103 STATEMENTS, PROOF, LOGIC

3 The language of proof

Row Reduction

WORKSHEET MATH 215, FALL 15, WHYTE. We begin our course with the natural numbers:

Solution Set 2. Problem 1. [a] + [b] = [a + b] = [b + a] = [b] + [a] ([a] + [b]) + [c] = [a + b] + [c] = [a + b + c] = [a] + [b + c] = [a] + ([b + c])

Another Proof By Contradiction: 2 is Irrational

An analogy from Calculus: limits

Introduction to Basic Proof Techniques Mathew A. Johnson

means is a subset of. So we say A B for sets A and B if x A we have x B holds. BY CONTRAST, a S means that a is a member of S.

Section 20: Arrow Diagrams on the Integers

Fibonacci mod k. In this section, we examine the question of which terms of the Fibonacci sequence have a given divisor k.

Preptests 59 Answers and Explanations (By Ivy Global) Section 1 Analytical Reasoning

Partial Fractions. June 27, In this section, we will learn to integrate another class of functions: the rational functions.

Lecture 12 : Recurrences DRAFT

At the start of the term, we saw the following formula for computing the sum of the first n integers:

MCS-236: Graph Theory Handout #A4 San Skulrattanakulchai Gustavus Adolphus College Sep 15, Methods of Proof

PHIL 422 Advanced Logic Inductive Proof

Solution to Proof Questions from September 1st

Mathematical Statements

Writing proofs for MATH 51H Section 2: Set theory, proofs of existential statements, proofs of uniqueness statements, proof by cases

Solving Quadratic & Higher Degree Equations

Algebra. Here are a couple of warnings to my students who may be here to get a copy of what happened on a day that you missed.

THE SIMPLE PROOF OF GOLDBACH'S CONJECTURE. by Miles Mathis

35 Chapter CHAPTER 4: Mathematical Proof

Name Solutions Linear Algebra; Test 3. Throughout the test simplify all answers except where stated otherwise.

CS 124 Math Review Section January 29, 2018

PROBLEM SET 3: PROOF TECHNIQUES

HOW TO WRITE PROOFS. Dr. Min Ru, University of Houston

Sequences and infinite series

Lecture 6: Finite Fields

Examples: P: it is not the case that P. P Q: P or Q P Q: P implies Q (if P then Q) Typical formula:

Discrete Mathematics and Probability Theory Fall 2013 Vazirani Note 1

( )( b + c) = ab + ac, but it can also be ( )( a) = ba + ca. Let s use the distributive property on a couple of

Proof Techniques (Review of Math 271)

Invariants II. LA Math Circle (Advanced) November 15, 2015

[Disclaimer: This is not a complete list of everything you need to know, just some of the topics that gave people difficulty.]

Math 425 Fall All About Zero

Mathematical induction

MAS114: Solutions to Exercises

MATH 2200 Final Review

Manual of Logical Style (fresh version 2018)

MITOCW watch?v=y6ma-zn4olk

Preptests 55 Answers and Explanations (By Ivy Global) Section 4 Logic Games

DIFFERENTIAL EQUATIONS

No Solution Equations Let s look at the following equation: 2 +3=2 +7

Fundamentals of Mathematics I

NIT #7 CORE ALGE COMMON IALS

3.1 Induction: An informal introduction

CS280, Spring 2004: Final

Divisibility = 16, = 9, = 2, = 5. (Negative!)

Logic. Propositional Logic: Syntax. Wffs

Chapter 1 Review of Equations and Inequalities

CS 4104 Data and Algorithm Analysis. CS4014: What You Need to Already Know. CS4104: What We Will Do. Introduction to Problem Solving (1)

Logic. Propositional Logic: Syntax

a. See the textbook for examples of proving logical equivalence using truth tables. b. There is a real number x for which f (x) < 0. (x 1) 2 > 0.

Math /Foundations of Algebra/Fall 2017 Foundations of the Foundations: Proofs

Fall 2017 Test II review problems

Egyptian Fractions: Part I

Modern Algebra Prof. Manindra Agrawal Department of Computer Science and Engineering Indian Institute of Technology, Kanpur

Mathematics-I Prof. S.K. Ray Department of Mathematics and Statistics Indian Institute of Technology, Kanpur. Lecture 1 Real Numbers

Seunghee Ye Ma 8: Week 1 Notes September 29, 2016

Chapter III. Basic Proof Techniques. Proving the obvious has never been easy. Marty Rubin

Mathematical Writing and Methods of Proof

ASTRO 114 Lecture Okay. We re now gonna continue discussing and conclude discussing the entire

Numbers, proof and all that jazz.

CS1800: Strong Induction. Professor Kevin Gold

Example. How to Guess What to Prove

Solving Quadratic & Higher Degree Equations

Transcription:

Mathematical Induction It turns out that the most efficient solution to the Towers of Hanoi problem with n disks takes n 1 moves. If this isn t the formula you determined, make sure to check your data if you took more moves than this, see if you can find a more efficient solution; if you took fewer make sure you didn t accidentally cheat! How do we know that the Tower of Hanoi can really be solved in n 1 moves, even if n is very large? Sure, the formula worked for small choices of n like 1,, 3, and perhaps you even tried 4 or 5. But there is no way you could try 64 disks, much less a billion. What if some difficulty sets in when the problem becomes complicated enough, and it stops following the pattern? Or conversely, what if there is some shortcut for larger numbers? Then the simple formula n 1 might not work out any more. Math is full of patterns that don t work out. For instance, into how many separate regions can n lines split the plane? n = 0, 1 region n = 1, regions n =, 4 regions n = 3, 7 regions? (1 region) (region 1) (region ) (1) () (3) (4) It looked like we had a nice pattern of doubling each time, but after a while it broke down. And that is the problem with statements about all n they might break down after a while. Worse, they might break down for some large number where we didn t bother to check that high, so we don t even know they broke down. Sometimes, it can be very important to know that some fact is true about every possible integer. For instance, some forms of Internet security depend on the fact that every positive integer can be factored into primes in exactly one way. Now most 50-digit numbers have never been factored, much less double-checked to see if there isn t maybe a second, different way to factor it. There are just too many 50-digit numbers to check them all! But if the 50-digit number that happens to be guarding your credit card can be factored in two different ways, it could compromise your card s security. So it is important to be able to prove that every number can be factored in a unique way, even though it is impossible to actually check them all. There are a number of techniques mathematicians use to prove statements are true about all numbers, without having to check that every possible number works. Induction.1

1. The most common type of proof in mathematics is the direct proof. This proceeds from known facts to deduce new facts. For instance: prove that if n is even, then so is n (hint: start by noticing that if n is even, then n = k for some other number k. Note this is not true about odd numbers! Now what is n?) If n is even, then n = k, so n = (k) = 4k = k is also even. So the square of every even number is even. Now since n is a variable in your proof, you could substitute any even number for n, and you know that n is also even. So your have proven that the square of an even number is even, without having to check every even number (or, by a different way of thinking, since n is variable you checked every even number simultaneously).. Another common proof technique is indirect proof, sometimes called proof by contradiction or proof by contraposition (they are slightly different, but let s not worry about that for now). Use proof by contradiction to prove that if n is odd, then n must be odd. (Hint: what do you know if n is even?) Assume that n is even. Then, from the previous problem, we know that n is even, not odd. This is a contradiction, so n must be odd. Again, since n is a variable, you could substitute any n and the statement remains true. These techniques aren t always sufficient to prove everything we want to prove. We would like to prove that Towers of Hanoi can be solved in n 1 moves if you start with a stack of n disks. The problem with direct or indirect proof is that there is no easy way to take a variable n and say which n 1 moves you are going to make, and why no fewer will work. Unlike the even and odd numbers we played with above, it s difficult to see what property of n makes the Towers work in the right number of moves. Remember the notation from the last handout: H(n) is the minimum number of moves needed to move a stack of n disks. Induction.

Recursion and Induction 3. Pretend you are faced with a tower of sixteen disks to move. Don t fret! The evil Dr. Mike Fogg just stepped into the room, and he happens to know how to solve a 15-disk puzzle in the most efficient way possible! (In other words, he can do it using exactly H(15) moves.) Explain how you could use his knowledge to solve the 16-disk puzzle. First, use Dr. Fogg s method to move the top 15 disks onto another peg. Then move the biggest disk onto the third peg. Then, use Dr. Fogg s method to put the 15 disks back on top of the biggest disk, thus moving all 16 disks to a new peg. 4. You should be able to use your strategy to explain why H(16) H(15) + 1. Can you think of why this is and not just =? Can you make your argument slightly more precise to explain why it can t be < and therefore must actually be =? Our solution used Dr. Fogg s solution twice, plus one additional move of the biggest disk. So H(16) is at most H(15) + 1. It might be less, because there might be a shortcut not involving Dr. Fogg s method. But not really. Before we can move the biggest disk, all the disks must be moved off of it, and onto a single other peg to leave room to move the biggest disk. This takes at least H(15) moves, since H(15) is the most efficient way possible. Then we must move the biggest disk, then put those smaller ones back on top, taking at least H(15) more moves. So H(16) H(15) + 1. If it is and, is must be =. 5. If H(15) really does equal 15 1, use this new strategy to find and simplify H(16). H(16) = H(15) + 1 = ( 15 1) + 1 = 15 + 1 = 16 1. 6. Is there anything special about the numbers 15 and 16 to make this work? Or could your strategy work for any number, k, so long as Dr. Fogg knows the solution for k 1 disks? Nothing special. Everything works the same with any two consecutive numbers. Induction.3

7. If Dr. Fogg s solution really does take k 1 1 steps for the k 1-disk tower, compute how many steps it will take you to solve the k-disk tower. H(k) = H(k 1) + 1 = ( k 1 1) + 1 = k 1 + 1 = k 1. This is an example of a common strategy in mathematics. If you have a sequence of related problems, figure out how to use the solution to each one as part of the solution to the next more complicated one. This is called recursion. If you could then figure out how to solve the first problem, you could use that as part of the solution to the second problem. Then you could use that to solve the third one. Then you could use this triply-compounded solution to solve the fourth one, and so on. Since, eventually, you will get to any one of those problems if you work for long enough, you can say that (in theory at least it might take you a long time to get to the trillionth problem!) you can solve every one of those problems. This is actually an axiom of the integers: if you can solve problem number one, and whenever you know the solution to problem number k 1 you have a strategy for turning that into a solution for problem number k, then you can solve all the problems! This technique relied on two things: 1) the ability to solve the first problem, and ) having a strategy to use a solution for one problem to solve the next one. Without the first you have no way to get started, and without the second you have no way of continuing once you get started. Let s put it in more math-y terms. Let s say you have some statement about a number n. It might be n is odd or Towers of Hanoi with n disks can be solved, in exactly n 1 moves. We will call this statement S(n) and it can be either true or false when you substitute some particular number for n. For example, if S(n) is n is odd then S(3) is true while S(94) is false. Principle of Mathematical Induction: Let s say you want to prove the S(n) is true no matter what positive integer you plug in for n. (1) if S(1) is true, and () whenever a particular S(k 1) happens to be true, you know how to use that fact to prove that S(k) is also true, then (conclusion) S(n) is true for all positive integers n by the principle of mathematical induction. As noted, the principle of mathematical induction is an axiom of the integers. We can t prove it s true. It is part of the mathematical definition of the integers. It is believable, because we know a way to get from the truth of S(k 1) to the truth of S(k), and we also know that S(1) is true. But then setting k =, we know how to use the fact that S(k 1) = S(1) is true to prove that S() is true. So now we know that S() is true, and we change k to 3. Then we know S(k 1) = S() is true, and we know how to get from S() to S(3), so we now learn that S(3) is true. And we just keep going forever. Notice there are two variables n and k. It s better not to think of k as a variable, but as being a definite, but unknown, number. It doesn t change during your proof; it s some particular number, and it happens not to matter what that number is in your strategy from going from one Induction.4

step to the next. That is, your strategy tells how to solve problem number k given that you (or Dr. Fogg) knows how to solve problem number k 1, without knowing what k actually is. It s like climbing a long staircase it doesn t matter which stair you are on in the process of climbing from one stair to the next. Whichever stair you are on (which just happens to be number k 1) you can climb onto the next stair (which is stair number k), and it doesn t matter what k is. On the other hand, n is a variable like in the examples of direct and indirect proof earlier you can substitute any value for n and the statement is true, so the statement is true for all positive integers n. Part (1), which gets you started, is called the base case or basis step. Part (), which keeps you going once you ve started, is called the induction step. Let s write out the whole inductive proof of the Tower of Hanoi problem now: Theorem: the n-disk Tower of Hanoi problem can be solved, and the best solution takes exactly n 1 steps. 8. Base case: Explain how to solve the 1-disk Tower of Hanoi: Just move the disk to a new peg. 1 9. How many moves did you take? Is this equal to 1 1? Yes 10. Induction step: Let s say you (or Dr. Fogg) has a solution to the k 1-disk puzzle, and that the best possible solution takes H(k 1) moves. Explain why you can now solve the k-disk puzzle, needing no more nor less than H(k 1) + 1 moves. Let s say we have a solution to the k 1 disk puzzle, taking the minimum number of H(k 1) moves. Then to solve the k- disk puzzle, we can move the top k 1 disks onto a new peg in H(k 1) moves, then move the largest disk onto the last vacant peg, then use another H(k 1) moves to put the smaller disks back on top of the largest. So we can move the tower in no more than H(k 1) + 1 moves. But we can t do any better than that, because before we move the biggest disk, we must move all the smaller disks onto a single other peg, which takes at least H(k 1) moves. Then one move to move the biggest disk, then at least H(k 1) more moves to put the small ones back on top. 11. So H(k) = H(k 1) + 1. If we knew that H(k 1) = k 1 1, simplify to find H(k). H(k) = H(k 1) + 1 = ( k 1 1) + 1 = k 1 + 1 = k 1. By the principle of induction, we are done! We have proven that n-disk Tower of Hanoi can always be solved, taking n 1 moves. Induction.5

As you were filling in the steps of the proof, it probably felt like you were just repeating the arguments from before. You were you really had completed the proof before, and were just putting all the pieces together in one place. Let s try another one. Theorem: if n (non-parallel) lines are drawn in a plane, the resulting picture has n(n +1) L( n) = +1 regions. (You might want to check that this formula works for n = 0, 1,, and 3 from the pictures on the first page!) 1. Base case: does the formula work for one line? How many regions are there? What does the formula give when you substitute n = 1? Are these equal? With one line, we get two regions. 1 (1 + 1) / + 1 =, so the formula works in this case. 13. Inductive step: Let s say that for some number k, Dr. Fogg counted the number of regions determined by k 1 lines and knows that this really does fit the formula there really are (k 1)(k) L( k 1) = +1 regions. How many regions will there be when you draw that kth line? If the new line crosses through an old region, it splits that region into two pieces one region becomes two. So you add one new region for each old region that your new line crosses. Explain why your new line crosses exactly k regions. Hint: when does your new line go from one old region to a different one? When we add the kth line, it starts in one region, and crosses into a new region each time it crosses one of the k 1 old lines. So it crosses into k 1 other regions. Thus the new line crosses a total of k regions, splitting each in two. Thus, when we add a new line to the picture, we add k new regions. So now we know that L(k) = L(k 1) + k. Substitute the formula for L(k 1) above and simplify. Do this match the hoped-for formula for L(k)? (k 1)k L(k) = L(k 1) + k = = k + k k(k +1) +1 = +1+ k = k k +1. Yes, it matches! Then we re done, by the principle of induction! +1+ k k = k k + k +1 Induction.6