Discrete MathematicsMathematical Induction3 of 5
Mathematical Induction · 3

Strong Induction and the Well Ordering Principle

Regular induction proves step k+1\target{k + 1} using only step k\given{k} right below it, which gets stuck whenever a problem splits into pieces of unpredictable size or reaches further back.

1

Strong Induction and the Chocolate Bar Problem

Suppose we have a chocolate bar made of nn squares and we snap one piece at a time along the grid lines until we have nn individual squares. We want to prove that breaking an nn-square bar into single squares always takes n−1n - 1 breaks, no matter where we snap it.

11
22
33
44
55
66
77
88
99
10\htmlClass{lc-pink}{10}
?\htmlClass{lc-orange}{?}
55
55

If we split a 10\target{10}-square bar into two 55-square pieces, knowing only about a 9\given{9}-square bar doesn't help us at all. Strong induction solves this by keeping the entire history of sizes we have already proven, from 1\holds{1} all the way up to k\given{k}.

Strong Induction and the Chocolate Bar Problem
n squaresn\ \text{squares}
Text solution
Check the 1\holds{1}-square barA bar with 1\holds{1} square is already a single square and needs 0\holds{0} breaks, which matches n−1n - 1 when n=1n = 1.
1−1\displaystyle 1 - 1 =0 breaks\displaystyle = \holds{0} \text{ breaks}
Keep the history from 1\holds{1} to k\given{k}Fix an integer k≥1\given{k} \ge 1 and assume that every bar of any size from 1\holds{1} through k\given{k} takes one fewer break than its number of squares.
Every bar of size mtakes m−1 breaks for 1≤m≤k\displaystyle \begin{aligned} &\text{Every bar of size } m \\ &\text{takes } \given{m - 1} \text{ breaks for } \holds{1} \le m \le \given{k} \end{aligned}
Snap the (k+1)\target{(k + 1)}-square bar into AA and BBMaking the first snap splits the bar of size k+1\target{k + 1} into two smaller pieces of sizes AA and BB that both lie inside the proven range 1\holds{1} to k\given{k}.
A+B\displaystyle A + B =k+1(1≤A,B≤k)\displaystyle = \target{k + 1} \quad (\holds{1} \le A, B \le \given{k})
Add the first break to the breaks for AA and BBBecause AA and BB are both between 1\holds{1} and k\given{k}, they take A−1\given{A - 1} and B−1\given{B - 1} breaks, and adding the 1\target{1} initial snap gives (k+1)−1\target{(k + 1)} - 1 breaks in total.
Total breaks=1+(A−1)+(B−1)=A+B−1=(k+1)−1\displaystyle \begin{aligned} &\text{Total breaks} \\ &= \target{1} + \given{(A - 1)} + \given{(B - 1)} \\ &= A + B - 1 \\ &= \target{(k + 1)} - 1 \end{aligned}

On a 10\target{10}-square bar, only snapping off a single end square uses step 9\given{9}; every other first split skips past 9\given{9} and uses two smaller sizes AA and BB from the history 1\holds{1} through 8\given{8}, yet the total number of breaks is always 1+(A−1)+(B−1)=9\target{1} + \given{(A - 1)} + \given{(B - 1)} = 9.

Where you make the first break picks which smaller sizes from 1 to 9 you use, while the total stays 9 breaks every time.
2

Multiple Base Cases and the Coin Problem

In the chocolate bar problem, a single base case was enough because any split of k+1≥2\target{k + 1} \ge 2 landed at or above 1\holds{1}. When an inductive step jumps several steps backward, we have to make sure that jump doesn't go past our starting number.

Using only 33-dollar and 55-dollar coins, we want to prove that we can make every integer dollar amount n≥8n \ge 8. Once we have a pile of coins for an earlier amount, we can toss in one 33-dollar coin to jump 3\target{3} steps forward, which means our inductive step for k+1\target{k + 1} reaches 3\target{3} steps backward.

Multiple Base Cases and the Coin Problem
33
55
11
22
3\htmlClass{lc-green}{3}
44
5\htmlClass{lc-green}{5}
6\htmlClass{lc-green}{6}
77
88
99
1010
1111
⋯\cdots
33
55
33
33
Text solution
Build three consecutive base cases by handBecause the inductive step reaches 3\target{3} steps backward, we check the first three amounts 8\holds{8}, 9\holds{9}, and 10\holds{10} directly before the +3\target{+3} step takes over at 11\target{11}.
8=3+59=3+3+310=5+5\displaystyle \begin{aligned} \holds{8} &= 3 + 5 \\ \holds{9} &= 3 + 3 + 3 \\ \holds{10} &= 5 + 5 \end{aligned}
Assume the history from 8\holds{8} up to k≥10\given{k} \ge 10Fix an integer k≥10\given{k} \ge 10 so that all three base cases are behind us, and assume every dollar amount from 8\holds{8} through k\given{k} can be made.
Every dollar amount from 8 to kcan be made (k≥10)\displaystyle \begin{aligned} &\text{Every dollar amount from } \holds{8} \text{ to } \given{k} \\ &\text{can be made } (\given{k} \ge 10) \end{aligned}
Step back 3\target{3} dollars from k+1\target{k + 1}Since k≥10\given{k} \ge 10, stepping back 3\target{3} from k+1\target{k + 1} lands on k−2≥8\given{k - 2} \ge \holds{8}, which is inside our proven range and needs just one more 33-dollar coin to make k+1\target{k + 1}.
(k+1)−3=k−2(8≤k−2≤k)(k−2)+3=k+1\displaystyle \begin{aligned} \target{(k + 1)} - \target{3} &= \given{k - 2} \\ &\qquad (\holds{8} \le \given{k - 2} \le \given{k}) \\ \given{(k - 2)} + \target{3} &= \target{k + 1} \end{aligned}

Writing the check k≥10  ⟹  k−2≥8\given{k} \ge 10 \implies \given{k - 2} \ge \holds{8} isn't just an extra algebra formality. It is how you verify that stepping back by 3\target{3} doesn't fall below your starting base case 8\holds{8}.

From 11\target{11} upward, stepping back by 3\target{3} always lands inside the proven range starting at 8\holds{8}, whereas stepping back by 3\target{3} from 10\target{10} or 9\target{9} goes past 8\holds{8} and lands on the impossible 7\fails{7} or on 6\fails{6}.

Stepping back by 3\target{3} only lands at or above 8\holds{8} once you reach 11\target{11}, so 8\holds{8}, 9\holds{9}, and 10\holds{10} have to be built by hand.
3

The Well-Ordering Principle and Prime Factorization

The Well-Ordering Principle states that every non-empty set of positive integers has a smallest number.

⋯\cdots
2\htmlClass{lc-green}{2}
3\htmlClass{lc-green}{3}
⋯\htmlClass{lc-green}{\cdots}
⋯\htmlClass{lc-green}{\cdots}
m−1\htmlClass{lc-green}{m - 1}
m\htmlClass{lc-orange}{m}
first failure\text{first failure}

While strong induction starts at the bottom and builds upward, the Well-Ordering Principle works from the opposite direction: to prove a rule holds for all numbers, we suppose there are counterexamples and take the very first failure m\fails{m}. Because m\fails{m} is the smallest failure, every number smaller than m\fails{m} automatically works. We can use this to prove that every integer greater than 11 is either prime or a product of primes.

The Well-Ordering Principle and Prime Factorization
Every non-empty set of positive integers\text{Every non-empty set of positive integers}
has a smallest number\text{has a smallest number}
11
22
33
44
55
66
77
88
99
1010
⋯\cdots
Text solution
Take the smallest counterexample m\fails{m}Suppose for contradiction that there are integers greater than 11 that cannot be written as a product of primes, and use the Well-Ordering Principle to pick the smallest such failure m\fails{m}.
m\displaystyle \fails{m} =smallest integer >1 that is not a product of primes\displaystyle = \text{smallest integer } > 1 \text{ that is not a product of primes}
Split composite m\fails{m} into smaller factors aa and bbSince a prime number already counts as a product of primes (just itself), m\fails{m} cannot be prime, so it factors into two smaller integers aa and bb.
m\displaystyle \fails{m} =a×b(1<a,b<m)\displaystyle = a \times b \quad (1 < a, b < \fails{m})
Multiply the prime factorizations of aa and bbBecause aa and bb are both smaller than the first failure m\fails{m}, neither can fail, so both are products of primes. Multiplying them makes m\fails{m} a product of primes, contradicting that m\fails{m} fails.
m\displaystyle \fails{m} =(primes from a)×(primes from b)\displaystyle = \holds{(\text{primes from } a)} \times \holds{(\text{primes from } b)}

Because m\fails{m} is the first failure, every number from 2\holds{2} to m−1\holds{m - 1} already factors into primes. Splitting a composite m\fails{m} into a×ba \times b lands both factors in that working range, which forces m\fails{m} to be a product of primes too.

Making any composite number the first failure forces every smaller number to work, so its factors already have the primes needed to build it.

Key concepts

Before using strong induction or the Well-Ordering Principle, check whether step k+1\target{k + 1} only depends on the single step k\given{k} right below it, like adding (k+1)\target{(k + 1)} to a sum 1+2+⋯+k\given{1 + 2 + \dots + k}. When you only look one step back, regular induction with one base case is all you need.

When step k+1\target{k + 1} breaks into pieces of unknown size (like snapping a (k+1)\target{(k + 1)}-square bar into A+B=k+1A + B = \target{k + 1} with 1≤A,B≤k\holds{1} \le A, B \le \given{k}) or reaches several steps backward (like stepping back 3\target{3} from k+1\target{k + 1} to k−2\given{k - 2}, or a sequence rule ak+1=5ak−6ak−1\target{a_{k+1}} = 5\given{a_k} - 6\given{a_{k-1}}), build upward with Strong Induction by keeping the whole history from your starting number b\holds{b} up to k\given{k}:

Assume every m with b\displaystyle \text{Assume every } m \text{ with } \holds{b} ≤m\displaystyle \le m ≤k works, then prove k+1\displaystyle \le \given{k} \text{ works, then prove } \target{k + 1}

If your inductive step reaches r\target{r} steps backward, check r\holds{r} consecutive base cases by hand so your first jump back lands at or above b\holds{b}. For a −3\target{-3} step starting at 8\holds{8}, check 8,9,\holds{8}, \holds{9}, and 10\holds{10}, then start the inductive step at k≥10\given{k} \ge 10 so (k+1)−3=k−2≥8\target{(k + 1)} - \target{3} = \given{k - 2} \ge \holds{8}.

When a failed object can be factored or reduced into a smaller one, like factoring m=a×b\fails{m} = a \times b with 1<a,b<m1 < a, b < \fails{m} or canceling a common factor from a fraction, work downward with the Well-Ordering Principle. Assume there are positive-integer counterexamples and take the smallest one, m\fails{m}. Because m\fails{m} is the very first failure, every number below m\fails{m} already works, and shrinking m\fails{m} gives a failure smaller than the smallest one, which is impossible.

4

Practice

1

Prove by strong induction that every dollar amount n≥12n \ge 12 can be made using only 44-dollar and 55-dollar coins. State clearly how many base cases are needed and why.

If you make k+1\target{k + 1} dollars by adding one 44-dollar coin to an earlier pile, how many steps backward do you reach, and how many consecutive base cases starting at 1212 must you build by hand?

Because the inductive step adds one 44-dollar coin (reaching 4\target{4} steps backward), we need 4\holds{4} consecutive base cases:
12=4+4+413=4+4+514=4+5+515=5+5+5\displaystyle \begin{aligned} \holds{12} &= 4 + 4 + 4 \\ \holds{13} &= 4 + 4 + 5 \\ \holds{14} &= 4 + 5 + 5 \\ \holds{15} &= 5 + 5 + 5 \end{aligned}
For the inductive hypothesis, fix an integer k≥15\given{k} \ge 15 and assume every dollar amount from 12\holds{12} through k\given{k} can be made using 44-dollar and 55-dollar coins. (Watch out for the common mistake of checking only n=12n = 12 and setting k≥12\fails{k \ge 12}: stepping back 4\target{4} from k+1=13\target{k + 1 = 13} lands on 13−4=9\target{13} - \target{4} = \fails{9}, which is below 12\holds{12} and so not covered by the inductive hypothesis.) To make k+1\target{k + 1} dollars, step back by 4\target{4} to (k+1)−4=k−3\target{(k + 1)} - \target{4} = \given{k - 3}. Since k≥15\given{k} \ge 15, we have 12≤k−3≤k\holds{12} \le \given{k - 3} \le \given{k}, so by the inductive hypothesis we can make k−3\given{k - 3} dollars; adding one 44-dollar coin gives (k−3)+4=k+1\given{(k - 3)} + \target{4} = \target{k + 1} dollars. By strong induction, every integer amount n≥12n \ge 12 can be made.
2

A sequence is defined by a1=2a_1 = 2, a2=5a_2 = 5, and an=5an−1−6an−2a_n = 5a_{n-1} - 6a_{n-2} for all integers n≥3n \ge 3. Prove by strong induction that an=2n−1+3n−1a_n = 2^{n-1} + 3^{n-1} for every positive integer nn.

Look at the subscripts in ak+1=5ak−6ak−1\target{a_{k+1}} = 5a_k - 6a_{k-1}: how many earlier terms does ak+1\target{a_{k+1}} rely on, and what is the smallest kk for which both subscripts stay at or above 11?

Since the recurrence reaches 2\target{2} steps back, we check two base cases, n=1\holds{n = 1} and n=2\holds{n = 2}:
n=1:21−1+31−1=1+1=2=a1n=2:22−1+32−1=2+3=5=a2\displaystyle \begin{aligned} \holds{n = 1}: \quad \powtwo{2^{1-1}} + \powthree{3^{1-1}} &= 1 + 1 = 2 = a_1 \\ \holds{n = 2}: \quad \powtwo{2^{2-1}} + \powthree{3^{2-1}} &= 2 + 3 = 5 = a_2 \end{aligned}
For the inductive hypothesis, fix an integer k≥2\given{k} \ge 2 and assume aj=2j−1+3j−1\given{a_j} = \powtwo{2^{j-1}} + \powthree{3^{j-1}} holds for every integer jj with 1≤j≤k\holds{1} \le j \le \given{k}. (Watch out for checking only n=1n = 1 and setting k≥1k \ge 1: when k=1k = 1, the formula ak+1=5ak−6ak−1\target{a_{k+1}} = 5a_k - 6a_{k-1} asks for a0a_0, which does not exist.) Since k≥2\given{k} \ge 2, we have k+1≥3\target{k + 1} \ge 3, so ak+1=5ak−6ak−1\target{a_{k+1}} = 5\given{a_k} - 6\given{a_{k-1}} applies and both k\given{k} and k−1\given{k - 1} lie between 1\holds{1} and k\given{k}. By the inductive hypothesis,
ak+1\displaystyle \target{a_{k+1}} =5(2k−1+3k−1)−6(2k−2+3k−2)\displaystyle = 5(\powtwo{2^{k-1}} + \powthree{3^{k-1}}) - 6(\powtwo{2^{k-2}} + \powthree{3^{k-2}})
(Be careful not to subtract the coefficients 5−6=−15 - 6 = -1 directly on mismatched exponents like 5⋅2k−1−6⋅2k−25 \cdot \powtwo{2^{k-1}} - 6 \cdot \powtwo{2^{k-2}}, which gives the wrong answer −2k−1−3k−1-2^{k-1} - 3^{k-1}; split 6=3⋅26 = 3 \cdot 2 so the exponents match first.) Rewriting 6⋅2k−2=3⋅2k−16 \cdot \powtwo{2^{k-2}} = 3 \cdot \powtwo{2^{k-1}} and 6⋅3k−2=2⋅3k−16 \cdot \powthree{3^{k-2}} = 2 \cdot \powthree{3^{k-1}} gives
ak+1=(5−3)2k−1+(5−2)3k−1=2⋅2k−1+3⋅3k−1=2k+3k=2(k+1)−1+3(k+1)−1\displaystyle \begin{aligned} \target{a_{k+1}} &= (5 - 3)\powtwo{2^{k-1}} + (5 - 2)\powthree{3^{k-1}} \\ &= 2 \cdot \powtwo{2^{k-1}} + 3 \cdot \powthree{3^{k-1}} \\ &= \powtwo{2^k} + \powthree{3^k} = \powtwo{2^{(k+1)-1}} + \powthree{3^{(k+1)-1}} \end{aligned}
By strong induction, an=2n−1+3n−1a_n = 2^{n-1} + 3^{n-1} holds for all n≥1n \ge 1.
3

Prove by strong induction that every positive integer nn can be written as a sum of distinct powers of 22 (where 20=12^0 = 1).

Split the inductive step for k+1\target{k + 1} into two cases: when k+1\target{k + 1} is even and when k+1\target{k + 1} is odd. Then find which smaller number in the range 1\holds{1} to k\given{k} you can build each case from.

For the base case n=1\holds{n = 1}, we have 1=201 = 2^0, which is a single power of 22. For the inductive hypothesis, fix an integer k≥1\given{k} \ge 1 and assume every integer mm with 1≤m≤k\holds{1} \le m \le \given{k} can be written as a sum of distinct powers of 22. Now consider k+1\target{k + 1}:
If k+1\target{k + 1} is even, then m=k+12m = \given{\tfrac{k + 1}{2}} is an integer with 1≤m≤k\holds{1} \le m \le \given{k}. By the inductive hypothesis, k+12=2e1+2e2+⋯+2er\given{\tfrac{k + 1}{2}} = \given{2^{e_1}} + \given{2^{e_2}} + \dots + \given{2^{e_r}} for distinct exponents, so multiplying by 22 gives k+1=2e1+1+2e2+1+\target{k + 1} = \target{2^{e_1+1}} + \target{2^{e_2+1}} +{} ⋯+2er+1\dots + \target{2^{e_r+1}}, which are still distinct powers of 22.
If k+1\target{k + 1} is odd, then k\given{k} is an even integer in the range 1≤k≤k\holds{1} \le \given{k} \le \given{k}. By the inductive hypothesis, k\given{k} is a sum of distinct powers of 22. (Do not just add 20=1\target{2^0 = 1} without explaining why 20\target{2^0} isn't already in the sum for k\given{k}, or you could create duplicate 1+1\fails{1 + 1} terms: because k\given{k} is even and every power 21,22,…2^1, 2^2, \dots is even, the odd power 20=1\target{2^0 = 1} cannot be among the terms for k\given{k}.) Adding 20=1\target{2^0 = 1} to the sum for k\given{k} therefore expresses k+1\target{k + 1} as a sum of distinct powers of 22.
By strong induction, every positive integer nn can be written as a sum of distinct powers of 22.
4

You start with a single pile of n≥1n \ge 1 stones. At each step, you choose any pile of at least 22 stones, split it into two smaller piles of sizes AA and BB, and write the product A×BA \times B on the board, stopping when every stone is in a pile of size 11. Prove by strong induction that no matter how you split the piles, the sum of the products written on the board is always n(n−1)2\frac{n(n-1)}{2}.

After the first split of k+1\target{k + 1} stones writes A×B\target{A \times B} on the board, what does the strong induction hypothesis say the remaining splits of pile AA and pile BB will each add to the board?

For the base case n=1\holds{n = 1}, no splits are made, so the sum on the board is 0=1(1−1)2\holds{0} = \frac{1(1-1)}{2}. For the inductive hypothesis, fix an integer k≥1\given{k} \ge 1 and assume that for every pile size mm with 1≤m≤k\holds{1} \le m \le \given{k}, splitting mm stones down to single stones produces a sum of m(m−1)2\given{\frac{m(m-1)}{2}}. For a pile of k+1\target{k + 1} stones, the first split divides it into two piles of sizes AA and BB with A+B=k+1A + B = \target{k + 1} and 1≤A,B≤k\holds{1} \le A, B \le \given{k}, writing AB\target{AB} on the board. Since both AA and BB lie between 1\holds{1} and k\given{k}, the inductive hypothesis gives A(A−1)2\given{\frac{A(A-1)}{2}} and B(B−1)2\given{\frac{B(B-1)}{2}} for the remaining splits of the two piles. (Watch out for forgetting to include the initial product AB\target{AB} from the first split: adding only A(A−1)2+B(B−1)2\given{\frac{A(A-1)}{2}} + \given{\frac{B(B-1)}{2}} leaves the numerator short by 2AB\fails{2AB} and fails to factor as (A+B)2(A + B)^2.) Adding all three parts gives
Total sum=AB+A(A−1)2+B(B−1)2=2AB+A2−A+B2−B2=(A+B)2−(A+B)2=(k+1)k2\displaystyle \begin{aligned} \text{Total sum} &= \target{AB} + \given{\frac{A(A-1)}{2}} + \given{\frac{B(B-1)}{2}} \\ &= \frac{\target{2AB} + \given{A^2 - A} + \given{B^2 - B}}{2} \\ &= \frac{(A+B)^2 - (A+B)}{2} \\ &= \target{\frac{(k+1)k}{2}} \end{aligned}
By strong induction, the sum of the products is n(n−1)2\frac{n(n-1)}{2} for all n≥1n \ge 1.
5

Use the Well-Ordering Principle to prove that every positive fraction ab\tfrac{a}{b} (where aa and bb are positive integers) can be written in lowest terms, that is, as cd\tfrac{c}{d} for positive integers cc and dd with no common factor greater than 11.

To apply the Well-Ordering Principle, you need a set of positive integers, not fractions: define the failure set using the numerators aa of fractions ab\tfrac{a}{b} that cannot be written in lowest terms.

Suppose for contradiction that some positive fractions cannot be written in lowest terms, and let SS be the set of all positive integer numerators aa for which there exists a positive integer bb such that ab\tfrac{a}{b} cannot be written in lowest terms. (Do not apply the Well-Ordering Principle directly to the set of fractions ab\tfrac{a}{b} to claim there is a "smallest fraction": positive fractions have no smallest element, so you must apply Well-Ordering to the positive integer numerators aa.) Since SS is a non-empty set of positive integers, by the Well-Ordering Principle SS has a smallest element m\fails{m}, with some positive integer bb such that mb\tfrac{\fails{m}}{b} cannot be written in lowest terms. Then m\fails{m} and bb cannot already be in lowest terms, so they share a common factor g>1g > 1:
m\displaystyle \fails{m} =gm′andb\displaystyle = g\holds{m'} \quad \text{and} \quad b =gb′(1≤m′<m)\displaystyle = gb' \quad (1 \le \holds{m'} < \fails{m})
Because m′<m\holds{m'} < \fails{m} and m\fails{m} is the smallest element of SS, m′\holds{m'} cannot be in SS, so the fraction m′b′\tfrac{\holds{m'}}{b'} can be written in lowest terms as cd\holds{\tfrac{c}{d}}. Since mb=m′b′=cd\tfrac{\fails{m}}{b} = \tfrac{\holds{m'}}{b'} = \holds{\tfrac{c}{d}}, the fraction mb\tfrac{\fails{m}}{b} can also be written in lowest terms, contradicting our choice of m\fails{m}. Thus SS is empty, and every positive fraction can be written in lowest terms.
6

Use the Well-Ordering Principle to prove that there are no positive integers aa and bb satisfying a2=2b2a^2 = 2b^2.

Let m\fails{m} be the smallest positive integer aa for which a2=2b2a^2 = 2b^2 has a positive integer solution bb; use the fact that m2\fails{m}^2 is even to write m=2k\fails{m} = 2k and simplify the equation.

Suppose for contradiction that such positive integers exist, and let SS be the set of all positive integers aa for which there exists a positive integer bb with a2=2b2a^2 = 2b^2. Since SS is non-empty, by the Well-Ordering Principle SS has a smallest element m\fails{m}, so m2=2b2\fails{m}^2 = 2b^2 for some positive integer bb. Because m2=2b2\fails{m}^2 = 2b^2 is even, m\fails{m} must be even, so m=2k\fails{m} = 2k for some positive integer kk. (When substituting m=2k\fails{m} = 2k, be careful not to write (2k)2=2k2(2k)^2 = \fails{2k^2}, which cancels to k2=b2\fails{k^2 = b^2}; squaring both factors gives 4k24k^2.) Substituting m=2k\fails{m} = 2k into m2=2b2\fails{m}^2 = 2b^2 gives
(2k)2=2b24k2=2b2b2=2k2\displaystyle \begin{aligned} (2k)^2 &= 2b^2 \\ 4k^2 &= 2b^2 \\ \fails{b}^2 &= 2k^2 \end{aligned}
Thus b\fails{b} is also a positive integer in SS. Since m2=2b2>b2\fails{m}^2 = 2\fails{b}^2 > \fails{b}^2, we have b<m\fails{b} < \fails{m}, contradicting that m\fails{m} is the smallest element of SS. Therefore, SS is empty and no positive integers aa and bb satisfy a2=2b2a^2 = 2b^2.