In mathematics and theoretical computer science, we often observe patterns across numbers and wish to prove that a given formula or property holds for every positive integer without exception.
Francesco Maurolico (1494–1575) first devised the method of mathematical induction and applied it to prove that the sum of the first odd positive integers equals . In modern computer science, mathematical induction plays a pivotal role in designing, verifying, and analyzing algorithms for correctness and computational complexity.
The Danger of Incomplete Induction: Euler's Counterexample
A single counterexample is sufficient to disprove any mathematical conjecture.
Consider the quadratic expression proposed by Leonhard Euler (1707–1783):
Let us evaluate for the first several natural numbers:
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 41 | 43 | 47 | 53 | 61 | 71 | 83 | 97 | 113 | 131 | 151 |
Every single one of these values is a prime number! In fact, yields a prime number for all integers from up to .
However, when we test :
which is clearly composite! Thus, testing special cases—no matter how many succeed—never constitutes a mathematical proof. A rigorous deductive technique is required: Mathematical Induction.