The fundamental theorem of arithmetic states that every integer $n>1$ can be written as a product of prime numbers, and that this product is unique up to the order of the factors.
Statement of the Theorem
The fundamental theorem of arithmetic states that every integer can be written as a product of prime numbers, and that this product is unique up to the order of the factors.
Thus every integer has a representation
where each is prime.
The same factorization is often written by grouping equal primes:
where
are distinct primes and
For example,
This means that the multiplicative structure of is completely determined by the primes , , and , together with their exponents.
Existence of Factorization
We first prove that every integer can be written as a product of primes.
If is prime, then there is nothing to prove. It is already a product of one prime.
If is composite, then
for some integers satisfying
If and are prime, then is a product of primes. If one of them is composite, factor it again. Since each factor is smaller than , this process cannot continue forever.
A formal proof uses strong induction. Assume every integer with
has a prime factorization. If is composite, write
with . By the induction hypothesis, both and have prime factorizations. Multiplying these factorizations gives a prime factorization of .
Thus every integer greater than has at least one prime factorization.
Euclid’s Lemma
The uniqueness part rests on Euclid’s lemma.
If is prime and
then
or
To prove this, suppose
Since is prime, the only positive divisors of are and . Hence
Because
and , the coprimality result from the previous section gives
Thus a prime dividing a product must divide one of the factors.
By repeated application, if
then divides at least one factor .
Uniqueness of Factorization
Suppose an integer has two prime factorizations:
and
where all and are prime.
Since
we have
By Euclid’s lemma, divides one of the primes . Since is prime, its only positive divisors are and . Therefore
Cancel this common prime from both factorizations. Repeating the argument, every prime on the left matches one prime on the right.
Thus the two factorizations contain exactly the same primes with exactly the same multiplicities, possibly written in a different order.
This proves uniqueness.
Canonical Form
The uniqueness theorem allows each integer to be written in canonical form:
where the primes are distinct and ordered:
and the exponents are positive integers.
For example,
This form is canonical because no choices remain once the primes are ordered increasingly.
Divisibility in Prime Exponents
Prime factorization turns divisibility into comparison of exponents.
Suppose
and
where missing primes are assigned exponent . Then
if and only if
for every prime .
For example,
and
Since the exponent of in is at most that in , and the exponent of in is at most that in , we have
GCD and LCM from Factorization
Prime factorization also gives compact formulas for greatest common divisors and least common multiples.
If
and
then
and
Thus the gcd takes common prime powers with smaller exponents, while the lcm takes all prime powers with larger exponents.
This gives another proof of the identity
for positive integers and .
Role in Number Theory
Unique prime factorization is the structural foundation of elementary number theory. It says that primes are the irreducible multiplicative components of the positive integers.
Many arithmetic questions become simpler after translating them into prime exponents. Divisibility, gcds, lcms, reduced fractions, divisor counts, and multiplicative functions all rely on this theorem.
The theorem also marks a boundary. In the ordinary integers, factorization into primes is unique. In more general rings, unique factorization may fail. Understanding that failure leads to ideals, Dedekind domains, class groups, and algebraic number theory.