Escolar Documentos
Profissional Documentos
Cultura Documentos
Mathematical Induction
Prove that 21 divides 4n+1 + 52n-1
whenever n is a positive integer
Inductive hypothesis:
P(0), P(1), P(2), P(3), …, P(k) are all true.
(i.e. b0, b1, b2, …..bk-1, bk are all odd).
Inductive step:
Show that P(k+1) is true, i.e. bk+1 is odd.
Proof Example (cont.)
From the formula
bk+1 = 2bk + bk-1. Clearly the first term is even. By
the inductive hypothesis the second term is odd.
Since the sum of an even integer and an odd
integer is always odd (which we can prove by
number theory), then bk+1 is odd.
In this example we did not need all p(n), 0nk, but we did need
p(k) and p(k-1). Note that a proof using weak induction would
only be able to assume p(k).
Strong induction example 2
• Show that any number > 1 can be written as the product
of primes
10
Strong induction vs. non-strong
induction
• Prove that any postage >=20 rupees can be
created with 5 and 6 rupees stamps
11
Answer via mathematical induction
• Show base case: P(20):
• 20 = 5 + 5 + 5 + 5
• Inductive hypothesis: Assume P(k) is true
• Inductive step: Show that P(k+1) is true
• If P(k) uses a 5 rupees stamp, replace that stamp with
a 6 rupees stamp
• If P(k) does not use a 5 rupees stamp, it must use
only 6 rupees stamps
Since k > 20, there must be at least four 6 rupees stamps
Replace these with five 5 rupees stamps to obtain k+1
12
Answer via strong induction
• Show base cases: P(20), P(21), P(22), P(23), and P(24)
– 20 = 5 + 5 + 5 + 5
– 21 = 5 + 5 + 5 + 6
– 22 = 5 + 5 + 6 + 6
– 23 = 5 + 6 + 6 + 6
– 24 = 6 + 6 + 6 + 6
• Inductive hypothesis: Assume P(20), P(21), …, P(k) are
all true
• Inductive step: Show that P(k+1) is true
– We will obtain P(k+1) by adding a 5 rupees stamp to P(k+1-5)
– Since we know P(k+1-5) = P(k-4) is true, our proof is complete
13