How to Use Induction in a Proof About Prime Numbers
At a glance
- 1. Choose a precise claim
Induction applies to a statement indexed by every integer in a sequence, not just to the scattered prime numbers.
- 2. Check the base case
For the prime-factorization theorem, start at 2, which is itself prime.
- 3. Assume earlier cases
Use strong induction: assume the claim holds for every integer from 2 up to n.
- 4. Split composite numbers
If n+1 is composite, write it as a product of two smaller integers and apply the induction hypothesis.
- 5. Finish the case
If n+1 is prime, it is already a prime factorization with one factor.
The phrase “proof by induction with a prime number” does not specify a single theorem. One standard result that combines induction and primes is the existence part of the fundamental theorem of arithmetic: every integer greater than 1 can be written as a product of primes. The proof uses strong induction, because a composite number can be split into smaller integers.
This proves existence of a prime factorization; it does not by itself prove that the factorization is unique. It also illustrates an important point: induction is usually performed over consecutive integers, not over the prime numbers alone.
The statement to prove
For each integer , let be the statement:
is a product of one or more prime numbers.
A prime number counts as a product with just one factor. For example, is the product consisting of the single prime .
We will prove for all integers by strong induction.
Proof by strong induction
Base case: . The number is prime, so it is already a product of primes. Thus holds.
Induction hypothesis. Fix an integer and assume that holds for every integer with . In other words, assume every integer from through is a product of primes.
Induction step. Consider .
- If is prime, it is itself a product of primes, so holds.
- If is composite, then there are integers such that
with and . The upper bounds follow because each factor is at least , so neither factor can equal or exceed . By the induction hypothesis, both and can be written as products of primes. Multiplying those two prime products gives a prime product equal to . Therefore holds.
In either case, follows from the induction hypothesis. Strong induction now gives for every integer .
Worked example: factoring 12 within the proof
The induction step does not require you to guess a prime factorization of immediately. It is enough to split a composite number into smaller factors.
For , write
Both factors are smaller than and at least . The induction hypothesis says that each has a prime factorization: is prime, and . Combining them gives
All the factors are prime, as required. The argument works for any composite : its factors are smaller, so the induction hypothesis covers them.
Why strong induction is useful here
Ordinary induction assumes only that is true when proving . That is not enough for the factorization argument: a factor of might be much smaller than , rather than equal to . Strong induction lets you use the claim for every smaller integer, which is exactly what the proof needs.
You can also formulate this with ordinary induction by proving a stronger statement or by adjusting the induction step, but strong induction is the direct and clearest method.
Common mistakes
- Inducting only over primes. Prime numbers are not consecutive: for instance, the prime after is . A usual induction step from one prime to the “next prime” does not automatically cover composite integers in between. If your claim concerns only primes, it may need a different argument or an induction parameter that ranges over all integers.
- Assuming every number is prime. The induction step must handle both cases. If is prime, use it as a one-factor product; if it is composite, split it into smaller factors.
- Using the hypothesis outside its range. In the composite case, verify that each factor lies between and . This is what makes the induction hypothesis applicable.
- Claiming uniqueness from this proof. The argument shows that a prime factorization exists. To show it is unique up to rearranging the factors, one also needs a result such as Euclid’s lemma: if a prime divides a product, it divides at least one factor.
If the intended claim involves a particular prime—for example, a divisibility statement about powers or factorials—the exact statement matters. Induction may be useful, but the base case and induction step depend on what is being proved.
References
- An Introduction to the Theory of Numbers, Ivan Niven, Herbert S. Zuckerman, and Hugh L. Montgomery
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.