primes
primes
where the pi are prime numbers with p1 < p2 < · · · < pr and the ki are
positive integers.
16
that n factorises, say n = st where 1 < s, t < n. By induction, both s and t
can be written as a product of prime powers. Hence, upon multiplying these
expressions together, we see that n = st is also a product of prime powers.
This establishes existence of a prime decomposition. ¤
Proof: (i) Assume p | ab. If p | a then the result holds. So assume that
p does not divide a. Then gcd(p, a) = 1 (since the only divisors of p are
1 and p and the latter does not divide a). Now part (ii) of Theorem 2.6 tells
us that
1 = up + va
for some u, v ∈ Z. Hence
b = ubp + vab.
Now p | ab (by assumption), so we deduce p | (ubp + vab); that is, p | b, as
required.
(ii) Proceed by induction on s. If s = 1, then p | a1 and there is nothing
to prove. Assume then that s > 1. We have p | bas where b = a1 a2 . . . as−1 .
Hence, by (i), either p | b or p | as . If the first holds, that is, p | b, then
by induction p divides one of a1 , a2 , . . . , as−1 . Hence we deduce p | ai for
some i, completing the inductive step.
(iii) Apply (ii). We deduce p | qj for some j. But as qj is prime, its only
divisors are 1 and qj . Hence p = qj . ¤
Note that pi | n = q1l1 q2l2 . . . qtlt . Hence by Lemma 3.5 we have pi = qj for
some j. By the same argument, each ql is equal to some pm . We conclude
that
r = t, p1 = q1 , p2 = q2 , . . . , pr = qr .
Then Equation (3.1) becomes
17
Assume ki 6= li for some i. We may assume without loss of generality that
ki > li . Then dividing through by plii gives
k i−1 ki −li k l l
pk11 . . . pi−1 pi i+1
pi+1 . . . pkr r = pl11 . . . pi−1
i−1 i+1
pi+1 . . . plrr .
l l
Hence pi divides pl11 . . . pi−1
i−1 i+1
pi+1 . . . plrr . This implies that pi = pj (with
i 6= j) by Lemma 3.5(iii). This is a contradiction. Thus ki = li for all i and
we have established the required uniqueness. ¤
18
Example 3.7 The divisors of 180 are:
1 = 20 · 30 · 50 9 = 20 · 32 · 50 15 = 20 · 31 · 51
2 = 21 · 30 · 50 18 = 21 · 32 · 50 30 = 21 · 31 · 51
4 = 22 · 30 · 50 36 = 22 · 32 · 50 60 = 22 · 31 · 51
3 = 20 · 31 · 50 5 = 20 · 30 · 51 45 = 20 · 32 · 51
6 = 21 · 31 · 50 10 = 21 · 30 · 51 90 = 21 · 32 · 51
12 = 22 · 31 · 50 20 = 22 · 30 · 51 180 = 22 · 32 · 51
Proof: Assume for a contradiction that there are only finitely many primes,
say p1 , p2 , . . . , pn . Consider
N = p1 p2 . . . pn + 1.
pi | (N − p1 p2 . . . pn ) = 1,
which is a contradiction. ¤
Theorem 3.9 There are infinitely many prime numbers of the form 4k + 3.
19
Hence if N were a product of primes all of which had the form 4k + 1, then
N would also have this form. Therefore one of the prime divisors of N must
have the form 4k + 3, so is pi for some i. Then
pi | (4p1 p2 . . . pn − N ) = 1,
Similarly it is possible to show that every prime greater than 3 has the
form 6k + 1 or 6k + 5 and modifying the above argument will show that
there are infinitely many primes of the form 6k + 5. In fact, there are also
infinitely many primes of the form 4k + 1 and infinitely many primes of the
form 6k + 1, but this is much harder to prove. These are all special cases of
the following theorem proved by Dirichlet:
We are not claiming that they are all prime, but just that infinitely many
of them are: primes will contine to occur in this list no matter how far we
go along it.
In fact there is no known simple formula which yields only prime numbers
whatever we substitute into it. For some time mathematicians believed that
f (n) = n2 + n + 41
was such a formula having checked that f (n) is prime for n = 1, 2, 3, . . . , 39.
(Here f (39) = 1601.) However this is, of course, not good enough and we
find:
which is not prime. In fact we can prove that there is no polynomial formula
which generates primes.
20
Proof: Assume that
and therefore a0 | f (ta0 ) for all t. Since f (ta0 ) is prime this forces
f (ta0 ) = a0 for t = 1, 2, . . . .
Hence the polynomial f (n) takes the value a0 infinitely many times and
therefore f (n) must be the constant polynomial taking value a0 . ¤
The other thing that we might ask about is the distribution of primes.
Although we have observed it is difficult to generate primes, one can actually
say quite a lot about their distribution.
This result is pointing to the fact that primes do occur reasonably often.
The inductive step relies on the method of proof of Theorem 3.8. We know
that there is a prime number q which divides
p1 p2 . . . pn + 1
pn+1 6 q 6 p1 p2 . . . pn + 1
n−1
6 2 · 22 · . . . · 2 2 +1
1+2+···+2n−1
=2 +1
2n −1
=2 +1
2n −1 n −1 n
=2 + 22 = 22 .
21
A much stronger (and far harder to prove) result is that
n log n
lim = 1.
n→∞ pn
This is one of the equivalent formulations of the famous Prime Number
Theorem (proved in 1896 by Hadamard and de la Vallée Poussin). It can
be interpreted as saying that for large values of n, the nth prime is roughly
nearby the number n log n. (This being the natural logarithm.)
It is certainly worth mentioning a few open questions that mathemati-
cians have still yet to solve:
Twin Primes Conjecture: Is it true that there are infinitely many prime
numbers p such that p + 2 is also prime?
We can interpret the Prime Number Theorem as saying that there are
many prime numbers and that they occur rather regularly. The above con-
jectures also assert similar things. However, we finish our discussion of
primes by showing that there are large gaps where no primes occur. Namely
we prove:
(n + 1)! + 2 divisible by 2
(n + 1)! + 3 divisible by 3
..
.
(n + 1)! + (n + 1) divisible by n + 1.
22