Read · 3 min
Statement
The Fundamental Theorem of Arithmetic says that any positive integer greater than can be written as a product of finitely many primes uniquely up to their order. The term "up to thier order" means that we consider to be equivalent as . Note that a product can consist of just one prime. We must exclude because it has only one divisor (), but we do not consider it a prime, as otherwise it would contradict uniqueness. For example, if were prime, then and would be a contradiction to the uniqueness. For more advanced readers, is a unit in the ring of integers, and in a ring, the FTA says that the product is unique up to a unit and order of primes.
Proof
For this proof, we will assume that the reader already knows the following two facts:
• Every integer greater than has at least one prime divisor. This implies that every integer greater than is either prime or composite. (Used to show existence)
• (Euclid's Lemma) If a prime for integers , then or . (Used to show uniqueness)
If either of these seem unfamiliar, take a moment now to think about why they are true. They can also be found in previous lessons.
There are two parts we need to prove:
• The existence of such a product of primes
• The product of primes is unique up to their order
Existence
To prove existence, we will use strong induction. Since is already a prime itself, that covers the base case. Now assume that all integers can be written as a product of primes. We will show that can be written as a product of primes. If itself is prime, then we are done as it is the product of prime. Otherwise, let for integers . By the inductive hypothesis, and can be written as the product of primes, so the product can also be written as a product of primes. Hence, by induction, all integers greater than can be written as a product of one or more primes.
Uniqueness
To prove uniqueness, suppose, that a number can be expressed as a product of primes in two ways: . Here, we leave out exponents since we will explicitly write out repeated primes (for example, it is possible to have ). We wish to show that these two representations are the same up to their order. Since these two products are equal, any factor of one product must divide the other product. That is, for any , . By Euclid's Lemma, there exists such that . Since and are primes, it follows that . We may divide out the common prime factor in the two products, and repeat with the remaining factors, until all common prime factors have been divided out.
If , then we will be left with either (if ), or (if ). Since all primes are integers greater than , both scenarios are impossible. Therefore, , so the two products have the same number of (not necessarily distinct) primes. But from our above argument, we know that these two representations are the same up to their order. Therefore, any two representations of an integer as a product of prime factors must be equivalent up to thier order.
The Fundamental Theorem of Arithmetic formalizes the concept of prime factorization. We call the representation of an integer as a product of primes the canonical representation of .
Concrete Example: consider the number . We can find its factorization (which we now know is unique) by trying to factor out the smallest prime numbers possible. The smallest prime number is . Since is even, there is at least one power of in the prime factorization, so we promptly pull it out:
It turns out we can factor out a twice more:
Finally, has the prime factorization .
We have broken up into prime factors and their powers, so we're done. By the commutative property of multiplication, we can rearrange these factors in any order, like so
and so on. But they are all the same! In other words, rearranging the factors doesn't cause a problem with uniqueness.