Theorem. Fundamental Theorem of Arithmetic [00EG]
- April 13, 2026
Every positive integer n \geq 1 is equal to a product of zero or more primes, known as its prime factorization. The product is unique up to reordering; say, if the primes are listed in order from smallest to largest.
There are two things to prove: first, that it is always possible to write any positive integer as a product of primes, and second, that the product is always unique. At this point, we will only prove that the product exists.
Proof.
- April 13, 2026
Subproof. Fundamental Theorem of Arithmetic ›
- April 13, 2026
Subproof. Fundamental Theorem of Arithmetic ›
- April 13, 2026
Subproof. Fundamental Theorem of Arithmetic ›
- April 13, 2026
Subproof. Fundamental Theorem of Arithmetic ›
- April 13, 2026
For completeness, a proof of uniqueness is included below, but it uses some material we have not covered yet.
★ Uniqueness of prime factorizations [00HP]
- July 16, 2026
The Fundamental Theorem of Arithmetic claims not only that every positive integer can be written as a product of primes, but that there is essentially only one way to do it—as long as we do not care about the order of the prime factors. That is, we consider 2 \times 3 and 3 \times 2 to be the same factorization of 6, since the only difference is the order of the factors.
First we need a key lemma.
Lemma Euclid's Lemma [00HQ]
- July 16, 2026
If p is a prime number and p \mid ab (where a and b are arbitrary natural numbers), then either p \mid a or p \mid b.
Proof.
- July 16, 2026
Now we can prove uniqueness of prime factorizations.
Proof.
- July 16, 2026
Subproof. ★ Uniqueness of prime factorizations ›
- July 16, 2026
Subproof. ★ Uniqueness of prime factorizations ›
- July 16, 2026
Now let n be arbitrary, and suppose we already know that the prime factorizations for every number less than n are unique; we must show this is true for n as well. So suppose n = p_1 p_2 \cdots p_j = q_1 q_2 \cdots q_k.
Consider p_1. Since p_1 \mid n, then p_1 \mid q_1 q_2 \cdots q_k. By Euclid's Lemma, either p_1 \mid q_1 or p_1 \mid q_2 \cdots q_k. If p_1 \mid q_1 then in fact p_1 = q_1, since p_1 and q_1 are both prime. Otherwise, again by Euclid's Lemma either p_1 \mid q_2 (and hence p_1 = q_2) or p_1 \mid q_3 \cdots q_k, and so on. In the end, p_1 must be equal to one of the q's. We can therefore cancel p_1 from both sides, resulting in two prime factorizations for the smaller number n/p_1. By the induction hypothesis, the two prime factorizations must be the same—hence the two prime factorizations for n were the same in the first place.