M5.8.7 Chapter 7

Proof by induction

How can one proof cover infinitely many cases?

Your guess

Pick one before you read on. It is fine to be wrong.

Your guess
  • You picked A. Read on. At the end, the chapter comes back to your guess.

  • You picked B. Read on. At the end, the chapter comes back to your guess.

  • You picked C. Read on. At the end, the chapter comes back to your guess.

By the end you can

  • Prove a formula for a sum by induction
  • Prove a result about dividing by induction

A claim about every whole number n, such as "1 + 2 + ... + n = ½n(n + 1)", cannot be checked case by case. Proof by induction proves it with two facts, like a row of dominoes. We call the claim P(n). Show that P(1) is true: this is the base case. Then show that if P(k) is true for some number k, P(k + 1) is true as well: this is the inductive step.

Draw it first

Dominoes and induction

  1. Three rows of five dominoes, which show the base case, the step and the result. Its labels read 1, 2, 3, 4, 5, push, base case, 1, 2, 3, 4, 5, if k falls, k + 1 falls, step, 1, 2, 3, 4, 5, …, result.12345base casepush

    1 The base case: push domino 1, and it falls.

  2. Three rows of five dominoes, which show the base case, the step and the result. Its labels read 1, 2, 3, 4, 5, push, base case, 1, 2, 3, 4, 5, if k falls, k + 1 falls, step, 1, 2, 3, 4, 5, …, result.12345base casepush12345stepif k falls, k + 1 falls

    2 The inductive step: if domino k falls, it knocks down domino k + 1.

  3. Three rows of five dominoes, which show the base case, the step and the result. Its labels read 1, 2, 3, 4, 5, push, base case, 1, 2, 3, 4, 5, if k falls, k + 1 falls, step, 1, 2, 3, 4, 5, …, result.12345base casepush12345stepif k falls, k + 1 falls12345…result

    3 Every domino falls, however long the row is.

Here is the shape of every proof by induction, in numbered lines.

The shape of a proof by induction, in four numbered lines joined by arrows. Line 1 reads Base case: show P(1) is true. the push on the first domino. Line 2 reads Assume P(k) is true for some whole number k. a domino has fallen. Line 3 reads Show that P(k + 1) is true. it knocks down the next one. Line 4 reads P(1) is true, and P(k) leads to P(k + 1). So P(n) is true for every whole number n..1Base case: show P(1) is true.the push on the first domino2Assume P(k) is true for somewhole number k.a domino has fallen3Show that P(k + 1) is true.it knocks down the next one4P(1) is true, and P(k) leadsto P(k + 1). So P(n) is truefor every whole number n.
In line 2 we assume P(k) only for a number k. We do not assume P(k + 1), because that is what line 3 must show.

First a sum. We prove that 1 + 2 + ... + n = ½n(n + 1). The step uses a picture of a staircase of dots: the sum up to k, with one more row of k + 1 dots added.

A staircase of 6 rows of dots. The last row is ringed. Its labels read 1, 2, 3, 4, 5, 6, 1 + 2 + 3 + ... + 6 = 21.1234561 + 2 + 3 + ... + 6 = 21
The sum up to k = 5 has 5 rows. The ringed row is the next term, k + 1 = 6. Induction says that adding it to the formula for k gives the formula for k + 1.

Worked example

Prove by induction that 1 + 2 + ... + n = ½n(n + 1) for every whole number n from 1.

  1. Let P(n) be the statement 1 + 2 + ... + n = ½n(n + 1).
  2. Base case, n = 1. The left side is 1. The right side is ½ × 1 × 2 = 1. They agree, so P(1) is true.
  3. Assume P(k) is true for some whole number k: 1 + 2 + ... + k = ½k(k + 1).
  4. Add the next term, k + 1, to both sides: 1 + 2 + ... + k + (k + 1) = ½k(k + 1) + (k + 1).
  5. Take out the factor (k + 1) on the right: ½k(k + 1) + (k + 1) = (k + 1)(½k + 1) = ½(k + 1)(k + 2).
  6. This is ½n(n + 1) with n = k + 1, because k + 2 = (k + 1) + 1. So P(k + 1) is true.
  7. P(1) is true, and P(k) leads to P(k + 1). By induction, P(n) is true for every whole number n from 1.

Answer: Proved by induction for every whole number n from 1.

A table of cases is not a proof. It only checks the formula for some values of n, but it shows what the formula says.

A table of the sum 1 + 2 + ... + n and the formula ½n(n + 1), for n = 1 to 6. The heads are n and sum and ½n(n + 1). The row reads 1 and 1 and 1. The row reads 2 and 3 and 3. The row reads 3 and 6 and 6. The row reads 4 and 10 and 10. The row reads 5 and 15 and 15. The row reads 6 and 21 and 21.nsum½n(n + 1)111233366410105151562121
The two columns agree in every row. The induction proof is what shows they agree in every row there will ever be.

Worked example

Prove by induction that 1² + 2² + ... + n² = n(n + 1)(2n + 1) ÷ 6 for every whole number n from 1.

  1. Let P(n) be 1² + 2² + ... + n² = n(n + 1)(2n + 1) ÷ 6.
  2. Base case, n = 1. The left side is 1² = 1. The right side is 1 × 2 × 3 ÷ 6 = 1. So P(1) is true.
  3. Assume P(k): 1² + 2² + ... + k² = k(k + 1)(2k + 1) ÷ 6.
  4. Add the next term, (k + 1)², to both sides: the sum up to (k + 1)² is k(k + 1)(2k + 1) ÷ 6 + (k + 1)².
  5. Take out the factor (k + 1) ÷ 6: (k + 1)[k(2k + 1) + 6(k + 1)] ÷ 6.
  6. Expand inside the bracket: k(2k + 1) + 6(k + 1) = 2k² + k + 6k + 6 = 2k² + 7k + 6.
  7. Factorise: 2k² + 7k + 6 = (k + 2)(2k + 3). So the sum is (k + 1)(k + 2)(2k + 3) ÷ 6.
  8. With n = k + 1 this is n(n + 1)(2n + 1) ÷ 6, because k + 2 = n + 1 and 2k + 3 = 2n + 1. So P(k + 1) is true, and by induction P(n) is true for all n from 1.

Answer: Proved by induction.

Worked example

Prove by induction that 5ⁿ − 1 is divisible by 4 for every whole number n from 1.

  1. Let P(n) be the statement that 5ⁿ − 1 is divisible by 4.
  2. Base case, n = 1. 5¹ − 1 = 4, which is divisible by 4. So P(1) is true.
  3. Assume P(k): 5^k − 1 = 4m for some whole number m. Then 5^k = 4m + 1.
  4. Now 5^(k+1) − 1 = 5 × 5^k − 1 = 5(4m + 1) − 1.
  5. Expand: 5(4m + 1) − 1 = 20m + 5 − 1 = 20m + 4.
  6. Take out 4: 20m + 4 = 4(5m + 1). The bracket is a whole number, so 5^(k+1) − 1 is divisible by 4.
  7. So P(k + 1) is true. P(1) is true, and P(k) leads to P(k + 1), so by induction P(n) is true for all n from 1.

Answer: Proved by induction.

See it three ways

With things

Line up dominoes, or books standing on their edges. Push the first one. It knocks down the second, the second knocks down the third, and the row falls.

As a picture

A staircase of 5 rows of dots. The last row is ringed. Its labels read 1, 2, 3, 4, 5, 1 + 2 + 3 + 4 + 5 = 15.123451 + 2 + 3 + 4 + 5 = 15

In words

Show the claim for 1. Show that each case leads to the next. Then it holds for all.

In symbols

P(1) is true, and P(k) ⇒ P(k + 1). So P(n) is true for all n ≥ 1.

Try it

A row of falling books

You need: 6 books or cards that can stand on their edges, a flat table.

  1. Stand the books in a row on their edges, each a little less than one book height from the next.
  2. Push the first book towards the second. See what happens.
  3. Stand them up again, with one gap too wide for the book to reach. Push the first book again.
  4. Say which of the two facts, the push or the knocking, failed the second time.

What you will see: The row falls only when the first book is pushed and every book can reach the next. A wide gap breaks the step, and the books after it stay standing.

If you cannot try it, this is what happens.
A row of six dominoes with a wide gap after the third. The first three have fallen and the last three stand. Its labels read 1, 2, 3, 4, 5, 6, push.123456push

A wrong idea many people have

An induction proof needs only the inductive step.

Why it feels right: The step is the clever part, and if each case leads to the next, all the cases seem to be covered.

The test that breaks it: Let P(n) be the false claim n = n + 1. Assume P(k): k = k + 1. Add 1 to both sides: k + 1 = k + 2, which is P(k + 1). The step works. But P(1) says 1 = 2, which is false.

What is true: The base case is the push on the first domino. With no push, nothing falls, however well the dominoes knock each other. Check the base case, and check the step.

A row of 5 dominoes, all standing, with an arrow over them for the rule. Its labels read 1, 2, 3, 4, 5, if k falls, k + 1 falls.12345if k falls, k + 1 falls
The rule is in place: if one falls, the next falls. But nobody pushed the first domino, so none fall.

A wrong idea many people have

In the inductive step we assume P(k + 1) and use it to prove P(k).

Why it feels right: Both statements are about the same claim, so the order of the two feels unimportant.

The test that breaks it: Assume the end of the argument, P(k + 1), and you have assumed what the step must prove. The proof would go round in a circle. It would also not move up: the dominoes need each one to knock the next.

What is true: Assume P(k) and prove P(k + 1). The proof moves from a case that holds to the case after it.

Key words

proof by induction
a proof of a claim P(n) for every whole number n from 1, made of a base case and an inductive step.
base case
showing that P(1) is true. It is the first domino falling.
inductive step
showing that if P(k) is true then P(k + 1) is true.
assumption
in the step, the statement P(k), taken as true for some whole number k.

Back to your guess

The answer is B: A row of dominoes goes on for ever. All of them fall if the first one falls and each domino that falls knocks down the next.

Two facts are enough. The first domino falls, and each domino that falls knocks down the next. Then domino 1 falls, so domino 2 falls, so domino 3 falls, and so on without end. Proof by induction works the same way for a claim about every whole number.

Check yourself

Try each one before you look. A wrong answer tells you where to go next.

  1. To prove by induction that 1 + 3 + 5 + ... + (2n − 1) = n², which is the base case?

    Tap your answer.
    1. Yes, that is right. When n = 1 the left side is 1 and the right side is 1² = 1, so P(1) is true. The inductive step then takes every case to the next.

    2. Not this one. That is the assumption, the first line of the inductive step. The base case checks a particular number. Read this page again. Try another.

    3. Not this one. That is the goal of the inductive step, and it uses the assumption. The base case comes first and uses no assumption. Read this page again. Try another.

    4. Not this one. Four cases are only examples. The base case is the first case, n = 1, and the step then covers all the rest. Read this page again. Try another.

    See the answer

    Check the formula when n = 1.

    When n = 1 the left side is 1 and the right side is 1² = 1, so P(1) is true. The inductive step then takes every case to the next.

    • If you chose B: That is the assumption, the first line of the inductive step. The base case checks a particular number. Read this page again.
    • If you chose C: That is the goal of the inductive step, and it uses the assumption. The base case comes first and uses no assumption. Read this page again.
    • If you chose D: Four cases are only examples. The base case is the first case, n = 1, and the step then covers all the rest. Read this page again.
  2. This proof that 7ⁿ − 1 is divisible by 6 has a wrong line. Which is the first wrong line?

    A proof by induction that 7ⁿ − 1 is divisible by 6, in six numbered lines. Line 1 reads P(n): 7ⁿ − 1 is divisible by 6.. Line 2 reads n = 1: 7 − 1 = 6, which is divisible by 6.. Line 3 reads Assume 7^k − 1 = 6m, so 7^k = 6m + 1.. Line 4 reads 7^(k+1) − 1 = 7(6m + 1) − 1 = 42m + 7 − 1 = 42m + 8. Line 5 reads So 7^(k+1) − 1 is divisible by 6, and P(k + 1) is true.. Line 6 reads By induction, P(n) is true for every whole number n..1P(n): 7ⁿ − 1 is divisibleby 6.2n = 1: 7 − 1 = 6, which isdivisible by 6.3Assume 7^k − 1 = 6m, so7^k = 6m + 1.47^(k+1) − 1 = 7(6m + 1) − 1= 42m + 7 − 1 = 42m + 85So 7^(k+1) − 1 isdivisible by 6, andP(k + 1) is true.6By induction, P(n) is truefor every whole number n.
    Tap your answer.
    1. Not this one. Line 2 is the base case: 7 − 1 = 6, which is divisible by 6. It is correct. Read this page again. Try another.

    2. Not this one. Line 3 is the assumption and its rearrangement: 7^k − 1 = 6m gives 7^k = 6m + 1. It is correct. Read this page again. Try another.

    3. Not this one. Line 5 would follow from a correct line 4, so the first wrong line is earlier, in the working. Read this page again. Try another.

    4. Yes, that is right. 7(6m + 1) − 1 = 42m + 7 − 1 = 42m + 6, not 42m + 8. Then 42m + 6 = 6(7m + 1), a multiple of 6.

    See the answer

    Line 4

    7(6m + 1) − 1 = 42m + 7 − 1 = 42m + 6, not 42m + 8. Then 42m + 6 = 6(7m + 1), a multiple of 6.

    • If you chose A: Line 2 is the base case: 7 − 1 = 6, which is divisible by 6. It is correct. Read this page again.
    • If you chose B: Line 3 is the assumption and its rearrangement: 7^k − 1 = 6m gives 7^k = 6m + 1. It is correct. Read this page again.
    • If you chose C: Line 5 would follow from a correct line 4, so the first wrong line is earlier, in the working. Read this page again.
  3. In the inductive step for 1 + 3 + 5 + ... + (2n − 1) = n², you assume the sum up to (2k − 1) is k². What do you add to both sides?

    Tap your answer.
    1. Not this one. That is the last term already in the sum, the kth odd number. The next term is the (k + 1)th odd number. Read this page again. Try another.

    2. Not this one. That is even, and every term of the sum is odd. The next odd number after 2k − 1 is 2 more. Read this page again. Try another.

    3. Yes, that is right. The nth term is 2n − 1. For n = k + 1 it is 2(k + 1) − 1 = 2k + 1. Then k² + (2k + 1) = (k + 1)², which is P(k + 1).

    4. Not this one. That is the next term of 1 + 2 + ... + n. This sum has odd numbers as its terms. Read this page again. Try another.

    See the answer

    2k + 1

    The nth term is 2n − 1. For n = k + 1 it is 2(k + 1) − 1 = 2k + 1. Then k² + (2k + 1) = (k + 1)², which is P(k + 1).

    • If you chose A: That is the last term already in the sum, the kth odd number. The next term is the (k + 1)th odd number. Read this page again.
    • If you chose B: That is even, and every term of the sum is odd. The next odd number after 2k − 1 is 2 more. Read this page again.
    • If you chose D: That is the next term of 1 + 2 + ... + n. This sum has odd numbers as its terms. Read this page again.
  4. In the inductive step for 1² + 2² + ... + n², you assume the sum up to k² is k(k + 1)(2k + 1) ÷ 6. Which term do you add to both sides?

    Tap your answer.
    1. Not this one. k² is the last term already in the sum. The next term is the square of the next number. Read this page again. Try another.

    2. Yes, that is right. The terms are 1², 2², 3², and so on. After k² comes (k + 1)². Adding it gives k(k + 1)(2k + 1) ÷ 6 + (k + 1)², which simplifies to (k + 1)(k + 2)(2k + 3) ÷ 6.

    3. Not this one. That is the next number, not the next square. Every term of this sum is a square. Read this page again. Try another.

    4. Not this one. That doubles the next number. The terms of this sum are squares, and the next square is (k + 1)². Read this page again. Try another.

    See the answer

    (k + 1)²

    The terms are 1², 2², 3², and so on. After k² comes (k + 1)². Adding it gives k(k + 1)(2k + 1) ÷ 6 + (k + 1)², which simplifies to (k + 1)(k + 2)(2k + 3) ÷ 6.

    • If you chose A: k² is the last term already in the sum. The next term is the square of the next number. Read this page again.
    • If you chose C: That is the next number, not the next square. Every term of this sum is a square. Read this page again.
    • If you chose D: That doubles the next number. The terms of this sum are squares, and the next square is (k + 1)². Read this page again.
  5. From an earlier chapter

    Find the sum to infinity of 4 + 4/3 + 4/9 + ...

    Tap your answer.
    1. Not this one. That divides by r = 1/3 instead of 1 − r. The sum to infinity is a ÷ (1 − r). Go to M5.8.6. Try another.

    2. Yes, that is right. a = 4 and r = 1/3. S∞ = 4 ÷ (1 − 1/3) = 4 ÷ 2/3 = 4 × 3 ÷ 2 = 6.

    3. Not this one. That uses 1 + r. The formula has 1 − r, which is 2/3 here. Go to M5.8.6. Try another.

    4. Not this one. That is only the first term. The sum adds every term, and the later terms add more. Go to M5.8.6. Try another.

    See the answer

    6

    a = 4 and r = 1/3. S∞ = 4 ÷ (1 − 1/3) = 4 ÷ 2/3 = 4 × 3 ÷ 2 = 6.

    • If you chose A: That divides by r = 1/3 instead of 1 − r. The sum to infinity is a ÷ (1 − r). Go to M5.8.6.
    • If you chose C: That uses 1 + r. The formula has 1 − r, which is 2/3 here. Go to M5.8.6.
    • If you chose D: That is only the first term. The sum adds every term, and the later terms add more. Go to M5.8.6.
  6. A proof by induction for 1² + 2² + ... + n² = n(n + 1)(2n + 1) ÷ 6 is checked at n = 5. What do both sides equal?

    See the answer

    55

    Left side: 1² + 2² + 3² + 4² + 5² = 1 + 4 + 9 + 16 + 25 = 55. Right side: 5 × 6 × 11 ÷ 6 = 330 ÷ 6 = 55.

  7. In a proof that 7ⁿ − 1 is divisible by 6, assume 7^k − 1 = 6m. Then 7^(k+1) − 1 = 6 × (something). Work out the something when m = 4.

    See the answer

    29

    7^(k+1) − 1 = 7(6m + 1) − 1 = 42m + 6 = 6(7m + 1). With m = 4, 7m + 1 = 28 + 1 = 29.

  8. You have assumed P(k): 1 + 2 + ... + k = ½k(k + 1). What is the next step in proving P(k + 1)?

    Tap your answer.
    1. Yes, that is right. The sum up to k + 1 is the sum up to k, plus the new term k + 1. Adding k + 1 to both sides of P(k) gives the left side of P(k + 1).

    2. Not this one. That is the base case, which is done before the assumption. The step now uses P(k). Read this page again. Try another.

    3. Not this one. P(k + 1) is the aim of the step. Assuming it is circular. Instead, build it from P(k). Read this page again. Try another.

    4. Not this one. Changing one side breaks the equation. Add the new term to both sides so that the equation stays true. Read this page again. Try another.

    See the answer

    Add k + 1 to both sides.

    The sum up to k + 1 is the sum up to k, plus the new term k + 1. Adding k + 1 to both sides of P(k) gives the left side of P(k + 1).

    • If you chose B: That is the base case, which is done before the assumption. The step now uses P(k). Read this page again.
    • If you chose C: P(k + 1) is the aim of the step. Assuming it is circular. Instead, build it from P(k). Read this page again.
    • If you chose D: Changing one side breaks the equation. Add the new term to both sides so that the equation stays true. Read this page again.

Keep it

Copy this into your exercise book.

Induction: base case P(1). Assume P(k). Show P(k + 1) from it. Conclude P(n) for all n from 1. Both parts are needed, like the first push and the knock-on of dominoes.

Draw: A row of dominoes with a push arrow at the first and an arrow from each one to the next.

Reading with a child? A short page for the adult: what this chapter teaches and three questions to ask.

No internet tomorrow? Save the whole book as one file (961 KB). It opens on any phone.