Mathematical Induction
1293 words
6 min read
Visual companion
Python
Type and operator map
Python Week 1: the first filter for runtime behavior
View
Revision summary
What this note is really saying
Short form
# Mathematical Induction ## ๐ฏ Learning Objectives - State the **principle of mathematical induction** (weak form) - Apply induction to prove formulas, inequalities, and divisibility - Use **strong induction** when multiple previous cases are needed - Recognise which form of induction is appropriate - Construct comp...

Mathematical Induction
๐ฏ Learning Objectives
- State the principle of mathematical induction (weak form)
- Apply induction to prove formulas, inequalities, and divisibility
- Use strong induction when multiple previous cases are needed
- Recognise which form of induction is appropriate
- Construct complete inductive proofs with base case and inductive step
4.1 Intuition: The Domino Effect
Mathematical induction works like a row of dominoes:
- Base case: Knock over the first domino.
- Inductive step: If domino k falls, domino k+1 falls.
- Conclusion: All dominoes fall.
๐ Key Insight: Induction proves statements about infinitely many natural numbers using only two steps.
4.2 Weak (Simple) Induction
Principle
To prove P(n) for all nโN (starting from some n0โ):
- Base case: Prove P(n0โ) is true.
- Inductive hypothesis: Assume P(k) is true for some kโฅn0โ.
- Inductive step: Show P(k)โP(k+1).
- Conclusion: By induction, P(n) is true for all nโฅn0โ.
Example 1: Sum of First n Natural Numbers
Theorem: 1+2+3+โฏ+n=2n(n+1)โ for all nโฅ1.
Proof:
- Base case (n=1): LHS = 1, RHS = 21(2)โ=1. โ
- Inductive hypothesis: Assume 1+2+โฏ+k=2k(k+1)โ.
- Inductive step: Show for k+1:
Which is 2(k+1)((k+1)+1)โ. โ โก
Example 2: Sum of Squares
Theorem: โi=1nโi2=6n(n+1)(2n+1)โ.
Proof:
- Base (n=1): 1=61โ 2โ 3โ=1. โ
- IH: Assume for n=k.
- Step: โi=1k+1โi2=6k(k+1)(2k+1)โ+(k+1)2
Example 3: Divisibility
Theorem: 7nโ1 is divisible by 6 for all nโฅ1.
Proof:
- Base (n=1): 71โ1=6, divisible by 6. โ
- IH: Assume 7kโ1 is divisible by 6, i.e., 7k=6m+1.
- Step: 7k+1โ1=7โ 7kโ1=7(6m+1)โ1=42m+7โ1=42m+6=6(7m+1). Thus 7k+1โ1 is divisible by 6. โก
Example 4: Inequality
Theorem: 2n>n for all nโฅ1.
Proof:
- Base (n=1): 21=2>1. โ
- IH: Assume 2k>k.
- Step: 2k+1=2โ 2k>2โ k=k+kโฅk+1 (since kโฅ1). Thus 2k+1>k+1. โก
Example 5: Sum of Odd Numbers
Theorem: The sum of the first n odd numbers is n2.
Proof:
- Base (n=1): 1=12. โ
- IH: Assume 1+3+5+โฏ+(2kโ1)=k2.
- Step: Add the next odd number (2k+1):
4.3 Strong Induction
Principle
Same as weak induction, but the inductive hypothesis assumes P holds for all smaller numbers, not just k.
- Base case(s): Prove P(n0โ),P(n0โ+1),โฆ,P(m).
- Inductive hypothesis: Assume P(j) for all j with n0โโคjโคk.
- Inductive step: Use this to prove P(k+1).
When to Use Strong Induction
When proving P(k+1) requires knowing P for multiple earlier values (not just k).
Example 1: Prime Factorization
Theorem: Every integer nโฅ2 can be expressed as a product of primes.
Proof (strong induction):
- Base (n=2): 2 itself is prime. โ
- IH: Assume every integer from 2 up to k has a prime factorization.
- Step: Consider n=k+1.
- If k+1 is prime, done.
- If k+1 is composite, then k+1=ab where 2โคa,bโคk.
- By IH, a and b have prime factorizations. Their product is a prime factorization of k+1. โก
Example 2: Fibonacci Numbers
Theorem: The Fibonacci numbers Fnโ satisfy Fnโโฅ(23โ)nโ2 for nโฅ1, where F1โ=F2โ=1 and Fnโ=Fnโ1โ+Fnโ2โ.
Proof (strong induction):
- Base (n=1,2): F1โ=1โฅ(23โ)โ1=32โ โ; F2โ=1โฅ(23โ)0=1 โ.
- IH: Assume true for all jโคk.
- Step: For n=k+1:
Example 3: Binary Representation
Theorem: Every positive integer can be written as a sum of distinct powers of 2.
Proof (strong induction):
- Base (n=1): 1=20. โ
- IH: True for all j<n.
- Step: Let 2k be the largest power of 2 with 2kโคn.
- If n=2k, done.
- If n>2k, write n=2k+r, where r<2k and r<n.
- By IH, r is a sum of distinct powers of 2, none exceeding 2kโ1 (since r<2k).
- Together with 2k, we get the representation. โก
4.4 Induction Pitfalls
| Mistake | Why It's Wrong | Fix |
|---|---|---|
| Skipping the base case | The dominoes never start falling | Always prove at least one base case |
| Assuming P(k+1) to prove P(k+1) | Circular reasoning | Only assume P(k) (or P(j) for jโคk ) |
| Wrong base value | Statement may be false for early n | Check the first few values |
| Weak induction when strong needed | Can't reach earlier needed cases | Use strong induction |
๐ Formula Summary
| Form | Hypothesis | Step |
|---|---|---|
| Weak induction | P(k) true | Prove P(k+1) |
| Strong induction | P(n0โ),โฆ,P(k) true | Prove P(k+1) |
โ Practice Questions
Q1: Prove 1+4+9+โฏ+n2=6n(n+1)(2n+1)โ by induction (already done above โ review it).
Q2: Prove n!โฅ2nโ1 for nโฅ1.
SolutionBase (n=1): 1!=1โฅ20=1. โ IH: k!โฅ2kโ1. Step: (k+1)!=(k+1)k!โฅ(k+1)2kโ1โฅ2โ 2kโ1=2k (since k+1โฅ2 for kโฅ1). Thus (k+1)!โฅ2k. โก Q3: Prove 2nโฅn2 for nโฅ4. SolutionBase (n=4): 24=16โฅ42=16. โ IH: 2kโฅk2 for kโฅ4. Step: 2k+1=2โ 2kโฅ2k2. Need to show 2k2โฅ(k+1)2=k2+2k+1. 2k2โ(k2+2k+1)=k2โ2kโ1=(kโ1)2โ2. For kโฅ4, (kโ1)2โ2โฅ9โ2=7>0. So 2k2>(k+1)2 and 2k+1โฅ2k2โฅ(k+1)2. โก Q4: Prove that any amount of postage โฅ8 cents can be formed using 3-cent and 5-cent stamps. SolutionBase: 8=3+5, 9=3+3+3, 10=5+5. โ IH: True for all values from 8 to k. Step: For k+1โฅ11, consider (k+1)โ3=kโ2โฅ8. By IH, kโ2 can be formed. Add one 3-cent stamp. โก Q5: Prove that Fnโ<2n for all nโฅ1 (Fibonacci numbers). SolutionBase: F1โ=1<21, F2โ=1<22. โ IH: Assume Fkโ<2k and Fkโ1โ<2kโ1. Step: Fk+1โ=Fkโ+Fkโ1โ<2k+2kโ1=3โ 2kโ1=23โโ 2k<2โ 2k=2k+1. โก Join Discord PreviousLogical FallaciesNextAdvanced Proofs