0% found this document useful (0 votes)
7 views6 pages

Ent 01

Chapter 1 discusses division and factorization in number theory, focusing on the properties of natural numbers and integers, including the concepts of divisors and the greatest common divisor. It presents several theorems related to division, such as the existence of unique quotients and remainders, and the fundamental theorem of arithmetic, which states that every integer greater than 1 can be uniquely represented as a product of primes. The chapter emphasizes the importance of these concepts in understanding the relationships between numbers.

Uploaded by

ahysm56
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views6 pages

Ent 01

Chapter 1 discusses division and factorization in number theory, focusing on the properties of natural numbers and integers, including the concepts of divisors and the greatest common divisor. It presents several theorems related to division, such as the existence of unique quotients and remainders, and the fundamental theorem of arithmetic, which states that every integer greater than 1 can be uniquely represented as a product of primes. The chapter emphasizes the importance of these concepts in understanding the relationships between numbers.

Uploaded by

ahysm56
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

CHAPTER 1

Division and Factorization

!c W W L Chen, 1981, 2013.


This chapter originates from material used by the author
at Imperial College London between 1981 and 1990.
It is available free to all individuals,
on the understanding that it is not to be used for financial gain,
and may be downloaded and/or photocopied,
with or without permission from the author.
However, this document may not be kept on any information storage and retrieval system
without permission from the author,
unless such system is not accessible to any individuals other than its owners.

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

Note now that


(1.3) (rn−1 , rn ) = (rn qn+1 , rn ) = rn .
The result follows on combining (1.1)–(1.3). %
Example. Consider (589, 5111). In our notation, we let a = 589 and b = 5111. Then we have
5111 = 589 × 8 + 399,
589 = 399 × 1 + 190,
399 = 190 × 2 + 19,
190 = 19 × 10.
It follows that (589, 5111) = 19. On the other hand,
19 = 399 − 190 × 2
= 399 − (589 − 399 × 1) × 2
= 589 × (−2) + 399 × 3
= 589 × (−2) + (5111 − 589 × 8) × 3
= 5111 × 3 + 589 × (−26).
It follows that x = −26 and y = 3 satisfy 589x + 5111y = (589, 5111).
A very useful result concerning divisors is the following.
Theorem 1.4. Suppose that a, b ∈ N and (a, b) = 1. Suppose further that w ∈ N satisfies w | ab.
Then there exist unique u, v ∈ N such that u | a, v | b and w = uv.
Proof. We first of all show that u = (w, a) and v = (w, b) satisfy the requirements. Consider the
number (w, a)(w, b). By Theorem 1.2, there exist x1 , y1 , x2 , y2 ∈ Z such that (w, a) = wx1 + ay1 and
(w, b) = wx2 + by2 , so that
(w, a)(w, b) = (wx1 + ay1 )(wx2 + by2 ) = w(wx1 x2 + ay1 x2 + bx1 y2 ) + aby1 y2 .
It follows that
(1.4) w | (w, a)(w, b).
On the other hand, since (a, b) = 1, it follows from Theorem 1.2 that there exist x, y ∈ Z such that
ax+by = 1, so that w = wax+wby. Note now that (w, a) | a and (w, b) | w, so that (w, a)(w, b) | wax.
Note also that (w, a) | w and (w, b) | b, so that (w, a)(w, b) | wby. It follows that
(1.5) (w, a)(w, b) | w.
Combining (1.4) and (1.5), and noting that w, (w, a), (w, b) ∈ N, we conclude that w = (w, a)(w, b).
To show uniqueness, it suffices to show that if u, v ∈ N satisfy u | a, v | b and w = uv, then u = (w, a)
and v = (w, b). Since u | w and u | a, it follows from Theorem 1.2 that u | (w, a). Similarly v | (w, b).
Suppose on the contrary that u #= (w, a). Then u < (w, a), so that w = uv < (w, a)(w, b) = w, a
contradiction. A similar contradiction arises if v #= (w, b). %

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

Theorem 1.6. Suppose that a1 , . . . , ak ∈ Z, and p ∈ N is a prime. If p | a1 . . . ak , then p | aj for


some j = 1, . . . , k.
Theorem 1.7 (Fundamental theorem of arithmetic). Every integer n " 2 is representable as a
product of primes, uniquely up to the order of factors.
Remark. If the integer 1 were included as a prime, then we would have to rephrase the statement of
the Fundamental theorem of arithmetic to allow for different representations like 6 = 2×3 = 1×2×3.
Proof of Theorem 1.7. We first of all show by induction that every integer n " 2 is representable
as a product of primes. Clearly 2 is a product of primes. Assume next that n > 2 and that every
integer m ∈ N satisfying 2 ! m < n is representable as a product of primes. If n is a prime, then
it is obviously representable as a product of primes. If n is not a prime, then there exist n1 , n2 ∈ N
satisfying 2 ! n1 < n and 2 ! n2 < n such that n = n1 n2 . By our induction hypothesis, both n1
and n2 are representable as products of primes, so that n must also be representable as a product of
primes.
Next we show uniqueness. Suppose that
(1.6) n = p1 . . . pr = p#1 . . . p#s ,
where p1 ! . . . ! pr and p#1 ! . . . ! p#s are primes. Now p1 | p#1 . . . p#s , so it follows from Theorem 1.3
that p1 | p#j for some j = 1, . . . , s. Since p1 and p#j are both primes, we must then have p1 = p#j . On
the other hand, p#1 | p1 . . . pr , so again it follows from Theorem 1.3 that p#1 | pi for some i = 1, . . . , r, so
again we must have p#1 = pi . It now follows that p1 = p#j " p#1 = pi " p1 , so that p1 = p#1 . Removing
the factor p1 = p#1 from (1.6), we obtain
p2 . . . pr = p#2 . . . p#s .
Repeating this argument a finite number of times, we conclude that r = s and pi = p#i for every
i = 1, . . . , r. %
Grouping together equal primes, we can reformulate Theorem 1.7 as follows.
Theorem 1.8. Every natural number n > 1 is representable uniquely in the form
(1.7) n = pm1 mr
1 . . . pr ,

where p1 < . . . < pr are primes, and where mj ∈ N for every j = 1, . . . , r.


The representation (1.7) in Theorem 1.8 is known as the canonical decomposition of the natural
number n.

1.3. Some Elementary Properties of Primes


There are many consequences of the Fundamental theorem of arithmetic. The following is one
which concerns primes.
Theorem 1.9. There are infinitely many primes.
Proof. Suppose on the contrary that p1 < . . . < pr are all the primes. Let
n = p1 . . . pr + 1.
Then n ∈ N and n > 1. It follows from the Fundamental theorem of arithmetic that pj | n for some
j = 1, . . . , r, so that pj | (n − p1 . . . pr ) = 1, a contradiction. %
Let n ∈ N, and let p be a prime. It is an interesting problem to find the largest integer k such that
pk | n!. In order to describe the answer to this question, we need to define one of the most useful
functions in number theory.
Suppose that α ∈ R. The number [α] ∈ Z is defined to be the unique integer m ∈ Z satisfying
m ! α < m + 1. We call [α] the integer part of α.
Examples. We have [π] = 3, [5] = 5 and [−π] = −4.
The integer part function has many interesting properties. The proof of the following results is left
as an exercise.
1.4. SOME RESULTS AND PROBLEMS CONCERNING PRIMES 5

Remarks. Suppose that α, β ∈ R.


(i) We have α − 1 < [α] ! α and 0 ! α − [α] < 1.
(ii) If α " 0, then [α] counts the number of natural numbers not exceeding α. In other words,
!
[α] = 1.
1!n!α

(iii) For every n ∈ Z, we have [α + n] = [α] + n.


(iv) We have [α] + [β] ! [α + β] ! [α] + [β] + 1.
(v) If α ∈ Z, then [α] + [−α] = 0. If α #∈ Z, then [α] + [−α] = −1.
(vi) The number −[−α] is the smallest integer not less than α.
(vii) If n ∈ N, then [[α]/n] = [α/n].
(viii) The number [α + 12 ] is one of the two integers nearest to α. Furthermore, if these two integers
both differ from α by the same value, then [α + 12 ] is the larger of these two integers.
(ix) If α > 0 and n ∈ N, then [α/n] is the number of positive integers not exceeding α and which
are multiples of n.
Theorem 1.10. Suppose that n ∈ N and p is a prime. Then the largest integer k such that pk | n!
is given by
!∞ " #
n
k= .
j=1
pj

Proof. Suppose that m ∈ N and 1 ! m ! n. If pr | m and pr+1 ! m, we want to count a


contribution of r. In other words, we count a contribution of 1 for every j ∈ N such that pj | m.
Hence
!n ! ∞ !∞ ! n !∞ " #
n
k= 1= 1= ,
m=1 j=1 j=1 m=1 j=1
pj
pj |m pj |m

in view of Remark (ix) above. %


If m ∈ N and p is prime, we sometimes write pr ' m if pr | m and pr+1 ! m.
Example. Suppose that 3k ' 150!. Then
" # " # " # " # " #
150 150 150 150 150
k= + + + + + ...
3 32 33 34 35
= 50 + 16 + 5 + 1 + 0 + . . .
= 72.

1.4. Some Results and Problems Concerning Primes


Given that there are infinitely many primes, a natural question that arises is to determine the
number π(X) of primes that do not exceed a given real number X. This was the subject of much
investigation in the 1800’s. For example, Legendre proposed in 1808 that there is a constant A such
that for large values of X, the number π(X) can be approximated by
X
(1.8) .
log X − A
Gauss proposed the function
1
log x
as an approximation to the average density of distribution of primes near any large real number x,
and thus formulated the function
$ X
dx
(1.9)
2 log x
as an approximation to π(X). Note that the dominating term in the integral is
X
(1.10) ,
log X
6 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.

You might also like