Home page for accesible maths MATH111: Numbers and Relations

Style control - access keys in brackets

Font (2 3) - + Letter spacing (4 5) - + Word spacing (6 7) - + Line spacing (8 9) - +

Appendix A Proof of the Fundamental Theorem of Arithmetic

The purpose of this appendix is to present a proof of Theorem 4.6.5:

every natural number greater than or equal to 22 can be expressed as a

product of primes; this product is unique up to the order of the factors.

This result may seem obvious, because we were all taught it at an early age; so before we prove it, perhaps it is worth considering why it requires proof.

The point is that there are systems other than \mathbb{N} where the corresponding statement fails to be true. For example, let AA be the set of all natural numbers of the form 4m+14m+1, so that A={1,5,9,13,}A=\{1,5,9,13,\dots\}. The product of any two elements of AA is itself in AA, since

(4m+1)(4n+1)=16mn+4m+4n+1=4(4mn+m+n)+1.(4m+1)(4n+1)=16mn+4m+4n+1=4(4mn+m+n)+1.

Thus we have a perfectly good multiplication defined on AA, and we can define a ‘‘prime number in AA’’ to be an element of AA, not equal to 11, whose only divisors in AA are 11 and itself. It turns out that every element of AA (except 11) can be written as a product of primes in AA; but we have 441=949=2121441=9\cdot 49=21\cdot 21, and each of the numbers 99, 4949 and 2121 is prime in AA. (They are clearly not prime in \mathbb{N}, as 9=339=3\cdot 3, 49=7749=7\cdot 7 and 21=3721=3\cdot 7 — but 3,7A3,7\not\in A.) Thus although we have multiplication in AA, primes in AA and prime factorization in AA, we do not have uniqueness of prime factorization in AA.

Now, to prove Theorem 4.6.5, for a natural number n2n\geqslant 2, consider the following two statements:

 P(n):P(n)\colon

‘‘nn can be written as a product of primes’’;

 Q(n):Q(n)\colon

‘‘there is only one way of writing nn as a product of primes, up to the order of
   the factors’’.

We shall use the Generalized Principle of Induction to prove that P(n)P(n) and Q(n)Q(n) are true for each n2n\geqslant 2.

Basis of induction: the number 22 is prime, so P(2)P(2) is satisfied by our convention that a single prime number is considered a product of primes; further, there is clearly no other way that 22 can be written as a product of primes, so Q(2)Q(2) is also satisfied.

Induction step: let n2n\geqslant 2, and assume inductively that P(k)P(k) and Q(k)Q(k) are true for each k{2,3,,n}k\in\{2,3,\ldots,n\}; we must prove that P(n+1)P(n+1) and Q(n+1)Q(n+1) are true. If n+1n+1 is prime, then P(n+1)P(n+1) and Q(n+1)Q(n+1) are certainly true, just as in the basis of induction above.

Otherwise n+1n+1 is composite. In this case we verify each of the statements P(n+1)P(n+1) and Q(n+1)Q(n+1) separately.

P(n+1):P(n+1)\colon Since n+1n+1 is composite, we can write n+1=abn+1=ab, where a,b{2,3,,n}a,b\in\{2,3,\ldots,n\}. By the induction hypothesis, P(a)P(a) and P(b)P(b) are true, so we can write both aa and bb as products of primes, say a=p1pra=p_{1}\cdots p_{r} and b=q1qsb=q_{1}\cdots q_{s}, where r,sr,s\in\mathbb{N} and p1,,pr,q1,,qsp_{1},\ldots,p_{r},q_{1},\ldots,q_{s} are prime numbers. This implies that n+1n+1 can be written as a product of primes because

n+1=ab=p1prq1qs,n+1=ab=p_{1}\cdots p_{r}q_{1}\cdots q_{s},

and so P(n+1)P(n+1) is true.

Q(n+1):Q(n+1)\colon Suppose that

n+1=p1p2pr  and  n+1=q1q2qs,n+1=p_{1}p_{2}\cdots p_{r}\qquad\text{and}\qquad n+1=q_{1}q_{2}\cdots q_{s},

where r,sr,s\in\mathbb{N} and p1,p2,,pr,q1,q2,,qsp_{1},p_{2},\ldots,p_{r},q_{1},q_{2},\ldots,q_{s} are prime numbers. We must show that r=sr=s and that the primes p1,p2,,prp_{1},p_{2},\ldots,p_{r} are the same as q1,q2,,qsq_{1},q_{2},\ldots,q_{s} (except for the order).

Now p1p_{1} divides n+1=q1q2qsn+1=q_{1}q_{2}\cdots q_{s}, and so, as observed in Remark 4.6.4, we have p1|qjp_{1}|q_{j} for some j{1,2,,s}j\in\{1,2,\ldots,s\}. As qjq_{j} is prime and p1>1p_{1}>1, this implies that p1=qjp_{1}=q_{j}. If we set m=(n+1)/p1{1,2,,n}m=(n+1)/p_{1}\in\{1,2,\ldots,n\}, then we can write

p2p3pr=m=q1q2qj-1qj+1qs.p_{2}p_{3}\cdots p_{r}=m=q_{1}q_{2}\cdots q_{j-1}q_{j+1}\cdots q_{s}.\tag{$*$}

Note that m1m\neq 1 because

(m=1)(n+1=p1)(n+1is prime),(m=1)\ \Rightarrow\ (n+1=p_{1})\ \Rightarrow\ (n+1\ \text{is prime}),

contradicting our assumption that n+1n+1 is composite. Hence m{2,3,,n}m\in\{2,3,\ldots,n\}, so that Q(m)Q(m) is true by the induction hypothesis. Thus the two prime factorizations of mm in (A) are the same (up to reordering); that is, r-1=s-1r-1=s-1 and p2,p3,,prp_{2},p_{3},\ldots,p_{r} are the same as q1,q2,,qj-1,qj+1,,qsq_{1},q_{2},\ldots,q_{j-1},q_{j+1},\ldots,q_{s} (except for the order). Hence we conclude that r=sr=s and, inserting p1=qjp_{1}=q_{j} in the lists, that p1,p2,,prp_{1},p_{2},\ldots,p_{r} are equal to q1,q2,,qsq_{1},q_{2},\ldots,q_{s} (except for the order). This proves that Q(n+1)Q(n+1) is satisfied, and thus the result holds by mathematical induction. \Box