1.1.4. The Fundamental Theorem of Arithmetic
This section is based on parts of [BUR11, Sec. 3.1, Sec. 3.2, Sec. 6.1].
Recall the following basic definition.
Definition 1.1.4.1.
An integer is prime if it has exactly two positive divisors, necessarily and . A positive integer that is not prime is said to be composite.
Primes have an important property that we use often throughout Part 1.
Theorem 1.1.4.2 (Euclid’s Lemma).
Let be a prime and . Then if and only if or (possibly both).
Proof.
Suppose that . If , then there is nothing to prove. Suppose that . Since is a positive divisor of the prime , we must have or . But is impossible since by assumption. Therefore, . Corollary 1.1.3.18 yields . The converse statement does not need to be prime (Proposition 1.1.1.6(10)). ∎
Corollary 1.1.4.3.
Let and be primes. If divides the product , then there exists such that .
Proof.
Since is prime, by induction, Euclid’s Lemma (Theorem 1.1.4.2) implies that there exists such that divides . Since is prime, or , but is impossible by definition. ∎
Corollary 1.1.4.4.
Let be primes and an integer. If , then .
Proof.
Take and in Corollary 1.1.4.3. ∎
As its name suggests, the following (familiar) theorem plays a crucial role in the sequel. It formalises the fact that every positive integer admits a unique prime factorisation.
Theorem 1.1.4.5 (Fundamental Theorem of Arithmetic).
Let be an integer. Then there exist a unique integer , unique primes , and unique positive integers such that
Proof.
If is prime, then we take , and . Uniqueness of this factorisation is clear in this case: by Corollary 1.1.4.4, if a prime divides , then .
Suppose now that is composite. We first prove that the required factorisation exists. The integer admits a positive divisor different from and . Let
We claim that is prime. Indeed, otherwise admits a positive divisor ; but then and , so that (Proposition 1.1.1.6(9)). This contradicts the minimality of . Since , we have
Proposition 1.1.2.1 implies that there exists a largest positive integer such that . Set and , so that . By Proposition 1.1.1.6(9), every positive divisor of is a divisor of ; since , or (the equality is impossible since it implies ).
Iterating this procedure yields a decreasing sequence of integers
and hence there exists a first integer such that , together with primes
such that
Notice that . Here, is the smallest divisor of greater than , and is the largest positive integer such that . In particular, with . This yields the required factorisation
We now prove the uniqueness of the factorisation by induction on the number of distinct primes in the factorisation constructed above. Suppose that there are an integer , primes , and positive integers such that
By Corollary 1.1.4.3, there exists such that . Also, since is composite, for . The minimality of then implies
Hence, we must have . Then, by the maximality of , we must also have . Since
dividing by we obtain
In view of Corollary 1.1.4.3, the prime does not divide the right-hand side, and hence or, equivalently, . As above, inductively, we set and . Consider the factorisations
If , then , which implies , and uniqueness follows. Suppose that and that uniqueness holds for every integer greater than whose constructed factorisation involves distinct primes. Applied to , the construction above (or, if is prime, the first paragraph of the proof) yields precisely the factorisation . By the induction hypothesis, it coincides with , so that and
This finishes the proof. ∎
End of Lecture 3
Definition 1.1.4.6.
Let be an integer. Using the Fundamental Theorem of Arithmetic (Theorem 1.1.4.5), write
with an integer, primes, and positive integers. We call this the (canonical) prime factorisation of ; if convenient, we also use the terminology ‘prime factorisation’ when the primes are not ordered.
Remark 1.1.4.7.
The integer can be written as the empty product of primes, and it is convenient to refer to this empty product as the (unique) prime factorisation of .
Example 1.1.4.8.
Not covered in the lectureWe have , etc.
Corollary 1.1.4.9.
Let be an integer and
be its prime factorisation. The positive divisors of are the pairwise distinct numbers
Proof.
Let be integers such that for each . Set
Then
so that .
Conversely, let be a divisor of . If , then we may take . Suppose that and let be a prime divisor of . Then:
-
•
and , and hence (Proposition 1.1.1.6(9)).
-
•
Since and is prime, Corollary 1.1.4.3 implies that there exists such that .
This shows that every prime factor of is also a prime factor of . Consequently, the prime factorisation of has the form
Finally, for each since if . Indeed, if , then cannot be the exponent of in the prime factorisation of . The fact that the numbers are pairwise distinct follows from the uniqueness of prime factorisations (Theorem 1.1.4.5). ∎
Example 1.1.4.10.
Not covered in the lecture We have . By Corollary 1.1.4.9, the number of positive divisors of is the number of tuples such that , and . Thus, has positive divisors, namely the integers with as before.
Corollary 1.1.4.11.
Not covered in the lectureLet be a composite integer and its smallest positive divisor different from . Then is prime and satisfies .
Proof.
That the divisor is prime is shown in the course of the proof of the Fundamental Theorem of Arithmetic (Theorem 1.1.4.5). Since is composite and , there exists an integer such that . Since and is the smallest divisor of greater than , we conclude that . Consequently,
Therefore, . ∎
Corollary 1.1.4.12.
Let be such that . Then the function
is bijective.
Proof.
If are such that and , then by Proposition 1.1.1.6(10). This shows that the function is well defined.
The function is surjective. Let be such that . If , we can take and and the factorisation has the required properties. Thus, since the roles of and are symmetric, it remains to deal with the case . In this case, and admit prime factorisations
Since , the integers and have no common prime divisors. The prime factorisation of is therefore
Let be a positive divisor of . By Corollary 1.1.4.9,
Set and . Again by Corollary 1.1.4.9, and . Therefore, .
The function is injective. Let be such that and , and such that and . Suppose that . We need to prove that and . If , then and . Since the roles of and are symmetric, this argument also deals with the case .
Suppose that . By Corollary 1.1.4.9, and can be written in the form
for some integers and . Similarly, the prime factorisations of and must be of the form
for some integers and . Then the positive integer has prime factorisations
Since prime factorisations are unique by the Fundamental Theorem of Arithmetic (Theorem 1.1.4.5), we must have and for all . This shows that and . ∎
Theorem 1.1.4.13 (Euclid).
There are infinitely many primes.
Proof.
There is at least one prime number, namely the integer . Let be a finite collection of pairwise distinct primes, with . Set . By the Division with Remainder Theorem (Theorem 1.1.1.8) and Remark 1.1.1.10, none of the primes in the collection divides : since
the remainder of division by is . Since , by the Fundamental Theorem of Arithmetic (Theorem 1.1.4.5) the integer admits a prime divisor, say . Moreover, for all . This shows that any finite collection of pairwise distinct primes can be extended to a collection with the same property and one additional prime. Hence, the set of primes is infinite. ∎
Warning 1.1.4.14.
Not covered in the lectureThe number constructed in the proof of Theorem 1.1.4.13 need not be prime: Indeed, is composite but has the prime divisor . Even if are the first primes, the integer need not be prime: