Module 1 Mathematical Induction
Module 1 Mathematical Induction
Chapter 5
© 2019 McGraw-Hill Education. All rights reserved. Authorized only for instructor use in the classroom. No reproduction or further distribution permitted without the prior written consent of McGraw-Hill Education.
Chapter Summary
Mathematical Induction
Strong Induction
Well-Ordering
Recursive Definitions
Structural Induction
Recursive Algorithms
Program Correctness (not yet included in overheads)
Mathematical Induction
Examples of Proof by Mathematical Induction
Mistaken Proofs by Mathematical Induction
Guidelines for Proofs by Mathematical Induction
• Inductive Step: Show that P(k) → P(k + 1) is true for all positive integers k.
To complete the inductive step, assuming the inductive hypothesis that P(k) holds for an
arbitrary integer k, show that must P(k + 1) be true.
• INDUCTIVE STEP: Assume the inductive hypothesis that we can reach rung k. Then
by (2), we can reach rung k + 1.
Hence, P(k) → P(k + 1) is true for all positive integers k. We can reach every rung on the
ladder.
( P (1) k ( P ( k ) → P ( k + 1)) ) → n P ( n) ,
where the domain is the set of positive integers.
In a proof by mathematical induction, we don’t assume that P(k)
is true for all positive integers! We show that if we assume that
P(k) is true, then P(k + 1) must also be true.
Proofs by mathematical induction do not always start at the
integer 1. In such a case, the basis step begins at a starting point
b where b is an integer. We will see examples of this soon.
=
( k + 1)( k + 2)
2
© 2019 McGraw-Hill Education
Conjecturing and Proving Correct a
Summation Formula
Example: Conjecture and prove correct a formula for the sum of the first n positive odd integers.
Then prove your conjecture.
Solution: We have: 1 = 1, 1 + 3 = 4, 1 + 3 + 5 = 9, 1 + 3 + 5 + 7 = 16, 1 + 3 + 5 + 7 + 9 = 25.
• We can conjecture that the sum of the first n positive odd integers is n2,
1+ 3 + 5 + + ( 2n − 1) = n 2 .
• We prove the conjecture is proved correct with mathematical induction.
• BASIS STEP: P(1) is true since 12 = 1.
• INDUCTIVE STEP: P(k) → P(k + 1) for every positive integer k.
Assume the inductive hypothesis holds and then show that P(k + 1) holds has well.
Inductive Hypothesis: 1 + 3 + 5 + + ( 2k − 1) = k 2
• So, assuming P(k), it follows that:
1+ 3 + 5 + + ( 2k − 1) + ( 2k + 1) = 1 + 3 + 5 + + ( 2k − 1) + ( 2k + 1)
= k 2 + ( 2k + 1)( by the inductive hypothesis )
= k 2 + 2k + 1
= ( k + 1)
2
• Hence, we have shown that P(k + 1) follows from P(k). Therefore the sum of the first n
positive odd integers is n2.
© 2019 McGraw-Hill Education
Proving Inequalities 1
Example: Use mathematical induction to prove that 2n < n!, for every
integer n ≥ 4.
Solution: Let P(n) be the proposition that 2n < n!.
• BASIS STEP: P(4) is true since 24 = 16 < 4! = 24.
• INDUCTIVE STEP: Assume P(k) holds, i.e., 2k < k! for an arbitrary
integer k ≥ 4. To show that P(k + 1) holds:
2k +1 = 2 2k
2 k! (by the inductive hypothesis )
( k + 1) k !
= ( k + 1) !
Therefore, 2n < n! holds, for every integer n ≥ 4.
Note that here the basis step is P(4), since P(0), P(1), P(2), and P(3) are all false.
© 2019 McGraw-Hill Education
Proving Divisibility Results
Example: Use mathematical induction to prove that n3 − n is divisible
by 3, for every positive integer n.
Solution: Let P(n) be the proposition that n3 − n is divisible by 3.
• BASIS STEP: P(1) is true since 13 − 1 = 0, which is divisible by 3.
• INDUCTIVE STEP: Assume P(k) holds, i.e., k3 − k is divisible by 3, for
an arbitrary positive integer k. To show that P(k + 1) follows:
( k + 1) − ( k + 1) = ( k 3 + 3k 2 + 3k + 1) − ( k + 1)
3
( ) (
= k3 − k + 3 k2 + k )
By the inductive hypothesis, the first term (k3 − k) is divisible by 3
and the second term is divisible by 3 since it is an integer
multiplied by 3. So by part (i) of Theorem 1 in Section 4.1 , (k + 1)3
− (k + 1) is divisible by 3.
Therefore, n3 − n is divisible by 3, for every integer positive integer n.
© 2019 McGraw-Hill Education
Number of Subsets of a Finite Set 1
• INDUCTIVE STEP: Assume that P(k) is true for every 2k × 2k checkerboard, for
some positive integer k.
Jump to long description
© 2019 McGraw-Hill Education
Tiling Checkerboards 2
Consider a 2k+1 × 2k+1 checkerboard with one square removed. Split this checkerboard
into four checkerboards of size 2k ×2k,by dividing it in half in both directions.
Example: Let P(n) be the statement that every set of n lines in the
plane, no two of which are parallel, meet in a common point. Here
is a “proof” that P(n) is true for all positive integers n ≥ 2.
• BASIS STEP: The statement P(2) is true because any two lines in the
plane that are not parallel meet in a common point.
• We must show that if P(k) holds, then P(k + 1) holds, i.e., if every set
of k lines in the plane, no two of which are parallel, k ≥ 2, meet in a
common point, then every set of k + 1 lines in the plane, no two of
which are parallel, meet in a common point.
Strong Induction
Example Proofs using Strong Induction
Using Strong Induction in Computational
Geometry (not yet included in overheads)
Well-Ordering Property
a .
k =0
k
a
k =0
k = a0 .
f0 = 0
f1 = 1 In Chapter 8, we will use the
Fibonacci numbers to model
f n = f n −1 + f n − 2 population growth of rabbits.
This was an application
Find f2, f3 , f4 , f5 .
described by Fibonacci himself.
f 2 = f1 + f 0 = 1 + 0 = 1 Next, we use strong induction
f3 = f 2 + f1 = 1 + 1 = 2 to prove a result about the
Fibonacci numbers.
f 4 = f3 + f 2 = 2 + 1 = 3
f5 = f 4 + f3 = 3 + 2 = 5
© 2019 McGraw-Hill Education
Fibonacci Numbers 2
k −1 = 2 k −3 = ( + 1) k −3 = k −3 + 1 k −3 = k − 2 + k −3
• By the inductive hypothesis, because k ≥ 4 we have
f k −1 k −3 , fk k −2 . Why does this
• Therefore, it follows that
equality hold?
f k +1 = f k + f k −1 k − 2 + k −3 = k −1.
• Hence, P(k + 1) is true.
© 2019 McGraw-Hill Education
Lamé’s Theorem 1
r0 = r1q1 + r2 0 r2 r1 , rn 1 = f 2 ,
r1 = r2 q2 + r3 0 r3 r2 , rn −1 2rn 2 f 2 = f 3 ,
rn − 2 rn −1 + rn f3 + f 2 = f 4 ,
rn − 2 = rn −1qn −1 + rn 0 rn rn −1 ,
rn −1 = rn qn . r2 r3 + r4 f n −1 + f n − 2 = f n ,
b = r1 r2 + r3 f n + f n −1 = f n +1.
© 2019 McGraw-Hill Education
Lamé’s Theorem 2
Recursive Algorithms
Proving Recursive Algorithms Correct
Recursion and Iteration (not yet included in
overheads)
Merge Sort
2
k =1
k −1
2 m − k +1
− 1 =
2 m
− 2 k −1
=
k =1
m 2 m
−
k =1
2 m
− 1 = n log n − n + 1,
Appendix
There is field S with circle X inside. S has two arrows. The first
one is from S to field T that has circle X and element A inside, the
second arrow is from S to field T that has a circle named X union
left brace A right brace inside, which has element A inside.
There are four squares forming together a large square. The right
bottom square has a small shaded square inside.
There is a binary balanced tree at the top. Its root consists of numbers 8, 2, 4,
6, 9, 7, 10, 1, 5, and 3. At the first step, there are two branches, the left leads
to the vertex containing elements 8, 2, 4, 6, and 9. The right one leads to the
vertex containing elements 7, 10, 1, 5, and 3. Two branches lead from the
vertex 8, 2, 4, 6, 9 . The left one leads to the vertex with the elements 8, 2, 4.
The right one leads to the vertex with the elements 6 and 9. Two branches
also lead from the vertex 7, 10, 1, 5, and 3. The left one leads to the vertex
with the elements 7, 10, 1. The right one leads to the vertex with the
elements 5 and 3. Each of the four vertices of the previous level has two
branches leading to the vertices of the next level: from 8, 2, 4 to 8, 2 and 4,
from 6, 9 to 6 and 9, from 7, 10, 1 to 7, 10 and 1, from 5, 3 to 5 and 3. At the
next level there are branches from 8, 2 to 8 and 2, and from 7, 10 to 7 and 10.
At the bottom of the picture there is a similar tree, but it is turned upside
down. In such vertices where there is more than one element, elements are
written in the increasing order from left to right.