Induction proves a family of statements by showing how an established case supports later cases. It does not mean checking many examples and guessing that the pattern continues. The main work is choosing the statement precisely, supplying enough initial cases, and proving a step whose dependencies are all justified.

We use N={0,1,2,…}\mathbb N=\{0,1,2,\ldots\} throughout. A theorem beginning at 11 proves a claim for n≥1n\ge1; it does not establish the n=0n=0 case unless that case is supplied separately. Ordinary and strong induction are equivalent principles with different convenient forms of hypothesis [1][1] Z. Abel, B. Chapman, and E. Demaine, “Lecture 03: Casework and Strong Induction,” 2024. MIT 6.1200J/18.062J, Mathematics for Computer Science; revised February 14, 2024. https://ocw.mit.edu/courses/6-1200j-mathematics-for-computer-science-spring-2024/mit6_1200j_s24_lec03.pdf.

State the principle with its starting index

TheoremOrdinary induction

Fix n0∈Nn_0\in\mathbb N and a statement P(n)P(n) for each integer n≥n0n\ge n_0. Suppose:

  1. P(n0)P(n_0) holds.
  2. For every integer k≥n0k\ge n_0, P(k)P(k) implies P(k+1)P(k+1).

Then P(n)P(n) holds for every integer n≥n0n\ge n_0.

We take induction as an available principle of the natural numbers. One can justify a formulation from another characterization, such as well-ordering, but that characterization must first be established.

The inductive step is a conditional proof: fix an arbitrary k≥n0k\ge n_0, temporarily assume P(k)P(k), and establish P(k+1)P(k+1). We are not assuming that some convenient kk exists, and we are not assuming the entire conclusion for every kk. The base case supplies the start; the step supplies every transition afterward.

An ordinary induction with a visible use of the hypothesis

PropositionThe sum of the first positive integers

For every integer n≥1n\ge1,

∑i=1ni=n(n+1)2.\sum_{i=1}^{n}i=\frac{n(n+1)}2.

The sum notation means adding the indicated terms, one for each integer index from 11 through nn. To extend the sum from kk terms to k+1k+1 terms, separate the last term. That creates the exact expression to which the hypothesis applies.

Proof

For n=1n=1, both sides equal 11. Fix an arbitrary k≥1k\ge1 and assume

∑i=1ki=k(k+1)2.\sum_{i=1}^{k}i=\frac{k(k+1)}2.

Then

∑i=1k+1i=∑i=1ki+(k+1)=k(k+1)2+(k+1)=(k+1)(k+2)2.\begin{aligned} \sum_{i=1}^{k+1}i &=\sum_{i=1}^{k}i+(k+1)\\ &=\frac{k(k+1)}2+(k+1)\\ &=\frac{(k+1)(k+2)}2. \end{aligned}

The second equality uses the inductive hypothesis. The last expression is the required formula with n=k+1n=k+1. Therefore induction proves the statement for all integers n≥1n\ge1.

Before simplifying, write down the target for k+1k+1. This makes it easier to detect an omitted last term or a final expression that still has the wrong index. A proof verifies a proposed formula; discovering the formula may require examples or a separate argument.

Strong induction: use whichever smaller cases are needed

TheoremStrong induction

Fix n0∈Nn_0\in\mathbb N. Prove P(n0)P(n_0). For every k≥n0k\ge n_0, prove P(k+1)P(k+1) under the hypothesis that P(j)P(j) holds for all integers n0≤j≤kn_0\le j\le k. Then P(n)P(n) holds for every integer n≥n0n\ge n_0.

Strong induction is convenient when the next instance depends on several earlier indices, or on an index not known until the object is decomposed. It is not stronger in what it can prove. To recover it from ordinary induction, apply ordinary induction to the strengthened statement “P(j)P(j) holds for every n0≤j≤nn_0\le j\le n.” Conversely, a strong hypothesis always includes the immediately preceding instance needed by ordinary induction.

What an induction step may use. Both induction principles prove the same conclusion; they differ in the hypotheses available at each step.

What an induction step may use. Both induction principles prove the same conclusion; they differ in the hypotheses available at each step.

PropositionEvery integer at least two is a product of primes

For every integer n≥2n\ge2, nn can be written as a finite product of prime numbers. A single prime counts as a product with one factor.

Proof

For n=2n=2, the claim holds because 22 is prime. Fix k≥2k\ge2 and assume the claim for all integers from 22 through kk. Consider k+1k+1.

If k+1k+1 is prime, the one-factor representation suffices. If it is composite, write k+1=abk+1=ab with 2≤a,b<k+12\le a,b<k+1. The strong hypothesis applies to both aa and bb, so each is a product of primes. Multiplying those two representations gives the required representation of k+1k+1.

Induction proves the claim for every n≥2n\ge2.

The factors need not equal kk, which is why having all smaller cases available is convenient. This establishes existence of a prime factorization, not uniqueness; uniqueness is a separate theorem.

Recurrences tell us how many base cases are needed

ExampleA recurrence using two earlier terms

Suppose a0=4a_0=4, a1=6a_1=6, and

an+1=2an−an−1(n≥1).a_{n+1}=2a_n-a_{n-1}\qquad(n\ge1).

The first terms suggest an=2n+4a_n=2n+4. Because the recurrence uses two preceding terms, both starting values need checking.

Proof

The formula holds for n=0n=0 and n=1n=1. Fix k≥1k\ge1 and assume it holds for every index from 00 to kk. In particular, it holds at kk and k−1k-1, so

ak+1=2(2k+4)−(2(k−1)+4)=2k+6=2(k+1)+4.\begin{aligned} a_{k+1}&=2(2k+4)-\bigl(2(k-1)+4\bigr)\\ &=2k+6\\ &=2(k+1)+4. \end{aligned}

Thus the formula holds for all n≥0n\ge0 by strong induction with the two checked initial cases.

One may instead use ordinary induction on a statement containing two consecutive identities. The useful question is which earlier facts a step consumes, not whether its heading says “ordinary” or “strong.” The restriction k≥1k\ge1 keeps the reference to ak−1a_{k-1} inside the defined sequence.

Diagnose gaps before doing more algebra

GapWhy the argument fails
Only the base case is shownNo transition reaches larger indices
Only the inductive implication is shownA chain of implications may have no true starting case
The step assumes P(k+1)P(k+1)The target has been used as an unproved premise
The step proves P(k)→P(k+2)P(k)\to P(k+2)One base case reaches only one parity class
The step uses P(k−1)P(k-1) at k=0k=0It calls a case outside the available range
The step works only after an extra thresholdAll earlier indices up to that threshold need coverage

For example, let P(n)P(n) be “nn is even.” Both P(0)P(0) and the implication P(k)→P(k+2)P(k)\to P(k+2) hold, but they do not prove every natural number even. Missing reachability, rather than difficult arithmetic, is the problem.

Induction can also prove inequalities, divisibility, or properties of recursively defined objects. The object must reduce according to an appropriate well-founded structure; the natural-number principles here are not automatically proofs over arbitrary real numbers. For an algorithm, correctness and termination may require separate arguments even when both use induction.

Exercises: ordinary induction and counting

ExerciseThe first odd numbers

For every n∈Nn\in\mathbb N, prove

∑i=1n(2i−1)=n2.\sum_{i=1}^{n}(2i-1)=n^2.

Use the convention that the empty sum at n=0n=0 equals zero. Decide whether ordinary induction is sufficient.

Show solution
Solution

At n=0n=0, both sides are zero. Assume the formula at an arbitrary k≥0k\ge0. The next term is 2(k+1)−1=2k+12(k+1)-1=2k+1, so

∑i=1k+1(2i−1)=k2+(2k+1)=(k+1)2.\sum_{i=1}^{k+1}(2i-1)=k^2+(2k+1)=(k+1)^2.

Only the immediately preceding sum was used, so ordinary induction suffices. The last term for k+1k+1 terms is 2k+12k+1, not 2k+32k+3.

ExerciseSquare sums and the checkerboard

Prove, for integers n≥1n\ge1,

∑i=1ni2=n(n+1)(2n+1)6.\sum_{i=1}^{n}i^2=\frac{n(n+1)(2n+1)}6.

Use it to count all axis-aligned squares whose edges follow the grid lines of an nn-by-nn checkerboard.

Show solution
Solution

The base case n=1n=1 gives 11. Assuming the formula at k≥1k\ge1, add the next square:

∑i=1k+1i2=k(k+1)(2k+1)6+(k+1)2=(k+1)(2k2+7k+6)6=(k+1)(k+2)(2k+3)6.\begin{aligned} \sum_{i=1}^{k+1}i^2 &=\frac{k(k+1)(2k+1)}6+(k+1)^2\\ &=\frac{(k+1)(2k^2+7k+6)}6\\ &=\frac{(k+1)(k+2)(2k+3)}6. \end{aligned}

This is the required formula at k+1k+1. A square of side length ss grid units has (n−s+1)2(n-s+1)^2 possible positions, so the total is

∑s=1n(n−s+1)2=∑i=1ni2.\sum_{s=1}^{n}(n-s+1)^2=\sum_{i=1}^{n}i^2.

For an 88-by-88 board this equals 8⋅9⋅17/6=2048\cdot9\cdot17/6=204. Restricting the count to grid-aligned squares specifies exactly which objects are being counted.

ExerciseSquares of odd numbers

For n∈Nn\in\mathbb N, prove

∑i=1n(2i−1)2=n(2n−1)(2n+1)3.\sum_{i=1}^{n}(2i-1)^2=\frac{n(2n-1)(2n+1)}3.
Show solution
Solution

The case n=0n=0 has both sides zero. If the formula holds at k≥0k\ge0, adding (2k+1)2(2k+1)^2 gives

k(2k−1)(2k+1)3+(2k+1)2=(2k+1)(2k2+5k+3)3=(k+1)(2k+1)(2k+3)3.\begin{aligned} \frac{k(2k-1)(2k+1)}3+(2k+1)^2 &=\frac{(2k+1)(2k^2+5k+3)}3\\ &=\frac{(k+1)(2k+1)(2k+3)}3. \end{aligned}

This is the formula at k+1k+1, completing the induction.

ExerciseAn inequality

Prove 2n≥n+12^n\ge n+1 for every n∈Nn\in\mathbb N.

Show solution
Solution

At n=0n=0, both sides equal 11. Assume 2k≥k+12^k\ge k+1 with k≥0k\ge0. Multiplying by the positive number 22 preserves the inequality, so

2k+1≥2(k+1)≥k+2.2^{k+1}\ge2(k+1)\ge k+2.

The second inequality uses k≥0k\ge0. The last bound is the target at k+1k+1, so induction applies.

Exercises: preserve parameters and indices

ExerciseA telescoping sum can also be proved inductively

For n≥1n\ge1, prove

∑i=1n1(2i−1)(2i+1)=n2n+1.\sum_{i=1}^{n}\frac1{(2i-1)(2i+1)}=\frac{n}{2n+1}.
Show solution
Solution

The base case gives 1/31/3. At the next index, use the hypothesis and combine fractions:

k2k+1+1(2k+1)(2k+3)=2k2+3k+1(2k+1)(2k+3)=k+12k+3.\begin{aligned} \frac{k}{2k+1}+\frac1{(2k+1)(2k+3)} &=\frac{2k^2+3k+1}{(2k+1)(2k+3)}\\ &=\frac{k+1}{2k+3}. \end{aligned}

This is the target at k+1k+1. Alternatively,

1(2i−1)(2i+1)=12(12i−1−12i+1)\frac1{(2i-1)(2i+1)} =\frac12\left(\frac1{2i-1}-\frac1{2i+1}\right)

makes the finite sum telescope directly. The two methods establish the same identity using different organizations.

ExerciseKeep one parameter fixed

Fix an integer q≥0q\ge0. For every integer n≥1n\ge1, prove

∑j=1nj(j+1)⋯(j+q)=n(n+1)⋯(n+q+1)q+2.\sum_{j=1}^{n}j(j+1)\cdots(j+q) =\frac{n(n+1)\cdots(n+q+1)}{q+2}.

When q=0q=0, the summand is just jj.

Show solution
Solution

Hold qq fixed throughout the induction on nn. At n=1n=1, cancellation of q+2q+2 on the right gives 1⋅2⋯(q+1)1\cdot2\cdots(q+1), the left side. If the formula holds at kk, factor the new sum as

k(k+1)⋯(k+q+1)q+2+(k+1)⋯(k+q+1)=(k+1)⋯(k+q+1)(kq+2+1)=(k+1)⋯(k+q+2)q+2.\begin{aligned} &\frac{k(k+1)\cdots(k+q+1)}{q+2} +(k+1)\cdots(k+q+1)\\ &\qquad=(k+1)\cdots(k+q+1) \left(\frac{k}{q+2}+1\right)\\ &\qquad=\frac{(k+1)\cdots(k+q+2)}{q+2}. \end{aligned}

The denominator is nonzero because q≥0q\ge0, and the result is the target at k+1k+1. Since the fixed qq was arbitrary, the identity holds for every allowed parameter.

ExerciseA weighted geometric sum

Fix a real number r≠1r\ne1. Prove for all n∈Nn\in\mathbb N that

∑j=0n(j+1)rj=[(r−1)n+(r−2)]rn+1+1(r−1)2.\sum_{j=0}^{n}(j+1)r^j =\frac{[(r-1)n+(r-2)]r^{n+1}+1}{(r-1)^2}.

The constant term is 11, including when r=0r=0. Recover the cases r=2r=2 and r=3r=3, and handle r=1r=1 separately.

Show solution
Solution

At n=0n=0, the right numerator is (r−2)r+1=(r−1)2(r-2)r+1=(r-1)^2, giving 11. Define Ak=(r−1)k+(r−2)A_k=(r-1)k+(r-2). The coefficient identity

Ak+1r−Ak=(k+2)(r−1)2A_{k+1}r-A_k=(k+2)(r-1)^2

follows by expansion. Write SnS_n for the sum on the left. Under the inductive hypothesis at k≥0k\ge0,

Sk=Akrk+1+1(r−1)2.S_k=\frac{A_k r^{k+1}+1}{(r-1)^2}.

The new term is (k+2)rk+1(k+2)r^{k+1}. Substituting this expression for SkS_k and using the coefficient identity gives

Sk+1=Sk+(k+2)rk+1=Ak+1rk+2+1(r−1)2.\begin{aligned} S_{k+1}&=S_k+(k+2)r^{k+1}\\ &=\frac{A_{k+1}r^{k+2}+1}{(r-1)^2}. \end{aligned}

This is the formula at k+1k+1. In particular,

∑j=0n(j+1)2j=n2n+1+1,\sum_{j=0}^{n}(j+1)2^j=n2^{n+1}+1,∑j=0n(j+1)3j=(2n+1)3n+1+14.\sum_{j=0}^{n}(j+1)3^j=\frac{(2n+1)3^{n+1}+1}{4}.

For r=1r=1, use the direct integer-sum formula to obtain (n+1)(n+2)/2(n+1)(n+2)/2; substituting into the displayed quotient would divide by zero. The proof also fixes a common indexing error: the added coefficient is k+2k+2, not k+1k+1.

Continue from the proof to the structure

For each induction, state the precise range, identify the base cases, and name the earlier instances consumed by the step. Number Systems, Algorithms, and Recursion connects these dependencies to recursive definitions; Sets, Functions, Sequences, and Summation develops the notation used in the examples.

References

  1. [1] Z. Abel, B. Chapman, and E. Demaine, “Lecture 03: Casework and Strong Induction,” 2024. MIT 6.1200J/18.062J, Mathematics for Computer Science; revised February 14, 2024. https://ocw.mit.edu/courses/6-1200j-mathematics-for-computer-science-spring-2024/mit6_1200j_s24_lec03.pdf ↩