Fundamental Theorem of Arithmetic

Written by Patrick Stevens last updated
make Number Theory a parent of this

The Fundamental Theorem of Arithmetic states that every natural number (greater than or equal to ) may be expressed as a product of prime numbers, and the product is unique up to reordering.

This theorem is one of the main reasons is not considered to be prime: indeed, if it were prime then could be factorised into primes as , but these would be two different factorisations of the number . The FTA's statement is much cleaner if is not thought of as prime.

In a more general context, the FTA says precisely that the ring is a unique_factorisation_domain; there is therefore a much more abstract proof than the elementary one we will present further on in this article:

Examples

  • The FTA does not talk about or ; this is because these numbers are conventionally considered neither prime nor composite.
  • Even if we haven't bothered to calculate , we can immediately say that it is odd. Indeed, by the FTA, cannot divide , because the complete list of prime factors of this number is , and is prime.

Proof

Timothy Gowers has an excellent article about the proof of the FTA.

The FTA consists of two parts: we must show that every number can be decomposed as primes, and also that every number can be decomposed uniquely.

Every number can be written as a product of primes

This part is the easier, and it uses strong_induction (a version of proof by induction).

Clearly can be written as a product of primes, because it is prime; so it can be written as just itself.

Now, for bigger than , if is prime then we are immediately done (just write it as itself). Otherwise, is not prime, so it can be written as , say, with and both less than .

But by the inductive hypothesis, we can express and each as products of primes, so we can express as the combined product of the two sets of factors of and .

Example

Consider . We have two options: is prime or is composite.

It turns out that is actually equal to , so it's not prime.

By the inductive hypothesis, we can factor as a product of primes (indeed, it's ); and we can factor as a product of primes (indeed, it's ); so we can factor as .

(If you like, you can view this as just "start again at instead of at , and spit out what you get; then start again at instead of , and spit out what you get; and finally combine the spittings-out"; no mention of a spooky "inductive hypothesis" at all.)

Note that at this point, we haven't any guarantee at all that this is the only prime factorisation; all we assert so far is that it is a prime factorisation.

Every number can be decomposed uniquely as a product of primes

For this, we will need a basic (but non-obvious and important) fact about the behaviour of prime numbers: Euclid's lemma, which states that if a prime divides a product , then divides at least one of and .

We will work by induction on again. If then the result is immediate: a number can only be divided by numbers which are not larger than it, but and are the only such numbers.

Suppose can be written as both and , where each and is prime (but there might be repeats: maybe , for instance). We need to show that and that (possibly after reordering the lists) for each .

Certainly divides , because it divides . Therefore it divides , and hence it divides one of or , by Euclid's lemma. Therefore either it divides , or it divides one of or ; by induction, divides some . Because we don't care about the ordering of the list, let us reorder the list if necessary so that in fact : put the factor at the start of the list.

Now, is prime, and is not equal to but it divides ; hence .

Dividing through by , then, we obtain , a strictly smaller number; so by the inductive hypothesis, (so ) and the unordered list of is the same as the unordered list of for .

This proves the theorem.

Why is this not obvious?

Timothy Gowers has a good piece on why this result is not just obvious. Of course, what is "obvious" and what is not "obvious" varies heavily depending on who you're talking to. For this author personally, the true reason it's not obvious is Gowers's reason number 4: because there are very similar structures which do not have the property of unique factorisation. (Gowers uses ; on the page on irreducibles, we show that could be used just as well.)

Parents: