Find a course

Module 2: Proofs and InductionLesson 5 of 1215 min

Mathematical Induction

Prove statements for every positive integer with the base case and inductive step, use strong induction, and connect induction to recursion.

Step 1 of 13Learn

The domino principle

Line up infinitely many dominoes. You can be sure all of them fall if you know two things: the first domino falls, and whenever one domino falls, it knocks over the next. You don't need to watch each one.

That's mathematical induction. To prove a statement P(n) for every integer n ≥ 1:

  1. Base case: prove P(1).
  2. Inductive step: prove that for every k ≥ 1, if P(k) is true, then P(k + 1) is true. The assumption that P(k) holds is called the inductive hypothesis.

Then P(1) is true, so P(2) is, so P(3) is, and so on forever.

Claim. For every n ≥ 1, 1 + 2 + ⋯ + n = n(n + 1)/2.

Base case. For n = 1: the left side is 1 and the right side is 1·2/2 = 1. True.

Inductive step. Assume 1 + 2 + ⋯ + k = k(k + 1)/2 for some k ≥ 1. Then

1 + 2 + ⋯ + k + (k + 1) = k(k + 1)/2 + (k + 1) = (k + 1)(k/2 + 1) = (k + 1)(k + 2)/2.

That's exactly the formula with n = k + 1. So P(k) implies P(k + 1). ∎

The heart of every inductive step is finding the old statement inside the new one. Here, the sum up to k + 1 is the sum up to k plus one more term, and the inductive hypothesis replaces the sum up to k.

Step 2 of 13Practice · Put in order

Order the parts of a proof by induction.

Drag the items, or use the arrow buttons, to put them in order.

  1. Conclude that P(n) holds for all n ≥ 1
  2. Prove the base case P(1)
  3. State the claim P(n) and the starting value
  4. Assume P(k) holds for an arbitrary k ≥ 1 (inductive hypothesis)
  5. Use the hypothesis to prove P(k + 1)

Step 3 of 13Practice · Diagram

Induction as falling dominoes

Which part is missing in the "all horses are the same color" fake proof?

Tap the shape that answers the question, then press Check.

Induction as falling dominoesProcess diagram: Base case: P(1) → Assume P(k) → Show P(k + 1) → P(n) for all n ≥ 1.Base case:P(1)Assume P(k)Show P(k + 1)P(n) for all n≥ 1
Base case: P(1)

The first domino falls.

Assume P(k)

The inductive hypothesis: some domino k falls.

Show P(k + 1)

Domino k knocks over domino k + 1.

P(n) for all n ≥ 1

Every domino falls.

Step 4 of 13Learn

Inequalities and divisibility

Induction proves more than sum formulas.

Claim. 2ⁿ > n for every n ≥ 1.

Base case. 2¹ = 2 > 1.

Inductive step. Assume 2ᵏ > k. Then 2ᵏ⁺¹ = 2·2ᵏ > 2k = k + k ≥ k + 1, since k ≥ 1. So 2ᵏ⁺¹ > k + 1. ∎

Claim. 6 divides n³ − n for every n ≥ 1.

Base case. 1 − 1 = 0, and 6 divides 0.

Inductive step. Assume 6 divides k³ − k. Expand:

(k + 1)³ − (k + 1) = k³ + 3k² + 3k + 1 − k − 1 = (k³ − k) + 3k(k + 1).

The first part is divisible by 6 by hypothesis. In the second, k(k + 1) is a product of consecutive integers, so it's even, which makes 3k(k + 1) divisible by 6. The sum is divisible by 6. ∎

Starting somewhere else. The base case doesn't have to be 1. "n! > 2ⁿ for n ≥ 4" starts at n = 4 (24 > 16) and is false for n = 1, 2, 3. The inductive step then only needs to work for k ≥ 4.

Why the base case matters. Consider the false claim "n + 1 < n." The inductive step actually works: if k + 1 < k, adding 1 gives k + 2 < k + 1. Every domino would knock over the next, but the first one never falls. Without a base case, induction can "prove" nonsense.

Step 5 of 13Chart

2n pulls away from n

The inductive step shows why: doubling the left side adds far more than 1 to it.

2^n pulls away from nLine chart with 8 categories: 1: 2^n 2, n 1; 2: 2^n 4, n 2; 3: 2^n 8, n 3; 4: 2^n 16, n 4; 5: 2^n 32, n 5; 6: 2^n 64, n 6; 7: 2^n 128, n 7; 8: 2^n 256, n 8.010020030012345678n
2n pulls away from n
n2^nn
121
242
383
4164
5325
6646
71287
82568

Step 6 of 13Practice · Work it out

Using the formula proved by induction, what is 1 + 2 + 3 + ⋯ + 200?

Step 7 of 13Practice · Spot the mistake

This "proof" claims all horses are the same color. Which step fails?

Step 8 of 13Learn

Strong induction and recursion

Sometimes P(k + 1) depends on several earlier cases, not just P(k). Strong induction lets the inductive hypothesis assume P(1), P(2), …, P(k) all at once.

Claim. Every amount of postage of 12 cents or more can be made with 4-cent and 5-cent stamps.

Base cases. 12 = 4 + 4 + 4, 13 = 4 + 4 + 5, 14 = 4 + 5 + 5, 15 = 5 + 5 + 5.

Inductive step. For k + 1 ≥ 16, the amount (k + 1) − 4 = k − 3 is at least 12, so by the hypothesis it can be made. Add one 4-cent stamp. ∎

Four base cases were needed because the step reaches back 4 values.

Strong induction also proves that every integer greater than 1 is a product of primes: if n is prime, done; if not, n = ab with smaller a and b, each of which is a product of primes by the hypothesis.

Recursion is induction in reverse. A recursive definition gives a starting value and a rule for building the next value from earlier ones: factorial is 0! = 1 and n! = n·(n − 1)!; the Fibonacci numbers are F₁ = F₂ = 1 and Fₙ = Fₙ₋₁ + Fₙ₋₂. Recursive functions in programming have the same shape, a base case and a recursive call on a smaller input, and induction is how you prove they return the right answer and eventually stop. A recursive function with a missing base case runs forever, the programming version of dominoes with no first push.

Step 9 of 13Diagram

Recursion: computing F(5)

Each call reaches back to two earlier cases, exactly the shape strong induction handles.

Recursion: computing F(5)Hierarchy diagram: F(5) = 5, F(4) = 3, F(3) = 2, F(3) = 2, F(2) = 1, F(2) = 1, F(1) = 1, F(2) = 1, F(1) = 1.F(5) = 5F(4) = 3F(3) = 2F(3) = 2F(2) = 1F(2) = 1F(1) = 1F(2) = 1F(1) = 1

Tap a shape with to see more.

F(5) = 5
F(4) = 3
F(3) = 2
F(3) = 2
F(2) = 1

Base case.

F(2) = 1

Base case.

F(1) = 1

Base case.

F(2) = 1

Base case.

F(1) = 1

Base case.

Step 10 of 13Try the calculator

Check a formula against the sum

The formulas below were each proved by induction. Enter n to compare them. (Testing values is how you find a formula to prove, never a replacement for the proof.)

1 + 2 + ⋯ + n = n(n + 1)/2
55
1² + 2² + ⋯ + n² = n(n + 1)(2n + 1)/6
385
1 + 3 + 5 + ⋯ + (2n − 1) = n²
100
1 + 2 + 4 + ⋯ + 2ⁿ⁻¹ = 2ⁿ − 1
1,023

Step 11 of 13Note

Step 12 of 13Practice · Choose one

In the 4-cent and 5-cent postage proof, why were four base cases (12, 13, 14, 15) needed?

Step 13 of 13Practice · True or false

An inductive step that correctly shows P(k) → P(k + 1) for all k ≥ 1 is enough on its own to prove P(n) for all n ≥ 1.