Ent 01
Ent 01
1.1. Division
The oldest and most fundamental aspect of number theory is the study of the natural numbers and
their relationship with each other.
Among the axioms that define the set N = {1, 2, 3, . . .} of all natural numbers is the Well ordering
principle, that every non-empty subset of N has a least element. This is equivalent to the Principle
of induction.
The set N of all natural numbers can be extended to the set
Z = {. . . , −3, −2, −1, 0, 1, 2, 3, . . .}
of all integers. The Well ordering principle is then equivalent to the assertion that every non-empty
subset of Z bounded below has a least element, and that every non-empty subset of Z bounded above
has a greatest element. This is one of the most important tools that we need to establish some of the
first results concerning the set of integers.
Suppose that a, b ∈ Z and a #= 0. Then we say that a divides b, denoted by a | b, if there exists
c ∈ Z such that b = ac. In this case, we also say that a is a divisor of b, or that b is a multiple of a.
Theorem 1.1. Suppose that a ∈ N and b ∈ Z. Then there exist unique q, r ∈ Z such that b = aq + r
and 0 ! r < a.
Proof. We first show the existence of such numbers q, r ∈ Z. To determine the value of r, we use
an idea going back to school mathematics. If b is non-negative, then we subtract from it just enough
multiples of a to ensure that what remains is less than a but still non-negative. We then extend this
idea to the case when b is negative, but now add to it just enough multiples of a until the resulting
number is non-negative but again less than a. Formally, consider the set
S = {b − as " 0 : s ∈ Z}.
Then it is easy to see that S is a non-empty subset of N ∪ {0}. It follows from the Principle of
induction that S has a smallest element. Let r be the smallest element of S, and let q ∈ Z such that
b − aq = r. Clearly r " 0, so it remains to show that r < a. Suppose on the contrary that r " a.
Then
b − a(q + 1) = (b − aq) − a = r − a " 0,
so that b − a(q + 1) ∈ S. Clearly b − a(q + 1) < r, contradicting that r is the smallest element of S.
Next we show that such numbers q, r ∈ Z are unique. Suppose that
b = aq1 + r1 = aq2 + r2 .
Then
|r1 − r2 | = a|q2 − q1 |.
1
2 1. DIVISION AND FACTORIZATION
If q1 #= q2 , then it is easy to see that a|q2 − q1 | " a, while |r1 − r2 | < a, a contradiction. It follows
that q1 = q2 , and so r1 = r2 also. %
We next establish the existence of the greatest common divisor.
Theorem 1.2. Suppose that a, b ∈ N. Then there exists a unique d ∈ N such that
(i) there exist x, y ∈ Z such that d = ax + by;
(ii) d | a and d | b; and
(iii) for every k ∈ N such that k | a and k | b, we have k | d.
Remark. Condition (ii) shows that d is a divisor of both a and b, whereas condition (iii) shows that
it is the greatest such divisor. We include condition (i) here as it is a very convenient intermediate
result in the course of the proof.
Proof of Theorem 1.2. Consider the set
I = {au + bv : u, v ∈ Z}.
Then it is easy to see that I is a non-empty subset of Z which contains some positive integers. It
follows from the Principle of induction that I has a least positive element. Let d be the least positive
element of I, and let x, y ∈ Z such that d = ax + by. The conclusion (i) follows trivially. Also, d is
uniquely defined.
Next, we show that d divides every integer in I. Suppose that z = au + bv is any given integer
in I. By Theorem 1.1, there exist q, r ∈ Z such that z = dq + r, where 0 ! r < d. Then
r = z − dq = a(u − xq) + b(v − yq) ∈ I.
If r #= 0, then the requirement 0 < r < d contradicts the minimality of d. Hence r = 0, so that
z = dq, whence d divides z.
Taking u = 1 and v = 0 gives d | a. Taking u = 0 and v = 1 gives d | b.
Finally, the conclusion (iii) is a simple consequence of (i). %
The number d in Theorem 1.2 is called the greatest common divisor of a and b, and denoted by
d = (a, b). Two numbers a, b ∈ N are said to be relatively prime, or coprime, if (a, b) = 1.
A practical way of finding the greatest common divisor of two natural numbers is given by the
following result.
Theorem 1.3. Suppose that a, b ∈ N, and that a < b. Suppose further that q1 , . . . , qn+1 ∈ Z and
r1 , . . . , rn ∈ N satisfy 0 < rn < rn−1 < . . . < r1 < a and
b = aq1 + r1 ,
a = r1 q 2 + r2 ,
r1 = r2 q 3 + r3 ,
..
.
rn−2 = rn−1 qn + rn ,
rn−1 = rn qn+1 .
Then (a, b) = rn .
Proof. We first of all prove that
(1.1) (a, b) = (a, r1 ).
Note that we have (a, b) | a and (a, b) | (b − aq1 ) = r1 , and so
(a, b) | (a, r1 ).
On the other hand, we have (a, r1 ) | a and (a, r1 ) | (aq1 + r1 ) = b, and so
(a, r1 ) | (a, b).
Equality (1.1) follows. Similarly
(1.2) (a, r1 ) = (r1 , r2 ) = (r2 , r3 ) = . . . = (rn−1 , rn ).
1.2. FACTORIZATION 3
1.2. Factorization
Suppose that a ∈ N and a > 1. Then we say that a is prime if it has exactly two positive divisors,
namely 1 and a. We also say that a is composite if it is not prime. It is convenient to treat the
integer 1 as neither prime nor composite. To find a good reason for not including 1 as a prime, see
the Remark following Theorem 1.7.
Throughout this chapter, the symbol p, with or without suffices, denotes a prime.
Theorem 1.5. Suppose that a, b ∈ Z, and p ∈ N is a prime. If p | ab, then p | a or p | b.
Proof. Suppose that p ! a. Since p is prime, the only positive divisors of p are 1 and p. Hence we
must have (a, p) = 1. It follows from Theorem 1.2 that there exist x, y ∈ Z such that 1 = ax + py, so
that b = abx + pby. Clearly p | b. %
Using Theorem 1.5 a finite number of times, we obtain immediately the following generalization.
4 1. DIVISION AND FACTORIZATION
so perhaps
π(X) log X
(1.11) lim = 1.
X→∞ X
Indeed, Tchebycheff showed in 1848 that if the limit in (1.11) exists at all, then it must be equal
to 1. Unfortunately, he and others were unable to show that the limit exists. Then in 1850, he showed
that there exist positive constants c1 and c2 such that for every real number X " 2, we have
X X
c1 < π(X) < c2 .
log X log X
This confirms that the function (1.10) at least represents the correct order of magnitude of π(X). We
prove Tchebycheff’s theorem in Chapter 6.
The crucial idea that finally led to the proof of (1.11) was introduced by Riemann in a monumental
contribution in 1860. Riemann observed that the series
!∞
1
(1.12)
n=1
ns
plays a crucial role in the study of the distribution of primes if one treats s as a complex variable. It
follows that the distribution of primes can be studied by the use of methods in the theory of analytic
functions. Riemann denoted the series (1.12) by ζ(s), and the function has since been known as the
Riemann zeta function. Indeed, Riemann’s work has also influenced greatly the development of the
general theory of functions.
Riemann’s ideas were studied in great depth in the late 1800’s by von Mangoldt and Hadamard.
This culminated in the proof of (1.11) in 1896 by Hadamard and de la Vallée Poussin, independently
and almost simultaneously. In particularly, the work of de la Vallée Poussin showed that the integral
(1.9) is a better approximation to π(X) than the function (1.8) for any value of the constant A.
The result (1.11) is known nowadays as the Prime number theorem. As this is a course of lectures
on elementary number theory, we shall not discuss here the analytic aspects described in the preceding
two paragraphs.