Mathematical Induction
Mathematical Induction
Induction
Dr. Pronaya Bhattacharya
Disclaimer- Slides are adapted from Rosen
5th Edition, Cornell University Web Site, and
MIT Oxford Lecture on Trees
1
What’s is Induction About?
• Examples:
2. For every set with n elements, the cardinality of its power set is
2 n.
2
The Ladder Example to Understand Induction-
• P(1)
• k (P(k) → P(k+1))
• --------------------------
• n (P(n)
Principle of
Mathematical Induction
• Hypothesis: P(n) is true for all integers nb
• To prove that P(n) is true for all integers nb (*), where P(n) is a
propositional function, follow the steps:
• Use induction to prove that the sum of the first n odd integers is
n2. What’s the hypothesis?
Note:
1 – Hypothesis: P(n) – sum of first n odd integers = n2. We assume P(k)
(Statement we are trying to prove.) not:
k P(k)
2 - Base case (n=1): the sum of the first 1 odd integer is 12.
Since 1 = 12 ☺
3 - Assume P(k): the sum of the first k odd ints is k2. Inductive
1 + 3 + … + (2k - 1) = k2 hypothesis
3 – Inductive Hypothesis
Inductive
Assume P(k) = 1 + 2 + 22 + … + 2k = 2k+1 – 1 hypothesis
6
4 – Inductive Step: show that (k) P(k) → P(k+1), assuming
P(k). How?
By inductive
P(k+1)= 1 + 2 + 22 +…+ 2k+ 2k+1 = (2k+1 – 1) + 2k+1 hypothesis
p(k)
= 2 2k+1 - 1
= 2(k+1)+1 - 1
• Definition:
• A set S is “well-ordered” if every non-empty subset of S has a least
element.
No.
{ x Z : x < 0 } has no
least element.
9
Mathematical Induction - why does it work?
No.
{ x R : x > 1 } has no
least element.
10
Mathematical Induction
example
11
Inductive Step: Prove that if |T| = k+1, then |P(T)| = 2k+1 assuming
P(k) is true.
T = S U {a} for some S T with |S| = k, and a T
For each subset X of S there are exactly two subsets of T, namely X and X U {a}
2n
2n
Mathematical Induction - a clever example
Hypothesis:
P(n) - We want to show that all 2n x 2n sized deficient grids
can be tiled with right triominoes, which are pieces that
cover three squares at a time, like this:
14
• Base Case:
YES ☺
15
• Inductive Hypothesis:
• We can tile a 2k x 2k deficient board using our designer tiles.
• Inductive Step:
• Use this to prove that we can tile a 2k+1 x 2k+1 deficient
board using our designer tiles.
16
2k 2k
2k
? ?
2k+1
?
OK!!
2k (by
IH)
2k 2k
OK!! OK!!
2k (by (by
IH) IH)
2k+1
OK!! OK!!
2k (by (by
IH) IH)
So, we can tile a 2k x 2k deficient board using our designer tiles.
21
Strong Mathematical Induction
• If
• P(0) and
• n0 (P(0) P(1) … P(k)) → P(k+1)
• Then
• n0 P(n) In strong induction proofs, to
show P(k+1), our inductive
hypothesis assures that ALL
of P(b), P(b+1), … P(k) are
true, so we can use ANY of
them to make the inference.
22
Strong Induction
example
• Show that if n is an integer greater than 1, then n can be written as
the product of primes.
• 4 – Inductive step?
•
a) k+1 is prime – in this case it’s the product of itself;
b) k+1 is a composite number and it can be written
as the product of two positive integers a and b, with 2 ≤a ≤ b ≤
k+1. By the inductive hypothesis, a and b can be written as the
product of primes, and so does k+1
Strong Induction vs. Induction
24
Strong Induction:
Polygon Triangulation
• Theorem: A simple polygon with n sides, where n is an integer with
n≥3, can be triangulated into (n-2) triangles.
n=7
5 triangles
(2 different
triangulations)
• Inductive Hypothesis: T(j), i.e, all simple polygons with j sides can
be triangulated in j-2 triangles, is true for all integers 3≤j ≤k.
• First, we split the polygon with (k+1) sides into two polygons:
• Q with s sides and R with t sides.
• #sides of P = k+1 = #sides of Q + #sides of R – 2 = s + t – 2
• (we counted the new (internal) diagonal twice)
• Also 3≤s ≤k and 3≤t ≤k both Q and R have at least one fewer side
than P, and therefore by IH we can triangulate Q into s-2 and R into
t-2 triangles respectively.
• These triangulations with s-2+t-2 = s+t-4= (k+1)-2 triangles
constitute a valid triangulation for P.
QED
Postage: Induction
• Prove that every amount of postage of 12 cents or more can be formed
using just 4-cent and 5-cent stamps.
• Hypothesis: Every amount of postage of 12 cents or more can be formed
using just 4-cent or 5-cent stamps.
• Base case: P(12) postage of 12 cents can be formed using just 4-cent or 5-
cent stamps, 12=3(4).
• Inductive Hypothesis: P(k) postage of k cents can be formed using just 4-
cent or 5-cent stamps
QED
Postage:
Strong Induction
30
EXAMPLE- A BINARY TREE CONSTRUCTION
What is the
property??
31
Recursive Definition of Binary Tree
32
The proof
33
One Example for You
34
The proof explained
35
36