Example. How to Guess What to Prove

Similar documents
Reading 5 : Induction

What is proof? Lesson 1

Math 3361-Modern Algebra Lecture 08 9/26/ Cardinality

One-to-one functions and onto functions

Lecture Overview. 2 Weak Induction

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

What can you prove by induction?

CS1800: Strong Induction. Professor Kevin Gold

CS 124 Math Review Section January 29, 2018

CS173 Strong Induction and Functions. Tandy Warnow

Math 300: Final Exam Practice Solutions

Discrete Mathematics and Probability Theory Fall 2013 Vazirani Note 1

Generating Function Notes , Fall 2005, Prof. Peter Shor

Lecture 4: Constructing the Integers, Rationals and Reals

Combinatorics. But there are some standard techniques. That s what we ll be studying.

5.2 Infinite Series Brian E. Veitch

2.1 Convergence of Sequences

Chapter 2. Mathematical Reasoning. 2.1 Mathematical Models

PGSS Discrete Math Solutions to Problem Set #4. Note: signifies the end of a problem, and signifies the end of a proof.

Hence, the sequence of triangular numbers is given by., the. n th square number, is the sum of the first. S n

Announcements. Read Section 2.1 (Sets), 2.2 (Set Operations) and 5.1 (Mathematical Induction) Existence Proofs. Non-constructive

Discrete Math, Spring Solutions to Problems V

CSC236H Lecture 2. Ilir Dema. September 19, 2018

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 3

Descriptive Statistics (And a little bit on rounding and significant digits)

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

CSC236 Week 3. Larry Zhang

Nondeterministic finite automata

3 Finite continued fractions

CONSTRUCTION PROBLEMS

MI 4 Mathematical Induction Name. Mathematical Induction

Generating Functions

MA103 STATEMENTS, PROOF, LOGIC

Chapter 26: Comparing Counts (Chi Square)

AN ALGEBRA PRIMER WITH A VIEW TOWARD CURVES OVER FINITE FIELDS

Natural deduction for truth-functional logic

CHMC: Finite Fields 9/23/17

Introduction to Induction (LAMC, 10/14/07)

a 2 = ab a 2 b 2 = ab b 2 (a + b)(a b) = b(a b) a + b = b

Cambridge University Press How to Prove it: A Structured Approach: Second edition Daniel J. Velleman Excerpt More information

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

Reading and Writing. Mathematical Proofs. Slides by Arthur van Goetham

QUADRATICS 3.2 Breaking Symmetry: Factoring

. As the binomial coefficients are integers we have that. 2 n(n 1).

4 Linear Recurrence Relations & the Fibonacci Sequence

Cantor and Infinite Sets

Another Proof By Contradiction: 2 is Irrational

Assignment 3 Logic and Reasoning KEY

Lecture 11: Extrema. Nathan Pflueger. 2 October 2013

HOW TO CREATE A PROOF. Writing proofs is typically not a straightforward, algorithmic process such as calculating

Math 40510, Algebraic Geometry

Lecture 8 : Structural Induction DRAFT

6 Cosets & Factor Groups

MATH10040: Numbers and Functions Homework 1: Solutions

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

MAS114: Solutions to Exercises

Big-oh stuff. You should know this definition by heart and be able to give it,

Sequence convergence, the weak T-axioms, and first countability

Exercises. Template for Proofs by Mathematical Induction

CMSC 27130: Honors Discrete Mathematics

Countability. 1 Motivation. 2 Counting

Direct Proofs. the product of two consecutive integers plus the larger of the two integers

Mathmatics 239 solutions to Homework for Chapter 2

Warm-up Simple methods Linear recurrences. Solving recurrences. Misha Lavrov. ARML Practice 2/2/2014

Lecture 10: Powers of Matrices, Difference Equations

Seunghee Ye Ma 8: Week 2 Oct 6

CS 173: Induction. Madhusudan Parthasarathy University of Illinois at Urbana-Champaign. February 7, 2016

Notes on induction proofs and recursive definitions

Winter Camp 2009 Number Theory Tips and Tricks

Answers for Calculus Review (Extrema and Concavity)

Math101, Sections 2 and 3, Spring 2008 Review Sheet for Exam #2:

CS1800: Mathematical Induction. Professor Kevin Gold

An analogy from Calculus: limits

CHAPTER 3. Sequences. 1. Basic Properties

3.1 Induction: An informal introduction

Mathematical induction

Binomial Coefficient Identities/Complements

Theorem. For every positive integer n, the sum of the positive integers from 1 to n is n(n+1)

Table of Contents. 2013, Pearson Education, Inc.

HAMPSHIRE COLLEGE: YOU CAN T GET THERE FROM HERE : WHY YOU CAN T TRISECT AN ANGLE, DOUBLE THE CUBE, OR SQUARE THE CIRCLE. Contents. 1.

Proof Techniques (Review of Math 271)

Algebra Exam. Solutions and Grading Guide

Ch1 Algebra and functions. Ch 2 Sine and Cosine rule. Ch 10 Integration. Ch 9. Ch 3 Exponentials and Logarithms. Trigonometric.

Cartesian Products and Relations

Automata Theory and Formal Grammars: Lecture 1

Theorem (Special Case of Ramsey s Theorem) R(k, l) is finite. Furthermore, it satisfies,

Math 31 Lesson Plan. Day 2: Sets; Binary Operations. Elizabeth Gillaspy. September 23, 2011

Use mathematical induction in Exercises 3 17 to prove summation formulae. Be sure to identify where you use the inductive hypothesis.

AQA Level 2 Further mathematics Further algebra. Section 4: Proof and sequences

We have been going places in the car of calculus for years, but this analysis course is about how the car actually works.

Lecture 3: Sizes of Infinity

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

Appendix A. Jargon. A.1 Strange technical terms

Introduction to Algebra: The First Week

I. Induction. Po-Shen Loh June 16, 2003

In Which We Conclude Calculus by Using Taylor Series to Prove Euler s Identity Calculus 12, Veritas Prep.

Lecture 5. 1 Review (Pairwise Independence and Derandomization)

Name (print): Question 4. exercise 1.24 (compute the union, then the intersection of two sets)

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

FOUNDATIONS OF ALGEBRAIC GEOMETRY CLASS 37

Transcription:

How to Guess What to Prove Example Sometimes formulating P (n) is straightforward; sometimes it s not. This is what to do: Compute the result in some specific cases Conjecture a generalization based on these cases Prove the correctness of your conjecture (by induction) Suppose a 1 = 1 and a n = a n/2 + a n/2 for n > 1. Find an explicit formula for a n. Try to see the pattern: a 1 = 1 a 2 = a 1 + a 1 = 1 + 1 = 2 a 3 = a 2 + a 1 = 2 + 1 = 3 a 4 = a 2 + a 2 = 2 + 2 = 4 Suppose we modify the example. Now a 1 = 3 and a n = a n/2 + a n/2 for n > 1. What s the pattern? a 1 = 3 a 2 = a 1 + a 1 = 3 + 3 = 6 a 3 = a 2 + a 1 = 6 + 3 = 9 a 4 = a 2 + a 2 = 6 + 6 = 12 a n = 3n! 1 2 Theorem: If a 1 = k and a n = a n/2 + a n/2 for n > 1, then a n = kn for n 1. Proof: By strong induction. Let P (n) be the statement that a n = kn. Basis: P (1) says that a 1 = k, which is true by hypothesis. Inductive step: Assume P (1),..., P (n); prove P (n+1). a n+1 = a (n+1)/2 + a (n+1)/2 = k (n + 1)/2 + k (n + 1)/2 [Induction hypothesis] = k( (n + 1)/2 + (n + 1)/2 ) = k(n + 1) We used the fact that n/2 + n/2 = n for all n (in particular, for n + 1). To see this, consider two cases: n is odd and n is even. if n is even, n/2 + n/2 = n/2 + n/2 = n if n is odd, suppose n = 2k + 1 n/2 + n/2 = (k + 1) + k = 2k + 1 = n This proof has a (small) gap: We should check that (n + 1)/2 n In general, there is no rule for guessing the right inductive hypothesis. However, if you have a sequence of numbers r 1, r 2, r 3,... and want to guess a general expression, here are some guidelines for trying to find the type of the expression (exponential, polynomial): Compute lim n r n+1 /r n if it looks like lim n r n+1 /r n = b / {0, 1}, then r n probably has the form Ab n +. You can compute A by computing lim n r n /b n Try to compute the form of by considering the sequence r n Ab n ; that is, r 1 Ab, r 2 Ab 2, r 3 Ab 3,... lim n r n+1 /r n = 1, then r n is most likely a polynomial. lim n r n+1 /r n = 0, then r n may have the form A/b f(n), where f(n)/n f(n) could be n log n or n 2, for example Once you have guessed the form of r n, prove that your guess is right by induction. 3 4

More examples One more example Come up with a simple formula for the sequence 1, 5, 13, 41, 121, 365, 1093, 3281, 9841, 29525 Compute limit of r n+1 /r n : 5/1 = 5, 13/5 2.6, 41/13 3.2, 121/41 2.95,..., 29525/9841 3.000 Guess: limit is 3 ( r n = A3 n + ) Compute limit of r n /3 n : 1/3.33, 5/9.56, 13/27.5, 41/81.5,..., 29525/3 10.5000 Guess: limit is 1/2 ( r n = 1 2 3n + )+ Compute r n 3 n /2: (1 3/2), (5 9/2), (13 27/2), (41 81/2),... = 1 2, 1 2, 1 2, 1 2,... Guess: general term is 3 n /2 + ( 1) n /2 Verify (by induction...) Find a formula for 1 1 4 + 1 4 7 + 1 7 10 + + 1 (3n 2)(3n + 1) Some values: r 1 = 1/4 r 2 = 1/4 + 1/28 = 8/28 = 2/7 r 3 = 1/4 + 1/28 + 1/70 = (70 + 10 + 4)/280 = 84/280 = 3/10 Conjecture: r n = n/(3n + 1). Let this be P (n). Basis: P (1) says that r 1 = 1/4. Inductive step: r n+1 = r n + 1 = n 3n+1 + 1 = n(3n+4)+1 = 3n2 +4n+1 = (n+1)(3n+1) = n+1 3n+4 5 6 Faulty Inductions Part of why I want you to write out your assumptions carefully is so that you don t get led into some standard errors. Theorem: All women are blondes. Proof by induction: Let P (n) be the statement: For any set of n women, if at least one of them is a blonde, then all of them are. Basis: Clearly OK. Inductive step: Assume P (n). Let s prove P (n + 1). Given a set W of n + 1 women, one of which is blonde. Let A and B be two subsets of W of size n, each of which contains the known blonde, whose union is W. Take W to be the set of women in the world, and let n = W. Since there is clearly at least one blonde in the world, it follows that all women are blonde! Where s the bug? By the induction hypothesis, each of A and B consists of all blondes. Thus, so does W. This proves P (n) P (n + 1). 7 8

Theorem: Every integer > 1 has a unique prime factorization. [The result is true, but the following proof is not:] Proof: By strong induction. Let P (n) be the statement that n has a unique factorization. We prove P (n) for n > 1. Basis: P (2) is clearly true. Induction step: Assume P (2),..., P (n). We prove P (n + 1). If n + 1 is prime, we are done. If not, it factors somehow. Suppose n+1 = rs r, s > 1. By the induction hypothesis, r has a unique factorization Π i p i and s has a unique prime factorization Π j q j. Thus, Π i p i Π j q j is a prime factorization of n + 1, and since none of the factors of either piece can be changed, it must be unique. What s the flaw?? Problem: Suppose n + 1 = 36. That is, you ve proved that every number up to 36 has a unique factorization. Now you need to prove it for 36. 36 isn t prime, but 36 = 3 12. By the induction hypothesis, 12 has a unique prime factorization, say p 1 p 2 p 3. Thus, 36 = 3p 1 p 2 p 3. However, 36 is also 4 9. By the induction hypothesis, 4 = q 1 q 2 and 9 = r 1 r 2. Thus, 36 = q 1 q 2 r 1 r 2. How do you know that 3p 1 p 2 p 3 = q 1 q 2 r 1 r 2. (They do, but it doesn t follow from the induction hypothesis.) This is a breakdown error. If you re trying to show something is unique, and you break it down (as we broke down n+1 into r and s) you have to argue that nothing changes if we break it down a different way. What if n + 1 = tu? The actual proof of this result is quite subtle 9 10 Theorem: The sum of the internal angles of a regular n-gon is 180(n 2) for n 3. Proof: By induction. Let P (n) be the sum of the internal angles of a regular n-gon is 180(n 2). For n = 3, the result was shown in high school. Assume P (n); let s prove P (n + 1). Given a regular (n + 1)-gon, we can lop off one of the corners: By the induction hypothesis, the sum of the internal angles of the regular n-gon is 180(n 2) degrees; the sum of the internal angles of the triangle is 180 degrees. Thus, the internal angles of the original (n+1)-gon is 180(n 1). What s wrong?? When you lop off a corner, you don t get a regular n-gon. The fix: Strengthen the induction hypothesis. Let P (n) say that the sum of the internal angles of any n-gon is 180(n 2). 11 Consider 0-1 sequences in which 1 s may not appear consecutively, except in the rightmost two positions. 010110 is not allowed, but 010011 is Prove that there are 2 n allowed sequences of length n for n 1 Why can t this be right? Proof Let P (n) be the statement of the theorem. Basis: There are 2 sequences of length 1 0 and 1 and they re both allowed. Inductive step: Assume P (n). Let s prove P (n + 1). Take any allowed sequence x of length n. We get a sequence of length n + 1 by appending either a 0 or 1 at the end. In either case, it s allowed. If x ends with a 1, it s OK, because x1 is allowed to end with 2 1 s. Thus, s n+1 = 2s n = 22 n = 2 n+1. Where s the flaw? What if x already ends with 2 1 s? Correct expression involves separating out sequences which end in 0 and 1 (it s done in Chapter 5, but I m not sure we ll get to it) 12

The Sorites Paradox Inductive Definitions If a pile of sand has 1, 000, 000 grains of sand, it s a heap. Removing one grain of sand from a heap leaves 1 heap. Therefore, by induction, if a pile of sand has only one grain, it s also a heap. Prove by induction on n that if a pile of sand has 1, 000, 000 n grains of sand, it s a heap. Where s the bug? This leads to a whole topic in the philosophy of language called vagueness Example: Define n k=1 a k inductively (i.e., by induction on n): 1 k=1 a k = a 1 n+1 k=1 a k = n k=1 a k + a n+1 The inductive definition avoids the use of, and thus is less ambiguous. Example: An inductive definition of n!: 1! = 1 (n + 1)! = (n + 1)n! Could even start with 0! = 1. 13 14 Inductive Definitions of Sets A palindrome is an expression that reads the same backwards and forwards: Madam I m Adam Able was I ere I saw Elba What is the set of palindromes over {a, b, c, d}? approaches: 1. The smallest set P such that (a) P contains a, b, c, d, aa, bb, cc, dd (b) if x is in P, then so is axa, bxb, cxc, and dxd Things to think about: Two How do you know that there is a smallest set (one which is a subset of all others) How do you know that it doesn t contain ab 2. Define P n, the palindromes of length n, inductively: P 1 = {a, b, c, d} P 2 = {aa, bb, cc, dd} P n+1 = {axa, bxb, cxc, dxd x P n 1 } for n 2 Let P = n P n. Theorem: P = P. (The two approaches define the same set.) Proof: Show P P and P P. To see that P P, it suffices to show that (a) P contains a, b, c, d, aa, bb, cc, dd (b) if x is in P, then so is axa, bxb, cxc, and dxd (since P is the smallest set with these properties). Clearly P 1 P 2 satisfies (1), so P does. And if x P, then x P n for some n, in which case axa, bxb, cxc, and dxd are all in P n+2 and hence in P. Thus, P P. To see that P P, we prove by strong induction that P n P for all n. Let P (n) be the statement P n P. Basis: P 1, P 2 P : Obvious. Suppose P 1,..., P n P. If n 2, the fact that P n+1 P follows immediately from (b). (Actually, all we need is the fact that P n 1 P, which follows from the (strong) induction hypothesis.) Thus, P = n P n P. 15 16

Recall that the set of palindromes is the smallest set P such that (a) P contains a, b, c, d, aa, bb, cc, dd (b) if x is in P, then so is axa, bxb, cxc, and dxd Smallest is not in terms of cardinality. P is guaranteed to be infinite Smallest is in terms of the subset relation. Here s a set that satisfies (a) and (b) and isn t the smallest: Define Q n inductively: Q 1 = {a, b, c, d} Q 2 = {aa, bb, cc, dd, ab} Q n+1 = {axa, bxb, cxc, dxd x Q n 1 }, n 2 Let Q = n Q n. It s easy to see that Q satisfies (a) and (b), but it isn t the smallest set to do so. Fibonacci Numbers [Leonardi of Pisa, 12th century:] Suppose you start with two rabbits, one of each gender. After two months, they produce two rabbits (one of each gender) as offspring. Each subsequent pair of offspring behaves the same way, producing another pair in two months. Rabbits never die. How many rabbits do you have after n months? Let f n be the number of pairs after n months. By assumption, f 1 = f 2 = 1 For n > 2, f n+1 = f n + f n 1 In month n + 1, each pair of rabbits that have been around for at least two months (f n 1 ) produces another pair. So you have f n 1 new pairs on top of the f n you had after n months. This is an inductive definition of a sequence The Fibonacci sequence has the form 1, 1, 2, 3, 5, 8,... 17 18 Fibonacci numbers grow exponentially The Fibonacci sequence has lots of nice properties; we ll prove one. It can be shown [see Chapter 5] that f n = 1 5 1 + 5 2 n 1 5 2 n Let r = (1 + 5)/2 1.62. Claim: f n r n 2 for all n. Where did this weird r come from? It s a solution to the equation r 2 = r + 1. The other solution is (1 5)/2 We can prove the claim by induction. Base case: f 1 = 1; r 1 = 1/r < 1; so f 1 > r 1 f 2 = 1; r 0 = 1; so f 2 r 0. Inductive step: If n 2 That s it! f n+1 = f n + f n 1 r n 2 + r n 3 = r n 3 (r + 1) = r n 3 r 2 [since r + 1 = r 2 ] = r n 1 19 20

The Trust Game Consider a game where, after n steps, there are piles of money on the table: The big one has $2 n+1 ; the small one has $2 n 1 There are two players, Alice and Bob. Initially Alice is in charge. She can either quit the game or continue If she quits, she gets the money in the bigger pile ($4) and Bob gets the money in the smaller pile ($1) If she continues, Bob is in charge If he quits, he gets the money in the bigger pile ($8), Alice gets the money in the smaller pile ($2). If he continues, Alice is in charge, and so on. The game goes on for 20 steps; if they re still playing then, Bob gets $2 21 (> $2,000,000); Alice gets $2 19 ( $500,000) What should you do? Should you trust the other player to keep playing, or take your money and run? 21 In the game theory literature, this is called the centipede game. What should Alice do if they re still playing at step 19? If she quits, she gets $2 20 (about $1,000,000); if she continues she gets only $2 19 ). So Alice will quit, which means Bob will get $2 18 So what should Bob do if they re still playing at step 18? If he quits, he gets $2 19 ; if he continues, most likely he ll get $2 18, since Alice will quit at step 19. So Bob quts, which means Alice will get $2 16. Continuing this way (by backwards induction), Alice quits at step 1 and gets $4! Under a specific model of rationality, quitting at the first step is the only right thing to do. It s the only Nash equilibrium In practice (with smaller amounts of money), people play for a little while before quitting. 22 The muddy children puzzle We can prove by induction on k that if k children have muddy foreheads, they say yes on the k th question. It appears as if the father didn t tell the children anything they didn t already know. Yet without the father s statement, they could not have deduced anything. So what was the role of the father s statement? 23 24