Mathematical Induction
Jim Hefferon · GFDL + CC BY-SA 2.5 · Introduction to Proofs
Mathematical induction proves a statement for all natural numbers. Prove it for n=0 (the base case). Then prove: if it holds for n=k, it holds for n=k+1 (the inductive step). The two together guarantee it holds everywhere.
Example: sum of first n natural numbers
Claim: 1 + 2 + ... + n = n(n+1)/2 for all n at least 1. Base case: n=1 gives 1 = 1*2/2, which checks. Inductive step: assume it holds for k, then 1 + ... + k + (k+1) = k(k+1)/2 + (k+1) = (k+1)(k+2)/2. Done.
Example: 2^n > n for all n at least 0
Base case: 2^0 = 1 > 0. Inductive step: assume 2^k > k. Then 2^(k+1) = 2 * 2^k > 2k = k + k. For k at least 1, k at least 1, so k + k at least k + 1. So 2^(k+1) > k+1.
Example: 3 divides n^3 - n
Base case: 0^3 - 0 = 0, and 3 divides 0. Inductive step: assume 3 divides k^3 - k. Then (k+1)^3 - (k+1) = k^3 + 3k^2 + 3k + 1 - k - 1 = (k^3 - k) + 3k^2 + 3k = (k^3 - k) + 3(k^2 + k). The first term is divisible by 3 (inductive hypothesis), the second is clearly divisible by 3. Done.
Strong induction
In strong induction, the inductive hypothesis assumes the statement holds for all values up to k, not just k. Useful when the step from k to k+1 depends on earlier values. Example: every integer at least 2 has a prime factorization. If n is prime, done. If composite, n = a*b where a, b are less than n and at least 2. By strong induction, each has a prime factorization. Combining them gives one for n.
Neighbors
- 🔑 Logic Ch.9 — formal treatment of induction in predicate logic
- 🔢 Discrete Math Ch.2 — sequences and induction
- 🐱 Milewski Ch.19 — F-algebras: induction as initial algebra
- 🔑 Logic Ch.9 — mathematical induction in formal logic
- 🔢 Discrete Math Ch.2 — sequences and recurrences proved by induction
- ✏️ Induction.lean — machine-checked induction proofs
- ⚙ Algorithms Ch.2 — recursion uses the same inductive structure