Section 3.1 The Fundamental Theorem of Arithmetic
Theorem 3.1.1.
If \(p\) is a prime and \(p\vert ab,\) then \(p\vert a\) or \(p\vert b.\)
Proof.
Let \(p\) be a prime and \(p\vert ab,\) and suppose that \(p \nmid a.\) Since \(p\) is prime and \(p \nmid a\) we have that \(\gcd(p,a)=1,\) so that by Euclid's Lemma \(p\vert b.\)
Corollary 3.1.2.
If \(p\) is a prime and \(p\vert a_1 a_2...a_n,\) then \(p\vert a_k\) for some \(k\in\{1,2,...,n\}.\)
Proof.
We induct on the number of factors. Let \(p\) be a prime. If \(n=1\) this is clear. When \(n=2,\) the result is the preceding theorem. Suppose that \(n\gt 2\) and that whenever \(p\) divides a product of less than \(n\) factors, then \(p\) divides at least one of the factors.
Now let \(p\vert a_1 a_2...a_n.\) By the previous theorem, we have that
If \(p\vert a_n\) we are done. If \(p\vert a_1 a_2...a_{n-1},\) then by hypothesis, \(p\vert a_k\) for some \(k\) where \(1\leq k\leq n-1.\) In any case, \(p\) divides at least one of \(a_1,a_2,...a_n.\)
Corollary 3.1.3.
If \(p,q_1,q_2,...,q_n\) are all primes and \(p\vert q_1 q_2...q_n,\) then \(p=q_k\) for some \(k\in\{1,2,...,n\}.\)
Proof.
Apply the preceding corollary and the fact that if \(p,q\) are primes and \(p\vert q,\) then \(p=q.\)
Theorem 3.1.4 (Fundamental Theorem of Arithmetic).
Every integer \(n\gt 1\) can be expressed uniquely as a product of primes; this representation is unique, apart from the order in which the factors occur.
Proof.
By induction on \(n.\) The case \(n=2\) is clear. Suppose that any integer \(k\) with \(2\leq k \lt n\) can be written uniquely as a product of primes.
If \(n\) is a prime, then \(n = p\) is the product of primes.
If \(n\) is not a prime, then \(n\) has a proper divisor, say \(d_1,\) with
Write \(n = d_1d_2.\) It is clear here that \(1\lt d_2\lt n.\) By the induction hypothesis
can be written uniquely as a product of primes. Thus
and \(n\) is the product of primes.
For uniqueness, we again use induction. For \(n = 2\) this is clear. Now suppose that for any integer \(k\) with \(2\leq k \lt n\) has a unique representation as a product of primes.
Again the case \(n = p\) is clear. If \(n\) is not a prime, then suppose that \(p_i\)'s and \(q_i\)'s are prime, and
Note that \(p_1\vert q_1q_2...q_s\) so that by the above Corollary \(p_1 = q_j\) for some \(j.\) Without loss of generality let \(j = 1.\) Now
so that by the induction hypothesis, \(\frac{n}{p_1}\) has a unique factorization. Thus \(r = s,\) and \(p_i = q_i\) for all \(i\leq r.\)
Thus by induction every integer \(n\gt 1\) can be expressed uniquely as a product of primes.
Corollary 3.1.5.
Any positive integer \(n\gt 1\) can be written uniquely in a canonical form
where, for \(i = 1, 2,..., r,\) each \(k_i\) is a positive integer and each \(p_i\) is a prime, with \(p_1\lt p_2\lt \cdots \lt p_r.\)
Theorem 3.1.6.
There are infinitely many primes.
First proof of Theorem 3.1.6.
Toward a contradiction, suppose that there are only finitely many primes, say \(p_1, p_2,..., p_n.\) Consider the number \(n,\) where
From a previous lecture we know that
Also \(m\gt 1,\) since \(2\) is a prime, so that \(m\) is prime or a product of primes, and \(m\gt p_i\) for any \(i\leq n.\) If \(n\) is prime, we are done. If \(m\) is not prime, then it has a prime divisor which is not one of \(p_1, p_2,..., p_n.\) In any case the list \(p_1, p_2,..., p_n\) is incomplete, and so there are infinitely many primes.
Definition 3.1.7.
We define the integer part of \(x,\) written \(\lfloor x\rfloor,\) as the greatest integer less than or equal to \(x.\) This is sometimes called the floor function.
Second proof of Theorem 3.1.6.
In this proof, we consider the sum
where the sum is taken over all possible choices of \(k_1, k_2,..., k_n\) that satisfy the inequality \(p_1^{k_1}...p_n^{k_n}\leq x.\) By induction one has that
Now \(p_1 = 2,\) and we have
For \(i \geq 2,\) we have that \(\log(p_i)\geq \log(3)\geq 1,\) so that
Putting this together gives (for \(x\geq e\))
If there were finitely many primes, say \(n,\) then since there are about \(x\) numbers less than \(x,\) we would have to have
But \(x\neq O(\log^n(x))\) for any fixed \(n.\) Hence there are infinitely many primes.
We now make more explicit a lemma used above.
Lemma 3.1.8.
Let \(a_1, a_2,..., a_n\) be positive integers. Then for any real \(x\) we have
Proof.
Note that the sums in (3.1.1) are just counting the number of elements of a certain form. The sum on the left-hand side of (3.1.1) is equal to the size of the set
and the product of sums on the right-hand side of (3.1.1) is equal to the size
Thus to prove the lemma, we need to show that the number of elements in \(A\) is at most the number of elements in \(B.\) Since both \(A\) and \(B\) are finite sets, it is enough to show that \(A\subseteq B.\)
To this end, let \(m\in A.\) Then there exist \(k_1,..., k_n\geq 0\) for which
Note that also \(m = a_1^{k_1}...a_{n-1}^{k_{n-1}}\cdot a_n^{k_n},\) and that since \(m\leq x,\) we have both
and
Thus \(m\in B,\) so that \(A\subseteq B\) and the lemma is proved.
Going on to Euler's proof, we need a small result relating infinite products to infinite sums.
Lemma 3.1.9.
Let \(a_n\in\mathbb{R}\) be positive for each \(n\) and suppose that \(a_n\rightarrow 0\) as \(n\rightarrow\infty.\) Then the product
converges if, and only if, the series
converges.
Proof.
Taking the logarithm of the product does not change the convergence properties. Hence the product converges if and only if the sum
converges. Recall that
Since \(a_n\rightarrow 0\) as \(x\rightarrow\infty,\) applying the above limit, we have
We can now just apply the limit comparison test to give the result.
Third proof of Theorem 3.1.6.
Note that by the fundamental theorem of arithmetic we have that
This product converges if and only if the sum
Well we have, again using geometric series, that
for some real number \(C\gt 0.\) Thus the product converges if and only if the sum
converges. Since the harmonic series diverges, we thus have that the sum of the reciprocals of the primes diverges. Since a sum of finitely many terms would be finite, there are infinitely many primes.