ProofComplete

Divisibility and Primes - Key Proof

We present a complete proof of the Fundamental Theorem of Arithmetic, demonstrating both the existence and uniqueness of prime factorization. This result is so fundamental that it is sometimes called the Unique Factorization Theorem.

ProofFundamental Theorem of Arithmetic

We prove existence and uniqueness separately.

Existence: We prove by strong induction on nn that every integer n2n \geq 2 can be expressed as a product of primes.

Base case: n=2n = 2 is prime, so it is already a product of primes (a product with one factor).

Inductive step: Assume every integer kk with 2k<n2 \leq k < n can be expressed as a product of primes. Consider nn.

If nn is prime, we are done. Otherwise, nn is composite, so n=abn = ab where 1<a,b<n1 < a, b < n. By the inductive hypothesis, both aa and bb can be expressed as products of primes: a=p1p2pr,b=q1q2qsa = p_1 p_2 \cdots p_r, \quad b = q_1 q_2 \cdots q_s

Therefore: n=ab=p1p2prq1q2qsn = ab = p_1 p_2 \cdots p_r q_1 q_2 \cdots q_s

This is a product of primes, completing the induction.

Uniqueness: Suppose nn has two prime factorizations: n=p1p2pr=q1q2qsn = p_1 p_2 \cdots p_r = q_1 q_2 \cdots q_s where each pip_i and qjq_j is prime (not necessarily distinct, and ordered arbitrarily).

Since p1p_1 divides the left side, it divides the right side: p1q1q2qsp_1 \mid q_1 q_2 \cdots q_s. By Euclid's Lemma, p1p_1 divides some qjq_j. Without loss of generality, reorder so that p1q1p_1 \mid q_1.

Since both p1p_1 and q1q_1 are prime and p1q1p_1 \mid q_1, we must have p1=q1p_1 = q_1.

Cancel p1p_1 from both sides: p2p3pr=q2q3qsp_2 p_3 \cdots p_r = q_2 q_3 \cdots q_s

Repeat this process. Each time, we match a prime from the left with a prime from the right and cancel. If r<sr < s, we eventually get: 1=qr+1qr+2qs1 = q_{r+1} q_{r+2} \cdots q_s

This is impossible since each qi>1q_i > 1. Similarly, s<rs < r leads to a contradiction. Therefore, r=sr = s, and after reordering, pi=qip_i = q_i for all ii. The factorization is unique.

Remark

The uniqueness proof crucially relies on Euclid's Lemma. In rings without this property (such as Z[5]\mathbb{Z}[\sqrt{-5}]), unique factorization fails. This observation led to the development of ideal theory by Dedekind and Kummer.

ExampleUsing the Fundamental Theorem

The Fundamental Theorem allows us to compute gcd and lcm from prime factorizations. If: a=p1a1p2a2pkak,b=p1b1p2b2pkbka = p_1^{a_1} p_2^{a_2} \cdots p_k^{a_k}, \quad b = p_1^{b_1} p_2^{b_2} \cdots p_k^{b_k} (where we allow ai=0a_i = 0 or bi=0b_i = 0 for primes not dividing aa or bb), then: gcd(a,b)=p1min(a1,b1)p2min(a2,b2)pkmin(ak,bk)\gcd(a, b) = p_1^{\min(a_1, b_1)} p_2^{\min(a_2, b_2)} \cdots p_k^{\min(a_k, b_k)} lcm(a,b)=p1max(a1,b1)p2max(a2,b2)pkmax(ak,bk)\text{lcm}(a, b) = p_1^{\max(a_1, b_1)} p_2^{\max(a_2, b_2)} \cdots p_k^{\max(a_k, b_k)}

For instance, with 360=23325360 = 2^3 \cdot 3^2 \cdot 5 and 504=23327504 = 2^3 \cdot 3^2 \cdot 7: gcd(360,504)=2332=72\gcd(360, 504) = 2^3 \cdot 3^2 = 72 lcm(360,504)=233257=2520\text{lcm}(360, 504) = 2^3 \cdot 3^2 \cdot 5 \cdot 7 = 2520

The Fundamental Theorem of Arithmetic is one of the cornerstones of mathematics, with applications ranging from cryptography to algebraic geometry.