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.
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 The base case: push domino 1, and it falls.
2 The inductive step: if domino k falls, it knocks down domino k + 1.
3 Every domino falls, however long the row is.
Here is the shape of every proof by induction, in numbered lines.
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.
Worked example
Prove by induction that 1 + 2 + ... + n = ½n(n + 1) for every whole number n from 1.
- Let P(n) be the statement 1 + 2 + ... + n = ½n(n + 1).
- Base case, n = 1. The left side is 1. The right side is ½ × 1 × 2 = 1. They agree, so P(1) is true.
- Assume P(k) is true for some whole number k: 1 + 2 + ... + k = ½k(k + 1).
- Add the next term, k + 1, to both sides: 1 + 2 + ... + k + (k + 1) = ½k(k + 1) + (k + 1).
- Take out the factor (k + 1) on the right: ½k(k + 1) + (k + 1) = (k + 1)(½k + 1) = ½(k + 1)(k + 2).
- This is ½n(n + 1) with n = k + 1, because k + 2 = (k + 1) + 1. So P(k + 1) is true.
- 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.
Worked example
Prove by induction that 1² + 2² + ... + n² = n(n + 1)(2n + 1) ÷ 6 for every whole number n from 1.
- Let P(n) be 1² + 2² + ... + n² = n(n + 1)(2n + 1) ÷ 6.
- Base case, n = 1. The left side is 1² = 1. The right side is 1 × 2 × 3 ÷ 6 = 1. So P(1) is true.
- Assume P(k): 1² + 2² + ... + k² = k(k + 1)(2k + 1) ÷ 6.
- Add the next term, (k + 1)², to both sides: the sum up to (k + 1)² is k(k + 1)(2k + 1) ÷ 6 + (k + 1)².
- Take out the factor (k + 1) ÷ 6: (k + 1)[k(2k + 1) + 6(k + 1)] ÷ 6.
- Expand inside the bracket: k(2k + 1) + 6(k + 1) = 2k² + k + 6k + 6 = 2k² + 7k + 6.
- Factorise: 2k² + 7k + 6 = (k + 2)(2k + 3). So the sum is (k + 1)(k + 2)(2k + 3) ÷ 6.
- 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.
- Let P(n) be the statement that 5ⁿ − 1 is divisible by 4.
- Base case, n = 1. 5¹ − 1 = 4, which is divisible by 4. So P(1) is true.
- Assume P(k): 5^k − 1 = 4m for some whole number m. Then 5^k = 4m + 1.
- Now 5^(k+1) − 1 = 5 × 5^k − 1 = 5(4m + 1) − 1.
- Expand: 5(4m + 1) − 1 = 20m + 5 − 1 = 20m + 4.
- Take out 4: 20m + 4 = 4(5m + 1). The bracket is a whole number, so 5^(k+1) − 1 is divisible by 4.
- 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
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.
- Stand the books in a row on their edges, each a little less than one book height from the next.
- Push the first book towards the second. See what happens.
- Stand them up again, with one gap too wide for the book to reach. Push the first book again.
- 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.
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 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.
To prove by induction that 1 + 3 + 5 + ... + (2n − 1) = n², which is the base case?
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.
This proof that 7ⁿ − 1 is divisible by 6 has a wrong line. Which is the first wrong line?
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.
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?
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.
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?
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.
From an earlier chapter
Find the sum to infinity of 4 + 4/3 + 4/9 + ...
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.
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.
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.
You have assumed P(k): 1 + 2 + ... + k = ½k(k + 1). What is the next step in proving P(k + 1)?
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.