Natural numbers and mathematical induction [01FG]
- October 31, 2026
- Marcelo Fiore, Jon Sterling
Several lectures ago, we introduced the natural numbers and identified two distinct ways of thinking about them: as a subset of the integers, and in their own terms as an algebra generated from a single element by successive increments. The latter description endows the naturals with their main reasoning principle, that of mathematical induction.
Principle of Mathematical Induction [01FH]
- October 31, 2026
- Marcelo Fiore, Jon Sterling
Let P be a predicate ranging over the natural numbers, so that P{\mathopen {}\left (n\right )\mathclose {}} is a statement for each n:\mathbb {N}. If:
- the statement P{\mathopen {}\left (0\right )\mathclose {}} holds, and
- the statement \forall n:\mathbb {N}\mathpunct {.} {\mathopen {}\left (P{\mathopen {}\left (n\right )\mathclose {}}\implies P{\mathopen {}\left (n+1\right )\mathclose {}}\right )\mathclose {}} also holds,
Equivalent formulation of mathematical induction [01FI]
- October 31, 2026
- Jon Sterling
Let S\subseteq \mathbb {N} be a subset of the natural numbers. If 0\in S and \forall n\in S\mathpunct {.} n+1\in S holds, then S = \mathbb {N}.
Justification.
- October 31, 2026
- Jon Sterling
This is a special case of ordinary mathematical induction, because given a subset S\subseteq \mathbb {N} we may consider the predicate P{\mathopen {}\left (n\right )\mathclose {}}={\mathopen {}\left (n\in S\right )\mathclose {}}. Conversely, given a predicate P we may consider the subset comprehension {\mathopen {}\left \{x:\mathbb {N}\,\middle \vert \,P{\mathopen {}\left (x\right )\mathclose {}}\right \}\mathclose {}}.
It is sometimes more intuitive to think about things in terms of subsets, and vice versa.
A proof pattern for using mathematical induction [01FJ]
- October 31, 2026
- Marcelo Fiore, Jon Sterling
If your goal is to prove \forall n:\mathbb {N}\mathpunct {.} P{\mathopen {}\left (n\right )\mathclose {}} and you plan to use mathematical induction to prove it, then you should literally do exactly as I say below on your paper:
- Write “To prove that P holds for all n:\mathbb {N}, we will use mathematical induction”. You must make clear exactly what predicate P you are proving by induction. If you don’t, I will assume you don’t know.
- Write “In the base case, we show that P{\mathopen {}\left (0\right )\mathclose {}} holds by…” (and fill in the proof).
- Write “In the inductive step, we show that for all n:\mathbb {N}, if P{\mathopen {}\left (n\right )\mathclose {}} holds then P{\mathopen {}\left (n+1\right )\mathclose {}} holds.” (And then give a proof of that claim.) When proving this, you may refer to the assumption that P{\mathopen {}\left (n\right )\mathclose {}} holds as your induction hypothesis.
- Write “We conclude that P{\mathopen {}\left (n\right )\mathclose {}} holds for all n.”
Example Proving the binomial theorem by mathematical induction [01FM]
- October 31, 2026
- Marcelo Fiore, Jon Sterling
Theorem The Binomial Theorem [01BG]
- September 29, 2026
- Marcelo Fiore, Jon Sterling
Let x,y be elements of a commutative semiring {\mathopen {}\left (A,+,0,\cdot ,1\right )\mathclose {}}. For all n\in \mathbb {N}, we have {\mathopen {}\left (x+y\right )\mathclose {}}^n = \sum _{k=0}^n \binom {n}{k}\cdot x^{n-k}\cdot y^k \text {.}
Lemma A useful identity for binomial coefficients [01FL]
- October 31, 2026
- Marcelo Fiore
For any natural numbers n and k, we have \binom {n+1}{k} = \binom {n}{k} + \binom {n}{k-1}
After attempting to prove this yourself, you may click this text to see my proof.
Proof.
- October 31, 2026
- Marcelo Fiore
The combination on the left represents the process of choosing k members of a set of n+1 elements. There are two possibilities:
- We ignore the last element, so we in fact choose k elements from among n elements.
- We do choose the last element, and so it remains to choose k-1 elements from among the remaining n elements.
Summing these two possibilities gives exactly the right-hand side.
Proof of the binomial theorem [01FK]
- October 31, 2026
- Marcelo Fiore, Jon Sterling
Let x,y be elements of a commutative semiring {\mathopen {}\left (A,+,0,\cdot ,1\right )\mathclose {}}. We let P be the following predicate on the natural numbers:
P{\mathopen {}\left (n\right )\mathclose {}} \Longleftrightarrow {\mathopen {}\left (x+y\right )\mathclose {}}^n = \sum _{k=0}^n \binom {n}{k}\cdot x^{n-k}\cdot y^kWe will prove \forall n:\mathbb {N}\mathpunct {.} P{\mathopen {}\left (n\right )\mathclose {}} using the principle of mathematical induction.
- In the base case, we verify P{\mathopen {}\left (0\right )\mathclose {}} as follows: {\mathopen {}\left (x+y\right )\mathclose {}}^0 = 1 = \binom {0}{0}\cdot x^0\cdot y^0 = \sum _{k=0}^0 \binom {0}{k}\cdot x^{0-k}\cdot y^k
- In the inductive step, we fix n:\mathbb {N} and assume that {\mathopen {}\left (x+y\right )\mathclose {}}^n = \sum _{k=0}^n \binom {n}{k}\cdot x^{n-k} \cdot y^k and we must prove {\mathopen {}\left (x+y\right )\mathclose {}}^{n+1} = \sum _{k=0}^{n+1} \binom {n+1}{k}\cdot x^{{\mathopen {}\left (n+1\right )\mathclose {}}-k} \cdot y^k \text {.} We calculate as follows: \begin {aligned} &\sum _{k=0}^{n+1}\binom {n+1}{k}\cdot x^{{\mathopen {}\left (n+1\right )\mathclose {}}-k}\cdot y^k \\ &\quad = x^{n+1} + {\mathopen {}\left ( \sum _{k=1}^n \binom {n+1}{k}\cdot x^{n-k+1}\cdot y^k \right )\mathclose {}} + y^{n+1} \end {aligned} Now we apply a useful identity: \begin {aligned} &\quad = x^{n+1} + {\mathopen {}\left ( \sum _{k=1}^n {\mathopen {}\left (\binom {n}{k}+\binom {n}{k-1}\right )\mathclose {}} \cdot x^{n-k+1}\cdot y^k \right )\mathclose {}} + y^{n+1} \\ &\quad = x^{n+1}+{\mathopen {}\left ( \sum _{k=1}^n \binom {n}{k} \cdot x^{n-k+1} \cdot y^k \right )\mathclose {}}+{\mathopen {}\left ( \sum _{k=1}^n \binom {n}{k-1} \cdot x^{n-k+1} \cdot y^k \right )\mathclose {}} + y^{n+1} \\ &\quad = {\mathopen {}\left ( \sum _{k=0}^n \binom {n}{k} \cdot x^{n-k+1} \cdot y^k \right )\mathclose {}}+{\mathopen {}\left ( \sum _{j=0}^n \binom {n}{j} \cdot x^{n-j} \cdot y^{j+1} \right )\mathclose {}} \\ &\quad = x\cdot {\mathopen {}\left ( \sum _{k=0}^n \binom {n}{k} \cdot x^{n-k} \cdot y^k \right )\mathclose {}} + y\cdot {\mathopen {}\left ( \sum _{j=0}^n \binom {n}{j} \cdot x^{n-j} \cdot y^{j} \right )\mathclose {}} \\ &\quad = {\mathopen {}\left (x+y\right )\mathclose {}}\cdot \sum _{i=0}^n\binom {n}{i}\cdot x^{n-i}\cdot y^i \end {aligned} By our induction hypothesis, we have: \begin {aligned} {\mathopen {}\left (x+y\right )\mathclose {}}\cdot \sum _{i=0}^n\binom {n}{i}\cdot x^{n-i}\cdot y^i &= {\mathopen {}\left (x+y\right )\mathclose {}}\cdot {\mathopen {}\left (x+y\right )\mathclose {}}^n \\ &= {\mathopen {}\left (x+y\right )\mathclose {}}^n \end {aligned}
Replacing unrigorous “iteration” with induction [01FN]
- October 31, 2026
- Marcelo Fiore, Jon Sterling
Recall below our proof of the many dropout lemma, which was one of the ingredients to Fermat’s little theorem:
Proposition The Many Dropout Lemma [01BJ]
- September 29, 2026
- Marcelo Fiore, Jon Sterling
For all natural numbers m and i and primes p, we have (m+i)^p \equiv m^p+i\mod p\text {.}
Proof.
- September 29, 2026
- Marcelo Fiore, Jon Sterling
We note that any natural number i may be rewritten as a sum of ones:
i = \sum _{k=1}^i 1Therefore by i-many applications of the dropout lemma, we have (m+i)^p \equiv m^p + \sum _{k=1}^i1 \equiv m^p + i \mod p\text {.}
In the proof above, where we say “by i-many applications of the dropout lemma, we have…” we were a bit unrigorous. If someone asks you what is going on there, you might say, “Think about it! It’s true!” but that is not a rigorous proof. To give a rigorous proof, we use mathematical induction.
Proof A rigorous proof of the many dropout lemma [01FO]
- October 31, 2026
- Marcelo Fiore, Jon Sterling
We fix a natural number m and a prime p. Let P be the following predicate on the naturals:
P{\mathopen {}\left (i\right )\mathclose {}} \Longleftrightarrow {\mathopen {}\left (m+i\right )\mathclose {}}^p \equiv m^p + i \mod pWe will prove that P holds for all i:\mathbb {N} using the principle of mathematical induction.
- In the base case, we see that P{\mathopen {}\left (0\right )\mathclose {}} holds immediately because {\mathopen {}\left (m+0\right )\mathclose {}}^p = m^p = m^p+0.
- In the inductive step, we fix i: \mathbb {N} such that P{\mathopen {}\left (i\right )\mathclose {}} holds and we must show P{\mathopen {}\left (i+1\right )\mathclose {}}. In other words, we assume {\mathopen {}\left (m+i\right )\mathclose {}}^p \equiv m^p+i \mod p and must show {\mathopen {}\left (m+i+1\right )\mathclose {}}^p\equiv m^p+i+1 \mod p\text {.} Using the dropout lemma followed by our induction hypothesis, we have: \begin {aligned} {\mathopen {}\left (m+i+1\right )\mathclose {}}^p &\equiv {\mathopen {}\left (m+i\right )\mathclose {}}^p+1 &&\mod p \\ &\equiv m^p+i+1 &&\mod p \end {aligned}
Derived induction principles [01FP]
- October 31, 2026
- Marcelo Fiore, Jon Sterling
Induction from a basis [01FQ]
- October 31, 2026
- Marcelo Fiore, Jon Sterling
Let P be a predicate ranging over natural numbers greater than or equal to a fixed natural number \ell :\mathbb {N}, so that P{\mathopen {}\left (m\right )\mathclose {}} is a meaningful statement for each for each m\geq l. How would we go about proving that P holds for all m\geq \ell ?
The trick is to extend P to a predicate over all the natural numbers by shifting the number line to start at \ell . Then ordinary mathematical induction will do the job! Define P_\ell as a predicate on the naturals as follows:
P_\ell {\mathopen {}\left (m\right )\mathclose {}} \Longleftrightarrow P{\mathopen {}\left (\ell +m\right )\mathclose {}}Evidently, proving P_\ell {\mathopen {}\left (0\right )\mathclose {}},P_\ell {\mathopen {}\left (1\right )\mathclose {}},P_\ell {\mathopen {}\left (2\right )\mathclose {}},\ldots is the same as proving P{\mathopen {}\left (\ell \right )\mathclose {}}, P{\mathopen {}\left (\ell +1\right )\mathclose {}}, P{\mathopen {}\left (\ell +2\right )\mathclose {}}, etc. We can abstract this into a new “derived” induction principle, which we will call the principle of induction from basis \ell . To do this, we notice the following logical equivalences for the base case, inductive step, and goal:
- Base case: P_\ell {\mathopen {}\left (0\right )\mathclose {}}\Longleftrightarrow P{\mathopen {}\left (\ell \right )\mathclose {}}
- Inductive step: \begin {aligned} &{\mathopen {}\left ( \forall n:\mathbb {N}\mathpunct {.} {\mathopen {}\left ( P_\ell {\mathopen {}\left (n\right )\mathclose {}}\implies P_\ell {\mathopen {}\left (n+1\right )\mathclose {}} \right )\mathclose {}} \right )\mathclose {}} \\ &\Longleftrightarrow {\mathopen {}\left ( \forall n\geq \ell \mathpunct {.} {\mathopen {}\left (P{\mathopen {}\left (n\right )\mathclose {}}\implies P{\mathopen {}\left (n+1\right )\mathclose {}}\right )\mathclose {}} \right )\mathclose {}} \end {aligned}
- Goal: {\mathopen {}\left ( \forall m:\mathbb {N}\mathpunct {.} P_\ell {\mathopen {}\left (m\right )\mathclose {}} \right )\mathclose {}} \Longleftrightarrow {\mathopen {}\left ( \forall m \geq \ell \mathpunct {.} P{\mathopen {}\left (m\right )\mathclose {}} \right )\mathclose {}}
Therefore, the principle of induction from basis \ell says that to prove \forall m \geq l\mathpunct {.} P{\mathopen {}\left (m\right )\mathclose {}} it suffices to show:
- Base case: P{\mathopen {}\left (\ell \right )\mathclose {}}, and
- Inductive step: for any n \geq l such that P{\mathopen {}\left (n\right )\mathclose {}} holds, we have P{\mathopen {}\left (n+1\right )\mathclose {}}.
Of course, when \ell =0 we just get ordinary mathematical induction.
Strong induction, from a basis [01FR]
- October 31, 2026
- Marcelo Fiore, Jon Sterling
Let P be a predicate on natural numbers greater than or equal to a fixed number l:\mathbb {N}. We now consider the following derived predicate P^\sharp , again ranging over naturals greater than or equal to \ell :
P^\sharp {\mathopen {}\left (m\right )\mathclose {}} = \forall k:{\mathopen {}\left [\ell \ldots m\right ]\mathclose {}}\mathpunct {.} P{\mathopen {}\left (k\right )\mathclose {}}We now analysis the principle of induction from basis \ell for P^\sharp solely in terms of P:
- Base case: P^\sharp {\mathopen {}\left (\ell \right )\mathclose {}}\Longleftrightarrow P{\mathopen {}\left (\ell \right )\mathclose {}}
- Inductive step \begin {aligned} &{\mathopen {}\left ( \forall n\geq \ell \mathpunct {.} {\mathopen {}\left ( P^\sharp {\mathopen {}\left (n\right )\mathclose {}} \implies P^\sharp {\mathopen {}\left (n+1\right )\mathclose {}} \right )\mathclose {}} \right )\mathclose {}} \\ &\Longleftrightarrow {\mathopen {}\left ( \forall n \geq \ell \mathpunct {.} {\mathopen {}\left (\forall k:{\mathopen {}\left [\ell \ldots n\right ]\mathclose {}}\mathpunct {.} P{\mathopen {}\left (k\right )\mathclose {}}\right )\mathclose {}} \implies P{\mathopen {}\left (n+1\right )\mathclose {}} \right )\mathclose {}} \end {aligned}
- Goal {\mathopen {}\left ( \forall m \geq \ell \mathpunct {.} P^\sharp {\mathopen {}\left (m\right )\mathclose {}} \right )\mathclose {}} \Longleftrightarrow {\mathopen {}\left ( \forall m\geq l\mathpunct {.}P{\mathopen {}\left (m\right )\mathclose {}} \right )\mathclose {}}
We call the induction principle thus derived the principle of strong induction (from basis \ell ). It says that to prove \forall m \geq l\mathpunct {.} P{\mathopen {}\left (m\right )\mathclose {}} it suffices to show:
- Base case: P{\mathopen {}\left (\ell \right )\mathclose {}}, and
- Inductive step: for any n\geq l such that P{\mathopen {}\left (k\right )\mathclose {}} holds for all k:{\mathopen {}\left [l\ldots n\right ]\mathclose {}}, we have P{\mathopen {}\left (k+1\right )\mathclose {}}.
In practice, we mainly will need strong induction from basis 0, which is just called “strong induction”.
What good is strong induction? [01FS]
- October 31, 2026
- Jon Sterling
Why would you want to use strong induction? Because sometimes in the middle of an inductive proof, you don’t have a strong enough inductive hypothesis: you want to know that P holds of some number smaller than the current index n, but you in fact only know it for n. Many students just pretend that it must also hold for all smaller numbers, but that is not valid and will merit little or no credit: if you need an induction hypothesis that covers smaller n, then you must explicitly use strong induction.