Topic 3 of 8
Step 21: Proofs and discrete maths
Induction
Step 21 · Proofs and discrete maths topics
Prove statements about every whole number by checking a base case and showing each case implies the next, including strong induction for stubborn cases.
The induction principle
To prove P(n) for every n ≥ 1, show that P(1) is true (the base case), then show that P(k) implies P(k + 1) for every k ≥ 1 (the inductive step). Like a line of dominoes: the first falls, and each one knocks over the next.
- Base case: check P(1).
- Inductive hypothesis: assume P(k) for some k ≥ 1.
- Inductive step: use it to prove P(k + 1).
- Conclude that P(n) holds for every n ≥ 1.
Example: Divisibility
Prove that 3 divides 4ⁿ − 1 for every n ≥ 1.
- Base: 4 − 1 = 3.
- Assume 3 divides 4ᵏ − 1.
- Then 4ᵏ⁺¹ − 1 = 4(4ᵏ − 1) + 3, a sum of two multiples of 3.
AnswerProved for every n ≥ 1
Induction with sums
Example: Adding the first n numbers
Prove that 1 + 2 + ⋯ + n = .
- Base: n = 1 gives 1 on both sides.
- Assume 1 + ⋯ + k = .
- Add k + 1: , which is the formula for k + 1.
AnswerProved
Example: Odd numbers
Prove that 1 + 3 + 5 + ⋯ + (2n − 1) = n².
- Base: 1 = 1².
- Assume the sum up to 2k − 1 is k².
- Adding the next odd number, 2k + 1, gives k² + 2k + 1, which is (k + 1)².
AnswerProved
Strong induction
In strong induction you may assume P(1), …, P(k) all hold when proving P(k + 1). It suits statements where the case k + 1 depends on cases further back than k.
Example: Prime factors
Prove that every integer n ≥ 2 is a product of primes.
- Base: 2 is prime.
- Assume every number from 2 to k is a product of primes. If k + 1 is prime, we are done.
- Otherwise k + 1 = ab with 2 ≤ a, b ≤ k, and both a and b are products of primes.
AnswerSo k + 1 is a product of primes too
Example: Stamps
Prove that any postage of 12 cents or more can be made with 4- and 5-cent stamps.
- Base cases: 12 = 4 + 4 + 4, 13 = 4 + 4 + 5, 14 = 4 + 5 + 5 and 15 = 5 + 5 + 5.
- For n ≥ 16, the amount n − 4 is at least 12, so it can be made by assumption; add one 4-cent stamp.
AnswerProved for every amount from 12 cents up
Try it yourself
Work each one on paper first, then open the answer to check.
What are the two parts of an induction proof?
Show answer
A base case and an inductive step
In proving 2ⁿ > n for n ≥ 1, what is the base case?
Show answer
n = 1: 2 > 1
Use the formula to find 1 + 2 + ⋯ + 100.
Show answer
5050
Use 1 + 3 + ⋯ + (2n − 1) = n² to find the sum of the first 20 odd numbers.
Show answer
400
In the step of a strong induction proof, what may you assume?
Show answer
That P(1), …, P(k) all hold
Name an amount from 1 to 11 cents that cannot be made with 4- and 5-cent stamps.
Show answer
Any of 1, 2, 3, 6, 7 or 11