Mathematical Induction. How do you program a robot to climb infinite stairs? Let s use that as a proof method. 22c:19 Chapter 4 Hantao Zhang

Similar documents
Modern Algebra 1 Section 1 Assignment 1. Solution: We have to show that if you knock down any one domino, then it knocks down the one behind it.

1. By using truth tables prove that, for all statements P and Q, the statement

Math 2112 Solutions Assignment 5

Sequences, Mathematical Induction, and Recursion. CSE 2353 Discrete Computational Structures Spring 2018

Homework 9. (n + 1)! = 1 1

Seunghee Ye Ma 8: Week 5 Oct 28

Homework 1 Solutions. The exercises are from Foundations of Mathematical Analysis by Richard Johnsonbaugh and W.E. Pfaffenberger.

10.6 ALTERNATING SERIES

Read carefully the instructions on the answer book and make sure that the particulars required are entered on each answer book.

Problem 4: Evaluate ( k ) by negating (actually un-negating) its upper index. Binomial coefficient

Solutions to Final Exam Review Problems

1.3 Convergence Theorems of Fourier Series. k k k k. N N k 1. With this in mind, we state (without proof) the convergence of Fourier series.

Midterm Exam #2. Please staple this cover and honor pledge atop your solutions.

Homework 3. = k 1. Let S be a set of n elements, and let a, b, c be distinct elements of S. The number of k-subsets of S is

Sequences, Series, and All That

1 Generating functions for balls in boxes

Math 113 Exam 3 Practice

Set Notation Review. N the set of positive integers (aka set of natural numbers) {1, 2, 3, }

Physics 116A Solutions to Homework Set #1 Winter Boas, problem Use equation 1.8 to find a fraction describing

Solutions to Math 347 Practice Problems for the final

62. Power series Definition 16. (Power series) Given a sequence {c n }, the series. c n x n = c 0 + c 1 x + c 2 x 2 + c 3 x 3 +

MATH 324 Summer 2006 Elementary Number Theory Solutions to Assignment 2 Due: Thursday July 27, 2006

Ma 530 Infinite Series I

HOMEWORK #10 SOLUTIONS

Math F215: Induction April 7, 2013

Solutions to Problem Set 8

Combinatorics and Newton s theorem

Mathematical Induction

Induction: Solutions

Sequences A sequence of numbers is a function whose domain is the positive integers. We can see that the sequence

2 n = n=1 a n is convergent and we let. i=1

Math 140A Elementary Analysis Homework Questions 1

PROPERTIES OF THE POSITIVE INTEGERS

Different kinds of Mathematical Induction

Week 5-6: The Binomial Coefficients

6.3 Testing Series With Positive Terms

( ) GENERATING FUNCTIONS

and each factor on the right is clearly greater than 1. which is a contradiction, so n must be prime.

CSE 1400 Applied Discrete Mathematics Number Theory and Proofs

MAT1026 Calculus II Basic Convergence Tests for Series

Induction proofs - practice! SOLUTIONS

f(x) dx as we do. 2x dx x also diverges. Solution: We compute 2x dx lim

INFINITE SEQUENCES AND SERIES

sin(n) + 2 cos(2n) n 3/2 3 sin(n) 2cos(2n) n 3/2 a n =

Randomized Algorithms I, Spring 2018, Department of Computer Science, University of Helsinki Homework 1: Solutions (Discussed January 25, 2018)

Lesson 10: Limits and Continuity

The Boolean Ring of Intervals

The Ratio Test. THEOREM 9.17 Ratio Test Let a n be a series with nonzero terms. 1. a. n converges absolutely if lim. n 1

Section 7 Fundamentals of Sequences and Series

Find a formula for the exponential function whose graph is given , 1 2,16 1, 6

Enumerative & Asymptotic Combinatorics

Fermat s Little Theorem. mod 13 = 0, = }{{} mod 13 = 0. = a a a }{{} mod 13 = a 12 mod 13 = 1, mod 13 = a 13 mod 13 = a.

Putnam Training Exercise Counting, Probability, Pigeonhole Principle (Answers)

Chapter 9 Sequences, Series, and Probability Section 9.4 Mathematical Induction

Infinite Sequences and Series

PROBLEM SET 5 SOLUTIONS 126 = , 37 = , 15 = , 7 = 7 1.

Math 220A Fall 2007 Homework #2. Will Garner A

Assignment 5: Solutions

PHYC - 505: Statistical Mechanics Homework Assignment 4 Solutions

A sequence of numbers is a function whose domain is the positive integers. We can see that the sequence

SOLUTIONS TO PRISM PROBLEMS Junior Level 2014

Random Models. Tusheng Zhang. February 14, 2013

University of Colorado Denver Dept. Math. & Stat. Sciences Applied Analysis Preliminary Exam 13 January 2012, 10:00 am 2:00 pm. Good luck!

Solutions to Tutorial 5 (Week 6)

Complex Numbers Solutions

Langford s Problem. Moti Ben-Ari. Department of Science Teaching. Weizmann Institute of Science.

Exam 2 CMSC 203 Fall 2009 Name SOLUTION KEY Show All Work! 1. (16 points) Circle T if the corresponding statement is True or F if it is False.

Generating Functions II

SEQUENCES AND SERIES

Combinatorially Thinking

1 Lecture 2: Sequence, Series and power series (8/14/2012)

SOME TRIBONACCI IDENTITIES

INFINITE SEQUENCES AND SERIES

(ii) Two-permutations of {a, b, c}. Answer. (B) P (3, 3) = 3! (C) 3! = 6, and there are 6 items in (A). ... Answer.

SEQUENCES AND SERIES

Chapter 6 Infinite Series

Lecture 7: Properties of Random Samples

A Probabilistic Analysis of Quicksort

4 Mathematical Induction

2.4.2 A Theorem About Absolutely Convergent Series

4.3 Growth Rates of Solutions to Recurrences

Math 113, Calculus II Winter 2007 Final Exam Solutions

Math 155 (Lecture 3)

~W I F

Lecture 23 Rearrangement Inequality

MA541 : Real Analysis. Tutorial and Practice Problems - 1 Hints and Solutions

Metric Space Properties

MATH 112: HOMEWORK 6 SOLUTIONS. Problem 1: Rudin, Chapter 3, Problem s k < s k < 2 + s k+1

Math 2784 (or 2794W) University of Connecticut

Math 10A final exam, December 16, 2016

De la Vallée Poussin Summability, the Combinatorial Sum 2n 1

M A T H F A L L CORRECTION. Algebra I 1 4 / 1 0 / U N I V E R S I T Y O F T O R O N T O

The Comparison Tests. Examples. math 131 infinite series, part iii: comparison tests 18

UNIVERSITY OF NORTHERN COLORADO MATHEMATICS CONTEST. First Round For all Colorado Students Grades 7-12 November 3, 2007

3. Z Transform. Recall that the Fourier transform (FT) of a DT signal xn [ ] is ( ) [ ] = In order for the FT to exist in the finite magnitude sense,

1. Szabo & Ostlund: 2.1, 2.2, 2.4, 2.5, 2.7. These problems are fairly straightforward and I will not discuss them here.

(A sequence also can be thought of as the list of function values attained for a function f :ℵ X, where f (n) = x n for n 1.) x 1 x N +k x N +4 x 3

[ 11 ] z of degree 2 as both degree 2 each. The degree of a polynomial in n variables is the maximum of the degrees of its terms.

Math 4707 Spring 2018 (Darij Grinberg): homework set 4 page 1

Chapter 6 Overview: Sequences and Numerical Series. For the purposes of AP, this topic is broken into four basic subtopics:

Transcription:

Mathematical Iductio c:9 Chapter 4 Hatao Zhag How do you program a robot to climb ifiite stairs? First, you let the robot get to the base platform of the staircase The repeat: From the curret positio, let the robot to move oe step up Let s use that as a proof method First, show P(x) is true for x0 This is the base of the stairs The, show that if it s true for some value, the it is true for + Show: P() P(+) This is climbig the stairs Let 0. Sice it s true for P(0) (base case), it s true for Let. Sice it s true for P() (previous bullet), it s true for Let. Sice it s true for P() (previous bullet), it s true for 3 Let 3 Ad owards to ifiity Thus,wehaveshowittobetrueforall o-egative umbers 3

What is iductio? A method of proof It does ot geerate aswers: it oly ca prove them Three parts: Base case(s): show it is true for oe elemet (get to the stair s base platform) Iductive hypothesis: assume it is true for ay give elemet (assume you are o a stair) Must be clearly labeled!!! Show that if it true for the ext higher elemet (show you ca move to the ext stair) 4 Iductio example Show that the sum of the first odd itegers is Example:If 5, +3+5+7+9 5 5 Formally, show: P( ) where P( ) Base case: Show that P() is true P() ( i) i 5 Iductio example, cotiued Iductive hypothesis: assume true for Thus, we assume that P() is true, or that i Note: we do t yet ow if this is true or ot! Iductive step: show true for + We wat to show that: + i ( + )

Iductio example, cotiued Recall the iductive hypothesis: Proof of iductive step: + ( + ) + i i ( + ) + + ( + ) + + + + + + + i 7 What did we show Base case: P() If P() was true, the P(+) is true i.e., P() P(+) We ow it s true for P() Because of P() P(+), if it s true for P(), the it s true for P() Because of P() P(+), if it s true for P(), the it s true for P(3) Because of P() P(+), if it s true for P(3), the it s true for P(4) Because of P() P(+), if it s true for P(4), the it s true for P(5) Ad owards to ifiity Thus, it is true for all possible values of I other words, we showed that: [ P( ) ( P( ) P( + ) )] P( ) 8 The idea behid iductive proofs Show the base case Show the iductive hypothesis Maipulate the iductive step so that you ca substitute t i part of the iductive hypothesis Show the iductive step 9 3

Secod iductio example Show the sum of the first positive eve itegers is + Rephrased: P( ) where P( ) i + The three parts: Base case Iductive hypothesis Iductive step 0 Secod iductio example, cotiued Base case: Show P(): Iductive hypothesis: Assume Iductive step: Show P( ) P() ( i) + i + P( + ) + i ( + ) + ( + ) Secod iductio example, cotiued Recall our iductive hypothesis: P( ) i + + i ( + ) + + ( + ) + i ( + ) + + ( + ) + + ( + ) + + + 3 + + 3 + 4

Notes o proofs by iductio We maipulate the + case to mae part of it loo lie the case We the replace that part with the other side of the case P( ) i + + ( + ) + i ( + ) + + i ( + ) + + ( + ) + + ( + ) + + + 3 + + 3 + 3 Third iductio example Show ( + )( + ) i Base case: ( + )( + ) i i Iductive hypothesis: assume ( + )( + ) i 4 Third iductio example Iductive step: show 3 + ( + ) + i + ( + )(( + ) + )(( + ) + ) i ( + )(( + ) + )(( + ) + ) i ( + )( + )( + ( + )( + ) ( + )( + )( ( + ) + + ( + ) + ( + )( + ) ( + )( + )( + 3) 3 + 9 + 3 + + 9 + 3 + 3) 3) ( + )( + 5 i ) 5

Third iductio agai: what if your iductive hypothesis was wrog? Show: ( + )( i + Base case: : ) But let s cotiue ayway Iductive hypothesis: assume i ( + )( i 7 7 + ( + )( + ) ) Third iductio agai: what if your iductive hypothesis was wrog? Iductive step: show 3 ( + ) + i ( + )(( + ) + )(( + ) + + i ( + )(( + ) + )(( + ) + + i ( + )( + )( + ( + )( + ) ( + )( + )( ( + ) + + ( + ) + ( + )( + ) ( + )( + )( + 4) 3 + 0 + 4 + + 0 + + 8 4) 4) ) ( )( ) + + 7 i ) Fourth iductio example S that! < for all > Base case:! < <4 Iductive hypothesis: assume! < Iductive step: show that (+)! < (+) + ( +)! ( + )! < ( +) < ( + )( + ) ( + ) + 8

Strog iductio Wea mathematical iductio proves P(0) is true ad assumes P() is true, ad uses that (ad oly that!) to show P(+) is true Strog mathematical iductio proves P(0), P(),, P(b) are true, ad assumes P(-b), P(-b+),, P() are all true, ad uses that to show that P(+) is true. [ P( b) P( b + ) P( b + )... P( ) ] P( + ) 9 Strog iductio vs. o-strog iductio Determie which amouts of postage ca be writte with 5 ad cet stamps Prove usig both versios of iductio Aswer: ay postage 0 plus 5,, 0,,, 5,, 7, 8. 0 Aswer via mathematical iductio Show base case: P(0): 05+5+5+5 Iductive hypothesis: Assume P() istrue Iductive step: Show that P(+) is true IfP() uses a 5 cet stamp, replace that stamp with a cet stamp IfP() does ot use a 5 cet stamp, it must use oly cet stamps Sice > 8, there must be four cet stamps Replace these with five 5 cet stamps to obtai + 7

Aswer via strog iductio Show base cases: P(0), P(), P(), P(3), ad P(4) 05+5+5+5 5+5+5+ 5+5++ 3 5 + + + 4+++ Iductive hypothesis: Assume P(-4), P(-3),, P() are all true Iductive step: Show that P(+) is true, where +>4 We will obtai P(+) by addig a 5 cet stamp to P(+-5) Sice we ow P(+-5) P(-4) is true, where -4>9, our proof is complete Strog iductio vs. o-strog iductio, tae Show that every postage amout cets or more ca be formed usig oly 4 ad 5 cet stamps Similar to the previous example 3 Aswer via mathematical iductio Show base case: P(): 4+4+4 Iductive hypothesis: Assume P() istrue Iductive step: Show that P(+) is true IfP() uses a 4 cet stamp, replace that stamp with a 5 cet stamp to obtai P(+) IfP() does ot use a 4 cet stamp, it must use oly 5 cet stamps Sice > 0, there must be at least three 5 cet stamps Replace these with four 4 cet stamps to obtai + Note that oly P() wasassumedtobetrue 4 8

Aswer via strog iductio Show base cases: P(), P(3), P(4), ad P(5) 4+4+4 34+4+5 44+5+5 55+5+5 Iductive hypothesis: Assume P(-3), P(-), P(-), P() are all true For 5 Iductive step: Show that P(+) is true We will obtai P(+) by addig a 4 cet stamp to P(+-4) Sice we ow P(+-4) P(-3) is true, our proof is complete Note that P(-3), P(-), P(-), P() wereallassumedtobetrue 5 Strog iductio Wea mathematical iductio proves P(0) is true ad assumes P() is true, ad uses that (ad oly that!) to show P(+) is true Strog mathematical iductio proves P(0), P(),, P(b) are true, ad assumes P(-b), P(-b+),, P() are all true, ad uses that to show that P(+) is true. [ P( b) P( b + ) P( b + )... P( ) ] P( + ) 7 5 4 3 Chess ad iductio Ca the ight reach ay square i a fiite umber of moves? Show that the ight ca reach ay square (i, j) for which i+j where >. Base cases: 0,, Iductive hypothesis: assume the ight ca reach ay square (i, j) for which i+j where >. 0 0 3 4 5 7 Iductive step: show the ight ca reach ay square (i, j) for which i+j+ where >. 7 9

Chess ad iductio Iductive step: show the ight ca reach ay square (i, j) forwhichi+j+ where >. Note that + 3, ad oe of i or j is Ifi, the ight could have moved from (i-, j+) Sice i+j +, i- + j+, which is assumed true Ifj, the ight could have moved from (i+, j-) Sice i+j +, i+ + j-, which is assumed true 8 Strog iductio (compact form) Strog mathematical iductio proves P(0), P(),, P(b) are true, ad assumes P(-b), P(-b+),, P() are all true, ad uses that to show that P(+) is true. [ P( b) P( b + ) P( b + )... P( ) ] P( + ) Strog mathematical iductio proves P(0), ad assumes P(0), P(),, P() are all true, ad uses that to show that P(+) is true. [ P( 0) P() P()... P( ) ] P( + ) 9 Iductig stoes Tae a pile of stoes Split the pile ito two smaller piles of size r ad s Repeat util you have piles of stoe each Tae the product of all the splits Soallther s ad s s from each split Sum up each of these products ( ) Prove that this product, f(), equals 30 0

Iductig stoes 0 7 3 4 3 4 ( ) 0*9 f ( ) + + + 4 + + + + + 45 3 Iductig stoes We will show by iductio that P() istrue for all > 0, where P(): f() (+)/. Base case: No splits ecessary, so the sum of the products 0 f() *(-)/ 0 Base case prove 3 Iductig stoes Iductive hypothesis: assume that P(), P(),, P() are all true This is strog iductio! Iductive step: Show that P(+) is true We assume that we split the + pile ito a pile of i stoes ad a pile of +-i stoes Thus, we wat to show that (i)*(+-i) + f(i) + f(+-i) (+)((+)-)/ Sice0<i < +, bothi ad +-i are betwee ad, iclusive 33

Iductig stoes Thus, we wat to show that i i P( i) : f ( i) (i)*(+-i) + f(i) + f(+ +-i) (+)/ ( + i)( + i ) P( + i) : f ( + i) ( + )( + ) + We prove P( + ) : f ( + ) Because f ( + ) ( i)*( + i) + f ( i) + f ( + i) i i i + i i + + + i i i i + i i + i i + + i i + i + + + + + i i + i 34 Typical Iductio Errors For all positive itegers, 3 iseve. P(): 3 is eve. Iductio hypothesis: Assume P() is true Iductive case: We wat to show P(+) is true. Because 3 + 3*3 *3 +(3 ), *3 is eve (3 ) is eve by Iductio hypothesis So 3 + is eve. 35 Typical Iductio Errors All positive itegers are odd. P(): is odd Base case: P() is true Iductio hypothesis: Assume P(), P(),, P(-), P(-) are true Iductive case: P(-) is true meas - is odd. So is (-)+. Hece P() is true. 3

Typical Iductio Errors All horses are the same color. P(): horses are the same color Base case: P() is true Iductio hypothesis: Assume P(-) is true Iductive case: Suppose we have horses, they are a,a,a 3,,a.Siceboth{a,a,a 3,, a - }ad{a,a 3,,a } have - horses, they have the same color. Sice a,a 3,,a - are commo i both sets, so all have the same colors. 37 Typical Iductio Errors A camel ca always carry all the straw i a bar. P(): camel ca carry straws Base case: P() is true Iductio hypothesis: Assume P(-) is true Iductive case: Sice the camel ca carry - straws, it has o problem to carry oe more straw. The last straw that broe the camel s bac 38 Harmoic Number 3 H :: + + + + 3 Estimate H : x+ 3 0 3 4 5 7 8 3

Itegral Method 0 dx + + +...+ x+ 3 + dx H x l( +) H Now H as, so Harmoic series ca go to ifiity! Boo Stacig How far out?? overhag The classical solutio Usig blocs we ca get a overhag of Harmoic Stacs 4

Product (5!) + + ( ) / Factorial Factorial defies a product: How to estimate t!? Tur product ito a sum taig logs: l(!) l( 3 ( ) ) l + l + + l( ) + l() l(i) Itegral Method l l (x+) l (x) l 5 l 4 l 3 l l 5 l 3 l 4 l l - l 3 4 5 5

l(x) dx l(i) l (x+)dx 0 Remider: Aalysis (OPTIONAL) x lxdxxl e l(/e) + l(i) (+) l((+)/e) + so guess: l(i) + l e Stirlig s Formula l(i) + l e expoetiatig: Stirlig s formula:! /e e! ~ π e