Elements of Number Theory - Pettofrezzo
Elements of Number Theory - Pettofrezzo
ELEMENTS
Prentice-Hall, Incorporated
Englewood Cliffs, New Jersey
OF NUMBER THEORY
ANTHONY J. PETTOFREZZO
Professor of Mathematical Sciences
Florida Technological University
Orlando, Florida
DONALD R. BYRKIT
Assistant Professor
Faculty of Mathematics and Statistics
7716 University of West Florida
Pensacola, Florida
ELEMENTS OF NUMBER THEORY
by Anthony J. Petmfrezzo and Danald R. Byrkit
V 140128
vi PREFACE
Three main topics of number theory considered in this book are the di-
visibility properties of integers, the theory of congruences, and continued
fractions. Linear Diophantine equations in one variable and more than one
variable are treated briefly.
Chapter 1 consists of a brief presentation of four preliminary considera—
tions which are pertinent to the remainder of the book. Chapter 2 is funda—
mental to the rest of the book. The properties of prime and composite
numbers, the fundamental theorem of arithmetic, number-theoretic functions,
perfect numbers, and the Euler ¢-function are considered. Chapter 3 presents
the theory and methods of solving linear congruences, the theorems of
Euler, Fermat, and Wilson, the relationship between linear congruences and
linear Diophantine equations, the Chinese remainder theorem, and quad-
ratic congruences. Finite and infinite continued fractions are treated in
Chapter 4. The evaluation of convergents and the use of their properties in
the study of linear Diophantine equations, approximation theory, and the
solution of quadratic equations are stressed. Periodic continued fractions
and square roots of the positive integers as continued fractions complete the
study of Chapter 4. Certain relatively difficult theorems concerning continued
fractions have been omitted or are stated without proof wherever necessary
in order to establish the continuity of the subject.
More than 110 detailed illustrative examples have been included as an aid
to the reader in his mastery of the concepts and methods presented. The
proofs of 73 theorems are presented. There are over 530 exercises, many of
which have several parts, that range from routine numerical problems to
those requiring some degree of ingenuity on the part of the reader. Several
exercises are included which afford the reader an opportunity to investigate
a mathematical problem, make a conjecture, and verify or prove the con-
jecture. Answers to approximately 400 selected exercises are provided in the
back of the book.
The only prerequisite for the reader is a mathematical maturity usually
obtained from a well-defined secondary school mathematics program, and
perhaps one or two introductory college-level mathematics courses. No
previous knowledge of abstract algebra is assumed. Some familiarity with
determinants is assumed for an understanding of §4.5. The book contains
enough material for a one-semester course in number theory at the under-
graduate level. The topics of the book constitute appropriate subject matter
for teacher training programs, summer institute study, and in-service pro-
grams. Elements of the book may be used by advanced students in a secondary
school enrichment program.
We wish to express our appreciation to Mr. James Walsh, for his continued
encouragement and interest during the evaluation and development of the
manuscript, to Mr. Wayne P. Ellis for his editorial comments and suggestions,
PREFACE vii
and to the entire editorial and production staff of Prentice-Hall, Inc., for
their efforts and contributions toward the publication of the book. A special
note of appreciation is due Mr. Donald W. Duman, who constructed the list
of prime numbers less than ten thousand which appears in the back of this
book, using the computing facilities at Southern Connecticut State College.
We also acknowledge our appreciation and gratitude to Mrs. Betty Petto—
frezzo, who gave willingly of her time and ability to type the manuscript.
A. J. P.
D. R. B.
CONTENTS
chapter I
PRELIMINARY
CONSIDERATIONS
ix
x CONTENTS
chapter 2
DIVISIBILITY
PROPERTIES
OF INTEGERS 23
chapter 3
THE THEORY OF
CONGRUENCES 87
3.1 DEFINITIONS
AND ELEMENTAR Y PROPERTIES 87
CONTENTS xi
chapter 4
CONTINUED
FRACTIONS 149
ANSWERS
TO SELECTED
EXERCISES 207
LIST OF
PRIME NUMBERS
LESS THAN
10,000 238
INDEX 242
chapter I
In. our study of number theory we shall be primarily concerned with the set
I of integers and the binary operations of addition + and multiplication x
defined on that set. The system (I, +, X , <) of integers has a number of pro-
perties which we present here for reference purposes.
Properties of Equality
Reflexive: a = a for every a.
l
2 PRELIMINARY CONSIDERATIONS § 1.1
Symmetric: If a : b, then b : a.
Transitive: If a = b and b = c, then a = c.
Ifugb,thena+cgb+c.
Ifagbandc>0,thena><cgb><c.
Ifagbandbgc,thenagc.
Ifa+cgb+c,thenagb.
Ifaxcgbxcandc>0,thenagb.
(2e4)eszies:4
and
263(463)=2®2=4;
thus,
(2®4)$3:263(4€B3)-
Similarly,
(2®4)®3=3®3:4
® I 0 1 2 3 4 ® ll 0 1 2 3 4
0 0 l 2 3 4 0 0 0 0 0 0
1 l 2 3 4 0 1 0 1 2 3 4
2 2 3 4 0 1 2 0 2 4 1 3
3 3 4 0 1 2 3 0 3 1 4 2
4 4 0 1 2 3 4 0 4 3 2 1
4 PRELIMINARY CONSIDERATIONS § 1.1
and
2®(4®3)=2®2=4;
thus,
(2®4)®3=2®(4®3)-
a
4L l l I I l I I I I I I I l I
01234567891011121314
c=6;2><6>11.
Fig.1.1
§ 1.1 ORDERED INTEGRAL DOMAINS 5
Division Property: If a is any integer and b is a' positive integer, then there
exists a unique pair of integers q and r such that
EXER CISES
1. Consider a finite set D, where D ={0, 1, 2), with the binary operations (-9
and (3 defined on the set by means of the given tables:
(+3
-o®
COCO
HNON
h—lo
(-9 ®
rot—out»
H
ooooo
uN—oo
HOUNN
NONON
HNwou
0 0
ot—
1 1
9:c
2 2
3 3
In Exercises 6 through 9 illustrate the division property by finding q and r for each
pair a and b:
6.a=132;b=7. 7.a=—52;b=3.
8.a=132;b=11. 9.a=541;b=16.
10. Use the well-ordering principle to prove that there is no integer between 0 and
1. (Hint: If e is a positive integer such that 0 < c < 1, then 0 < c2 < c < 1.)
11. Use the well-ordering principle to prove the division property.
EXAMPLE 1. Prove that the sum of the first n odd integers is 712.
Since the first odd integer is 1, the second odd integer is 3, the
third odd integer is 5, . . ., then the nth odd integer is of the form
2n ~ 1. Thus, we need to show that
1+3+5-l—---+(2n—1)=n2 (1.2.1)
for all positive integers n. Let S be the set of positive integers for
§1.2 MATHEMATICAL INDUCTION 7
1+3+5+---+(2k—1)7k1- (11-2)
In order to show thatk + 1 is an element of S, it is necessary to show
that
1+3+5+“-+(2k—1)+[2(k+1)*1]:(k-H)‘.
Note that 2(k + 1) 7 1 = 2k + 1. By adding equals to both mem-
bers of equation (1.2.2), we obtain
1+3+s+~~+(2k71)+[2(k+1)—11=k1+2k+1
=(k+1)1.
Hence, k + 1 is an element of S. Therefore, by the first principle of
mathematical induction, S is the set of all positive integers; that is,
statement (1.2.1) is true for all positive integers n.
2“— 1 :31;
=4-2’”‘—1
:4-2"—4+471
=4(22"71)+3
:4-3p+3
=3(4p+1).
Hence, 2‘” 7 1 is a multiple of3 for n 7 k + 1 if 22" 7 1 is a multi-
8 PRELIMINARY CONSIDERATIONS § 1.2
1+2+3+---+n=1 (1-2-3)
is true if n = 1. However, if the statement is assumed to be true for n = k
where k is any positive integer, we can show that it is false for n : k + 1.
Hence, statement (1.2.3) is not true for all positive integers n. Similarly, the
statement
2+4+6+---+2n=n2+n+1 (1.2.4)
EXERCI SES
tical induction:
In Drew-S“ I through 12 prove 9“" ”meme“ by mathema
1‘1+2+3+"'+"="("2—+1)-
H2=W.
2. 11+21+31+HI+
3.1’+2’+3=+~-~+n’:"‘("4_+‘>’.
§ 1.3 NUMBER BASES 9
4.1+2+2‘+---+2""=2"71.
5.1+5+9+‘-‘+(4n—3)=n(2n71).
L L L #7 ’1
6‘1-2+2.3+3-4+ +n(n+1)_n+1‘
7.a+(a+d)+(a+2d)+"‘+[a+(n71)dl=g[2a+(nil)d].
8.a+ar+ar‘+-~-+ar"“=£:%p,providedr¢l.
9. 5’”—1isamultipleof24.
10. 10"“ — 9n 7 10 is a multiple of 81.
11.2">n.
1 1
12.1+;+§+ 1 1
+Fsz—;.
13 Prove that the first and second principles of mathematical induction are equiva-
lent statements.
14 Prove that the second principle of mathematical induction implies the well-
ordering principle.
15 Prove that the well»ordering principle implies the first principle of mathematical
induction.
5763=S-IO3+7-101+6-10+3,
5637:5-103+6-102+3-10+7,
and
3675:3-103+6-102+7-10+5;
thus, 5763, 5637, and 3675 each denote difierent unique numbers although
the same four digits, 3, 5, 6, and 7, are used in representing each of the
10 PRELIMINARY CONSIDERATIONS § 1.3
782:7-12z+8-12+2.
431m=4-81+3-8+1
§ 1.3 NUMBER BASES 11
=4'64+3-8+1
=256+24+1
=281.
Note that all numerals on the right side of each indicated equation are written
in base ten. Furthermore, “431mm” should be read “four three one, base
eight,” not “four hundred thirty one.”
The operations and rules of addition and multiplication are basically the
same in any positional system of notation. However, different addition and
multiplication tables are needed for the nonnegative integers less than the
base for each number base used. For example, the addition and multiplication
tables for the base seven system are given in Tables 1.3.1 and 1.3.2, respec-
tively.
Table 1.3.1
ADDITION TABLE FOR THE BASE SEVEN SYSTEM
, ll 0 1 2 3 4 5 6
0 0 1 2 3 4 5 6
1 1 2 3 4 5 6 10
2 2 3 4 5 6 10 11
3 3 4 S 6 10 11 12
4 4 5 6 10 ll 12 13
5 5 6 10 11 12 13 14
6 6 10 11 12 13 14 15
Table 1.3.2
MULTIPLICATION TABLE FOR THE BASE SEVEN SYSTEM
0
._.
><||
0
mmhuNp—o
Quantum—o
O
0
m
N
..N
A
N
_
UI
O
0
0
0
12 PRELIMINARY CONSIDERATIONS § 1.3
532seven
m
Thus,
and
268 X 34 = 9112.
1639 = 4531
=4-73+s-71+3-7+1
:(4-72+5-7+3)7+1
=[(4-7+5)7+3]7+1.
Therefore, ifthe number 1639 is divided by 7, the quotient is (4 - 7 + 5) 7 + 3
and the remainder is 1; if the quotient (4 - 7 + 5) 7 + 3 is divided by 7, the
second quotient is 4 - 7 + S and the second remainder is 3; if the quotient
4 - 7 + 5 is divided by 7, the third quotient is 4 and the third remainder is
5; if the quotient 4 is divided by 7, the fourth quotient is 0 and the fourth
remainder is 4. Thus, the remainders for each division process, if considered
in the reverse order of appearance, may be associated with the digits of the
§ 1.3 NUMBER nuns 13
number 1639 expressed in base seven notation. The algorithm (refer to defi-
nition on page 36) presented here may be abbreviated in the following form:
remainder 1
remainder 3
remainder 5
remainder 4.
remainder 2
remainder 3
remainder 1
remainder 4
remainder 3.
One of the simplest and most useful positional numeral systems is the
binary system, a system with base two. Only the two digits 0 and l are neces-
sary in the binary system. The addition and multiplication tables for the
binary system are given in Tables 1.3.3 and 1.3.4, respectively.
14 PRELIMINARY CONSIDERATIONS §1.3
0 0 1 0 0 0
1 1 10 1 0 I
111m=1-22 +1-2+1:7,
=91,
and
13X7=91.
§ 1.4 NOTATIONS FOR SUMS AND PRODUCTS 15
EXERCISES
7. 313221our. 8. 5t19e1evcn.
Express each number in (a) base eight notation; (b) binary notation:
In Exercises 11 and 12 write the addition and multiplication tables for the nonnegative
integers less than the base for each system of notation with the given base:
11. 5. 12. 8.
In number theory we often need to compute either the sum or the product
of related expressions. It is convenient to define a summation symbol and a
product symbol to indicate “the sum of” terms of a given form and “the pro-
duct of” factors of a given form, respectively. The Greek capital letter
“sigma,” 2, is used as a summation symbol. By definition,
n n71
n
lg”
Zai=Zai—l—a,I and
ah
x=m
' i=m i
1 1
=2m+2h
i:1 i=1
k k k
'25“! + bi) :21“; + Ebr-
I: I: i=1
Then, by definition,
h+1 h
2:101.- + bi) :25“: + bi) + (ak+l + bh+1)
h k
k k
= (‘Zrai + ak—H) + ( 2b! + bk+1)
1: i=1
k+1 k+1
= 2 :1i + Z bi.
i=1 i=1
Therefore,
.2(ai+b9=iai+ibi
l=l i=1 1:1
§le4 NOTATIONS FOR suMs AND PRODUCTS 17
in
Theorem 1.4.2: If r is a canstant, then 2 c : nc.
i=1
If n = 1, then by definition
1
Zcizcl=c=lw
i=1
k
251:,“
i=1
Then, by definition,
Ic+1 k.
ct = 2 C! + ck+1
=1 {:1
=kc+c
= (k + l)c.
Therefore,
that is,
The proof of Theorem 1.4.3 follows directly from Theorems 1.4.1 and
1.4.2 and is left to the reader as an exercise (Exercise 15).
n 5
Theorem 1.4.4: If t is a constant, then Z M,- 2 c 2 at.
i= 1 i: 1
5
EXAMPLE 1. Evaluate 21'2".
i=1
5
2i2i=1.2‘ +2-22+3-23+4-24+5-25
i=1
=2+8+24+64+160
=258.
n n 2
EXAMPLE 3. Show that 2 af as ( Z (1,.) .
i: 1
Let n = 2. Then
1
20;2_
ea.2 +a§..
i:1
§ 1.4 NOTATIONS FOR sums AND PRODUCTS 19
2 2
I! Hi] In
n
ll'laa :am'am+1 'am+2 ' '“nr
x=m
Then, by definition,
20 PRELIMINARY CONSIDERATIONS §1.4
k+1 k
n h
=(l-[ai‘1—Ibi) ‘az+1bh+1
(=1 I=I
=[(.Iial)-a~+1]{aim-hm]
k+1 ’H—l
Therefore,
Then, by definition,
§ 1.4 NOTATIONS FOR sums AND PRODUCTS 21
Therefore,
.2:
H
.‘n
J.‘
that is,
”:1;
H
na
a
for all positive integers n.
n 71
Theorem 1.4.7: Ifc is a constant, then H cai = c” H at.
i=1 i: l
4
EXAMPLE 4. Evaluate H (21‘ + 1)‘.
i=1
4 4 2
H (21' + 1)‘ 2 [H (21' + 1)] (by Theorem 1.4.5)
1:1 4:1
: (3 . 5 . 7 . 9)2
: 9452
2 893,025.
EXERCISES
.
s. 131‘ (i’ + 3). 6. _1'1 5.
22 PRELIMINARY CONSIDERATIONS § 1.4
2 J m J
7. 2 22'3’. 8. E 20" + 1).
1‘! i- 1 j: x (=1
11.2(i+3)=>:i.
H is. 12.2(2+i)=2+2i.
m is.
. . 2 5 5
13.11a?=(1'la.).
m m 14.2a,=2a..
m .-=.
15. Prove Theorem 1.4.3.
16. Prove Theorem 1.4.4.
17. Prove Theorem 1.4.7.
19. Prove that (13101; + b.) 2 EI‘aI + [I‘bh where m and bx are uonnegative inte-
gets.
20. Prove that li,aibi 5 (£111.) (32‘1”), where a. and b. are nounegative integers.
chapter 2
DIVISIBILITY
PROPERTIES
OF INTEGERS
If a, b, and c are integers such that ab = c, then a and b are called factors,
or divisors, of c, and c is called a multiple of a and of 174 The number 3 is a
factor of 12 since 3 - 4 = 12; the number 12 is a multiple of 3. Similarly, 4
is a factor of 12; the number 12 is a multiple of 4. There are also other factors
of 12. For example, —2 is a factor of 12 since (—2) (76) = 12.
If a number dis a factor, or divisor, of a number 6, it shall be denoted
by d|c. If dis not a factor of c, then we write 114’s.
Now, let us consider the positive integers greater than 1, that is, 2, 3,
4, . . .. Each of these integers can be classified as either a prime number or
a composite number. A positive integer p greater than 1 is called a prime if it
has no positive factors other than 1 and p. A positive integer greater than 1
that is not a prime is called a composite; that is, a composite number is a
23
24 DIVISIBILITY PROPERTIES OF INTEGERS § 2.1
positive integer n that has positive factors other than 1 and n. The number
5 is a prime number since it has no positive factors other than 1 and 5. The
number 10 is a composite number since 2 is a factor of 10 while 2 ye 1 and
2 9e 10. Since the number 1 is not considered to be either a prime number
or a composite number, then each number in the set of positive integers is
either prime, composite, or equal to 1.
I: : nlnz,
where nl and n; are positive integers both of which are less than n. If either
n1 or n2 is a prime, the theorem is proved. If n1 is not a prime, then
711 : n3n4,
where n3 and n, are positive integers both of which are less than n1. Again,
if either na or n4 is a prime, the theorem is proved. If n3 is not a prime, the
process is continued by writing
”3 : ”snsv
where ns and 716 are positive integers both of which are less than n3. In gen-
eral, after k steps we write
n>n1>n3>n5>m>nufl>0
for any value k, the process must terminate; that is, since there are only a
finite number of composite integers less than 71, there must exist an n2k_1,
for some value of k, that is a prime. Hence, every composite number has
a prime factor.
If 113 has any positive factors other than 1 and 113, there will exist a factor
less than or equal to the square root of 113. For every factor greater than
the square root of 113, there must exist an associated factor less than the
square root in order for their product to be equal to 113. Therefore, to deter-
mine whether 113 is a prime or a composite, we only need to determine if
positive factors greater than 1 and less than or equal to the square root of
113 exist. The possible such factors are, in this case, 2, 3, 4, . . ., and 10.
Indeed, in View of Theorem 2.1.], we only need to check for factors those
integers less than or equal to the square root of 113 that are prime numbers;
that is, 2, 3, 5, and 7. Since the integers 2, 3, 5, and 7 are not factors of 113,
we conclude that 113 is a prime.
In general, to determine whether a given number p is a prime or a com-
posite, we only need to determine if any prime number less than or equal
to J} is a factor of the number p. If any prime less than or equal to V1? is
a factor of p, then 17 is a composite number. Otherwise, p is a prime number.
3l3=156-2+l,
313:104-3+l,
313:62-5+3,
313:44-7+5,
313:28-11 +5,
313=24-13+l,
313=18-17+7.
discovered a formula that will determine the nth prime. That is, no explicit
formula or rule has yet been developed which generates the prime numbers.
Furthermore, it should be noted that the method of Example 1 is impractical
for relatively large numbers.
EXAMPLE 2. Find all primes that are one less than a perfect square.
There exist many simple ways of classifying primes. The next example
illustrates one of these ways.
EXERCISES
H
The problem of obtaining a complete list of primes less than some number n
can be a rather laborious task for large values of n. Indeed, for extremely
large values of n the task may be almost impossible from a practical stand-
point. Several complete, reliable lists of primes exist for values of n up to
approximately 107. Probably one of the best-known tables of primes is that
of D. N. Lehmer (List of Prime Numbers from I to 10,006,721 , Washington,
D. C.: Carnegie Institution of Washington, 1914).
A technique known as the sieve a! Eratosthenes, named for the Greek
mathematician Eratosthenes (276—194 B.C.), represents a reasonable method
for obtaining a complete list of primes less than or equal to n where n is a
relatively small value. The sieve technique consists of writing a list of positive
integers from 2 to n. Then every second number after 2 is "sieved out" or
crossed out since such numbers contain the factor 2 and, hence, are compos-
28 DlVlSlBlLlTY PROPERTIES OF INTEGERS § 2.2
ite; that is, 4, 6, 8, . . . are composite numbers. Every third number after 3
is crossed out since such numbers are composite; that is, 6, 9, 12, . . . are
composite numbers; every fifth number after 5 is crossed out; every seventh
number after 7 is crossed out; . . .. In the sieve process many composite
numbers may be sieved out, or crossed out, more than once. The process is
terminated when the multiples ofp, other than itself, for all primes p S J};
have been crossed out. The positive integers that remain after this sieve
process are the primes less than or equal to n.
Table 2.2.1 represents the results of the completed sieve process for
n = 150. The primes less than or equal to 150 are circled.
Table 2.2.]
THE SIEVE OF ERATOSTHENES FOR
n:150
© @ I © 1’
® 3’ I 14/ ® 2!
® I! 44’ J6 (D X
36 2? 31/ ® a!
2! )6 If A“ ® 46
® 32 36’ at a 36’
® as 3: w W
I M 96 @ A!
45 :9 5r 9: 63 5r
2: M :4 s: (59 w
or s: 64 65 a?
9x a: 2? ® n
® 74 at w 2/ 26'
as art M @ 11/
36 96 81 m as
M 71 95 94 as x
9! 3f 196 {El M
M W an «m w
m m 142 ® m
M 1A6 m m m w
m 1;! 12s m 125 w
@ 128 m w @ m
m 1M 14v! Us @ w
m w m w m
w us we w
§ 2.2 some PROPERTIES or PRIME NUMBERS 29
Note that except for the primes 2 and 3, every prime number in Table
2.2.1 occurs in either the first or the fifth column. The positive integers
located in these columns are of the form 6k + 1 or 6k — l, where k is a
positive integer. One might conjecture that every prime number, except 2
and 3, is of the form 6k + l or 6k — 1. Such a conjecture can be shown to
be true, and the proof is left to the reader as an exercise (Exercise 6).
An examination of a more extensive sieve of Eratosthenes would suggest
additional properties of prime numbers. For example, the distribution of
primes decreases steadily; that is, the ratio of the number of primes to the
number of positive integers less than or equal to it decreases as n increases.
We shall denote the number of primes less than or equal to n by 7r(n). Table
2.2.2 shows the number of primes and the ratio of the number of primes to
the number of positive integers less than or equal to n for n = 1,000; 2,000;
3,000; ...; 10,000.
Table 2.2.2
A DISTRIBUTION or PRIMES FOR n S 10,000
It 1r(n) 1t(n)/n
1,000 168 0.1680
2,000 303 0.1515
3,000 430 0.1433
4,000 550 0.1375
5,000 669 0.1338
6,000 783 0.1305
7,000 900 0.1286
8,000 1007 0.1259
9,000 1117 0.12.41
10,000 1229 0.1229
One might conjecture that since the distribution of primes steadily de-
creases, the number of primes is finite. However, such a conjecture is false.
Euclid proved that the number of primes is infinite.
n+1=(2-3'5-7-----p)+1>p.
30 Drvrsrmmrv PROPERTIES or INTEGERS §2.2
lim[1t(n)-(log,n) / n] = 1. (2.2.1)
However, relationship (2.2.1) was first proved independently during the last
decade of the 19th century by the French mathematician Hadamard (1865~
1963) and the Belgian mathematician de la Vallée-Poussin (1866—1962). The
statement of equation (2.2.1) is known as the Prime Number Theorem. Table
2.2.3 indicates the validity of the Prime Number Theorem.
Table 2.2.3
n 1:01) n/log.n 7r(n) - (log.n)/n
1,000 168 145 1.159
10,000 1,229 1,086 1.132
100,000 9,592 8,686 1.104
1,000,000 78,498 72,382 1.084
10,000,000 664,579 620,421 1.071
100,000,000 5,761,455 5,428,681 1.061
N=6(p.p2 "'p.)-1-
Note that N is of the form 6k — 1. If N is a prime number, then p,I
§ 2.2 some PROPERTIES or PRIME NUMBERS 31
11!+2,11!+3,11!+4,...,11!+11. (2.2.2)
Note that the sequence of (2.2.2) is not the only sequence of ten con-
secutive composite integers. An examination of Table 2.2.1 yields several
sequences of ten consecutive composite integers between 113 and 127:
32 DIVISIBILITY rmpcnnns or 1NTEOER5 § 2.2
114,115,116, ...,123;
115,116,117, ...,124;
117,118,119, r..,126.
(n,+1)!+2.(n+1)5+3,(n+1)!+4. -.-,(n+1)!+(n+1)-
Interestingly enough, the question of whether or not there are infinitely many
triplets of consecutive odd integers, all of which are prime, has been answered.
The number of “prime triplets,” such as 3, 5, and 7, is finite (Exercise 7).
A number of interesting problems concerning primes remain unsolved.
Numerous research efforts have been devoted to the solution of a problem
known as Goldbneh’s conjecture. In the 18th century, a mathematician named
§ 2.2 some PROPERTIES OF PRIME Humans 33
Charles Goldbach conjectured that every even integer greater than 4 can be
expressed as the sum of two odd primes. For example,
6:3+a
8=3+i
w=3+7zs+i
n=5+z
M:3+U=7+L
m:3+n=5+u,
EXERCISES
(24, 78) : 6.
Theorem 2.3.1: If a and b are integers which are not both zero, then the
greatest common divisor (a, b) of a and b is the smallest positive integer
that can be expressed as a linear homogeneous function of a and b; that
is, (a, b) is the smallest positive integer such that
(a, b) = M + yb,
§ 2.3 THE GREATEST COMMON Drvrsox 35
PROOF: Consider the set S of all positive integers of the form xa + yb,
where x and y are integers. The set S is obviously not an empty set since
a2 + b2 > 0. Therefore, there exists a smallest positive integer g in the set
such that '
Then
r = a a qg.
r a — q(xra +yrb)
(1 — 1m) a + (—01) b;
that is, r is a linear homogeneous function of a and b. However, r is not a
member of S since 0 g r < g and g is the smallest positive integer in S.
Therefore, r : 0 and a = qg; that is, g|a. In a similar manner, it can be shown
that glb. Hence, g is a common divisor of a and 17.
Let k be any other divisor of a and b. Consider ka’ = a and kb’ = b.
Then
2: : X1 (160') + yr 065')
= k(x1a' + yxb')
/ mw=m+m
36 DIVISIBILITY PROPERTIES OF INTEGERS §2.3
d = ra + sb,
for some pair of integers r and r, then 11 need not be the greatest common
divisor. For example, if
(a, b) : M + yb,
d : ra + 5b,
Theorem 2.3.2- The greatest common divisor of two integers, which are not
both zero, is unique.
PROOF: If g and g' are two positive integers satisfying conditions (i)
and (ii) for two integers a and b, which are not both zero, then glg’ and
g’lg. Hence, g r g’.
While Theorems 2.3.1 and 2.3.2 considered together state that a greatest
common divisor of two integers which are not both zero exists and is unique,
neither theorem gives a procedure for determining a greatest common di-
visor. We shall illustrate a procedure for doing so when both integers are
nonzero. This procedure, an algorithm, depends upon the division property.
An algorithm is a procedure involving repeated applications of a formula,
a rule, or an operation such that the information or result derived at each
step is used in the succeeding step until the desired result is obtained.
Consider two unequal positive integers a and b. Let a > b. Then in
general, by the division property, there exist q {s and r i‘s such that
rib: =qq+1rk + ’k
= (qq+1 + 1) ’1:-
Therefore, rk|rksz. By substitution for r,,_2 and rk,1 in the second-to-last
equation,
Therefore, r,‘|r_,,3. By continuing along these lines, we can show that since
r,‘|r1 and 7,,e in the second equation, then rklb. Therefore, using the first
equation, rk|a so that condition (i) is satisfied; that is, r,‘ divides a and b. To
show that condition (ii) is satisfied, let d|a and d|b. Then, from the first equa-
tion, dirt; from the second equation, dlrz; from the third equation, dlrs; . . . ,
and finally from the next-to—last equation, d|r,,. Therefore, every divisor of
a and b also divides rk. Hence, (a, b) : rk.
If a or b is a negative integer, we may disregard the negative sign in
using Euclid's algorithm since
38 Dlvrsraru'rv PROPERTIES OF INTEGERS § 2.3
609 =1-551+58,W(
551:9-58 +29,
and
58 = 2 - 29.
’1 =1 +(‘qr)b,
252=1-180 +72,
180=2-72+36,
and
72 = 2 ~ 36.
Hence,
Now,
72 = 252 +(—1)-180,
and
Since
then
that is,
EXERCISES
In Exercises 9 through 16 find integers x and y such that each statement 1': true:
Theorem 2.4.1: If (1,, a2, . . ., and oz,I are nonzero integers where n 2 3, then
Since gla, for i: 1, 2, .. ., n, then g|(a1, a2, . . ., anil) and glan. Hence,
g|g’. In a similar manner, since g’1(a,, 42,. . ., an_1) and g’lan, then g’la, for
i = 1, 2, . . ., n. Hence, g’|g. Since g and g’ are positive integers, then g = g’
by the results of Exercise 4 of §2.1; that is,
By Euclid’s algorithm,
(570, 810, 495, 125) = ((570, 810, 495), 125) = (15, 125) = 5;
42 DIVISIEILITY PROPERTIES OF INTEGERS §2.4
that is, the greatest common divisor of 570, 810, 495, and 125 is 5.
Theorem 2.4.2: If a1, up. . i, and a" are integers which are not all zero, then
the greatest common divisor (al, a2, . . ., a") of a1, a2, . . ., and an is the
smallest positive integer that can be expressed as a linear homogeneous
function of a], a2, . . ., and a”; that is, (al, a2, .. ., an) is the smallest
positive integer such that I
5 =(78)-15 +(1)-125,
and
That is,
EXERCISES
Two integers a and b, which are not both zero, are called relatively
prime if their greatest common divisor is unity; that is, if (a, b) = 1. For
example, 22 and 15 are relatively prime integers, although neither integer is
a prime. More generally, the n 2 2 integers a1, a2, . . ., and an, which are not
all zero, are called relatively prime if their greatest common divisor is unity;
that is, if (a,, a2, ..., an) 2 1. Furthermore, if (11,, 11,-) : l for each i #j
and i,j : 1, 2, .. ., n, then the n 2 2 integers a1, a2, ..., and a,‘ are called
pairwise relatively prime. For example, the three integers 5, 10, and 13 are
relatively prime since (5, 10, 13) = 1; however, the three integers are not
pairwise relatively prime since (5, 10) aé 1.
The following theorems concerning the properties of the greatest com-
mon divisor of two integers are of interest. ’
Theorem 2.5.1: Two integers a and b, which are not both zero, are relatively
prime if and only if integers x and y exist such that
=s +yb.
1=xa+yb.
laéxa+yb
.
PROOF. 2 é _ e_ . é _ .,
If (11’ d) — k where k 9E 1, then dika and d 7 kb , that
is, a = likal and b : dkb’. Since dk|a and dklb, then d 96 (a, 1;). Hence, if
_ eé _
d—(a, b), then (d’ d)— 1.
1 : xa + yb;
1 2 m + sc.
Then
1:xa +yb(ra+sc)
(a, b1b2-"bh):1.
Hence,
(a, b1b2~~bn) :1
1 = xa + yb.
Then
c = xac + ybc.
Since a|bc and alac, then a|(xac + ybc) by Exercise 3 of §2.1; that is, alc.
EXER CISES
Prove:
I. If blc and (a, c) = 1, then (a, b) = 1.
2. If blc, then (a, b) 2 (a + c, b).
3. If (a, c) : 1, then (a, b) = (a, be).
4. If ale, blc, and (a, b) = 1, than ablc.
5. If (h, c) = 1, then (a, be) = (a, b)(a, c).
6. If (a, b) = 1, then (11", b") : lwhere k andn are positive integers.
7. If(a,b)=1,then(a+b,a—b)=lor(a+b,a—b)=2.
8. If (a, be) : 1, then (a, b) = 1 and (a, c) = 1.
46 mvxslmu‘rv PROPERTIES or 114mm § 2.6
ax + by : c,
where the values of x and y are restricted to the set of integers, is called a
linear Diophnntine equation in two variables. In general, any polynomial equa-
tion in several variables x, y, z, . . . with integral coefficients is called a Di-
ophantine equation if the values of the variables are restricted to the set of
integers. The Greek mathematician Diophantus was the first person to study
such equations at length. In this section the use of Euclid’s algorithm for the
solution of linear Diophantine equations in two variables will be discussed.
Consider the linear Diophantine equation
27:2-11 +5,
11 :2-5+l,
and
525-1.
5:27+(—2)-11,
and
11-(20) +27-(—8)=4.
x = 20 and y = 78.
x = —7 and y = 3;
x = 47 and y = —19.
ox + by = c
PROOF: Let g = (a, b). There exist integers a' and If such that a = ga’
and b = gb'. Thus,
2:“ + gb’y = c,
g (a’x + W) = v-
If a solution of this equation exists, then glc since g is a factor of the left
member of the equation.
Conversely, if glc, then there exists an integer c' such that c : gc’. By
Theorem 2.3.1, there exist integers x’ and y’ such that
ax' + by’ = g.
a (x’c’) + b (y’c’) = c,
“(’50) +b(yo) : C,
Theorem 2.6.2: Ifg = (a, b), glc, and x0 and y0 is a particular solution of the
linear Diaphantine equation
ax + by = c, (2.6.1)
PROOF: We first show that the expressions given for x and y by statement
(2.6.2) represent solutions of the linear Diophantine equation. By substitu-
tion,
a(x 0 +ét)+b
g yo ~21
g =ax 0 +bYo
=c
since x0 and y0 is a particular solution of equation (2.6.1). Hence, equation
(2.6.1) is satisfied.
Now, let x and y be any solution of equation (2.6.1). Then
By substitution,
ax + by = axo + bye,
a b
— x — x o) = —
g( g ( yo — Y) .
do
b
— x0) and EM
a
ey).
It follows that
that is,
b a
x = x o + —t
g and y 2 yo — g
-t,
where t is an integer.
where t is an integer.
50 DIVISIBILITY PROPERTIES or INTEGERS § 2‘6
18:3-5+3,
5=1-3+2,
3=1-2+1,
2=2-1;
3:18+(—3)-5,
2:5 +(—1)-3 =(—1)'18+(4)-s,
1:3+(—_1)-2=(2)-1s +(—7)-s.
Since 18-(2) + 5 -(—7) = 1, then
18-(96) +5-(436) :48.
A general solution of the linear Diophantine equation 18x + 5y =
48 is given by the equations
96 +5t>0
~336—18¢'>0.
§ 2.7 ms FUNDAMENTAL THEOREM or ARITHMETIC 51
EXERCISES
13. An organization purchased some simulated relics for $17 each and sold some
of them for $49 each. If the number originally purchased was between 50 and
100, and the organization made a net profit of $245, how many simulated rel-
ics remain unsold?
14. A man 'received a check for a certain amount of money. The man bought an
item for $0.68 and used the check for the purchase. The cashier mistook the
number of dollars for the number of cents and the number of cents for the
number of dollars. The cashier then returned twice the amount of the check to
the man as change. What was the smallest possible value of the check?
30 = 2 - 3 - 5,
83 = 83,
143 = 11 - 13,
52 mvrsmiun PROPERTIES or INTEGERS § 2.7
and
350:2-5-5-7.
S = (l, 5, 9,13, 17, 21, 25, 29, 33, 37, 41, 45, 49, . . .}.
441 :9-49221-21
while 9, 21, and 49 are primes in S. If two different prime factorizations can
occur in one system, then it should not be obvious that it cannot occur in the
system of positive integers. This example indicates the need for a proof that
the prime factorization of any positive integer n > 1 is unique.
The following sequence of theorems culminates in a proof of the Funda—
mental Theorem of Arithmetic.
Theorem 2.7.3: p, p‘, p2, ..., andp,l areprimes andplplp2 ~ ' ‘17", thenp
equals at least one of thefactors 171, p1, . . ”p”.
The proof of Theorem 2.7.3 follows from Theorem 2.7.2 and is left to
the reader as an exercise (Exercise 15).
’1 :Pini
"1 = Pznz
and
’1 2 171172")
for some positive integer n2 > 1. If n2 is not a prime, then we can continue
the process applied to n and n1 and thus obtain a third prime factorp3 ; thatis,
’1 : Fipzpz":
for some positive integer 113 > 1. In general, after k steps we have
where pl, p2, p3, . . ., pk are primes and n,‘ is some positive integer greater
than 1. Since
n>nl>n1>n3> >nk>l
and there exists only a finite number of positive integers less than n and
greater than 1, the process must terminate; that is, there must exist an nh,
for some value of k, that is a prime. Hence, any positive integer n > 1 can
be expressed as a product of primes.
To prove that the prime factorization of any positive integer n > I is
unique, assume that. two prime factorizations of I: exist. let
n =P1P2P3 ‘ ’ 'Pk
qXqéqgs "'Sq..;
k
n = Hm”. (2.7.4)
1: 1
1176:2-2-2-3-7-7,
then
1176:23-3-72
936 =2-2-2-3-3-13
and
588 :2-2-3-7-7.
If alk and b|k, then k is called a common multiple of a and b. For example,
since 3|12 and 4t 12, then 12 is a common multiple of 3 and 4; since 3|24 and
4|24, then 24 is also a common multiple of 3 and 4. The smallest positive
integer m that is a multiple of each of two nonzero integers a and b is called
the least common multiple of a and b. The least common multiple of two
nonzero integers a and b shall be denoted by [11, b]. Note that if m = [a, b],
then
936:2-2-2-3-3-13
and
588:2-2-3-7-7,
then
[936,588]22-2-2-3-3-7-7-13
:45,864.
Notethat
45,864 = 49 - 936,
45,864 : 78 - 588,
§ 2.7 THE FUNDAMENTAL THEOREM or ARITHMETIC 57
and
(49, 78) z 1.
EXERCISES
The smallest positive integer m that is a multiple of each of n nonzero integers at,
an, . l . , and a.I is called the least common multiple ofthe n 2 Z integers. It is denoiea'
58 DIVISIBXLITY PROPERTIES or INTEGERS § 2.8
The positive divisors of 1008 can be determined by considering all the pos-
sible combinations of the factors 2, 3, and 7 with nonnegative integral powers
less than or equal to 4, 2, and 1, respectively. That is, the positive divisors of
1008 are the terms of the product
(H4+r+r+ma+3+ma+n
Hence,
=25—133—172—1
2—1'371‘fi
=31 -13-8
:3224.
§ 2.8 SUM or DIVISORS 59
k
Theorem 2.8.1: If n : 1'1 11"" represents the standard form of a positive in-
i=1
teger n, then each positive divisor d of n is given by
k
,1 2 H 175i
1': 1
PROOF :
It
n=l'lp‘l'
I:
: npqi‘m-m
i=1 |
k k
= “Pair” .111??-
[=1 ‘
k k
Hence, H p‘?‘ is a positive divisor of n provided [3,. 2 0 for each i and 1'1 pg‘i’m
i= 1 i: 1
is a positive integer, that is, provided 0 g [71 g at. for each 1'.
k
Theorem 2.8.2: If n = 1'[ p? represents the standard form of a positive in-
i=1
teger n, then
n+1 # 1
fi”——‘Pi
an): 1—1 . (2.8.1)
— 1
Hence,
P1 *1 P2 — 1 1h —1
k pT‘i'l ‘1
i=1 171*1
”(84)=T_—1'TT'W
=7.4.3
=224.
The positive divisors of 84 are 1, 2, 3, 4, 6, 7, 12, 14, 21, 28, 42, and
84. The sum of these twelve numbers is 224.
where (r, s) = 1.
PROOF: Letr =pfp51- - 12:“ ands =q€‘q§= ”15'", where pi # 11,. for
i=l,2,...,kandj:1,2,...,m.'1‘hen
Hence,
and
_b_
0(7), 7_1_s.
Hence,
In general, the notation 2}”(11) shall denote the sum of terms of the form[(11)
dln
in which d varies over the positive divisors of a positive integer n. For
example,
EXERCI SES
I. Find a(n) where n is equal to (a) 144; (b) 360; (c) 1009; (d) 6534.
2. Show that a(n) = 2n where n is equal to (a) 6; (b) 28; (c) 496; (d) 8128.
3. Show that 0(a) = 3n where n is equal to (a) 120; (b) 672.
4. Find all solutions of the equation a():) = 36.
5. Prove that f(n) = n1 is a multiplicative number-theoretic function.
6. Verify that a(n) is a multiplicative number-theoretic function for n = 144.
7. A number-theoretic function f(n) is called a completely multiplicative number-
theoretic function if f(rs) = f(r) -f(s) for any positive integers r and s. Dem-
onstrate that a(n) is not a completely multiplicative number-theoretic function.
r
8. Prove that if n = £11112” represents the standard form of a positive integer n, then
s h(u+ 1), 1
Z dn : 11 Pin—-
do. t= 1 pi 7 1
1:
integer n, then
PROOF: Since each positive divisor of n appears once and only once as
a term in the expression
V(")=(°‘1+1)(az+1)"‘(°lt+1)
k
= H (a. + 1).
I: 1
= 24.
where (r, s) = 1.
EXERCISES
1. Find v(n) where n is equal to (a) 144; (b) 360; (c) 1009; (d) 6534.
2. Find the smallest positive integer n with six positive divisors.
3. Find the smallest positive integer n with eight positive divisors.
4. Prove that if v(n) = 2, then n is a prime,
5. Prove that the equation v(x) = m, where m is any given positive integer greater
than 1, has an infinite number of solutions.
6. Prove that v(n) is odd if and only if n is a perfect square.
7. Prove Theorem 2.9.2.
8. Verify that v(n) is a multiplicative number-theoretic function for n = 144.
9. Demonstrate that v(n) is not a completely multiplicative number-theoretic
function (See Exercise 7 of §2.8).
10. Prove that the product of the positive divisors of a positive integer n is equal
to nv(n)/2_
1+2+3+6=2-6;
1+2+4+7+14+28=2'28;
1+2+4+8+16+31+62+124+248+496:2-496;
1+2+4+8+16+32+64+127+254
P] 6 1 10
P1 28 1 1 100
P3 496 1 1 1 110000
P4 8128 1111111000000
P1 :‘ 2(22 — 1),
P2 : 22(23 — 1),
P3 : 24(25 7 1),
and
P4 = 26(27 — 1).
Note that the factors of the form 2'I — 1 in P1, P2, P3, and P4 are prime
numbers; that is,
217123,
23—1=7,
25—1231,
and
k/
§ 2.10 PERFECT NUMBERS 67
27—1=127.
The pattern suggests the following theorem which was proved by Euclid in
Book IX of the Elements.
v(n)=(1+2+22+~~+2P-1)[1+(2P—1)1
2"-—1 .21:
g2~1
=2r(2p_1)
:2n.
33,550,336 = 211(2” — 1)
and
213 7 1 = 8191,
The converse of Theorem 2.10.1 was proved by Euler about 2,000 years
after Euclid.
0'01) = ”(21:71). W)
= (2" - 1) ' “(r)-
If n is a perfect number, then
a(n) = 2"r : (2p # 1) - a(r).
Consider a(r) = r + s, where s represents the sum of all the positive divisors
of r that are less than r. Then
and
r = 5(21’ — 1).
Now, 5 divides r. However, since 5 is the sum of all the positive divisors of
r that are less than r, it follows that s = 1. Therefore, r = 2" —— 1, and r
must be a prime since o‘(r) = r + 1. Hence, n = 2”“‘(29 — 1) where 2" — 1
is a prime. That is, if an even integer is a perfect number, then it is of the
form 21’“(2F — l) where 2" — 1 is a prime.
= 360
= 3 - 120;
\/
§ 2.11 MERSENNE NUMBERS 69
25~134—1_517172—1
a(30,240) :
2—l3~1 5—17—1
= 63 .40-6-8
= 120,960
: 4-30.240;
hence, 30,240 is a multi—perfect number.
EXERCISES
H
. Two positive integers m and n are called amicable numbers if their sum is equal
to the sum of the positive divisors of each one; that is, if a(m) : m + n : u(n).
Prove that (a) 220 and 284; (b) 17,296 and 18,416 are amicable numbers.
Prove that (a) 672; (b) 523,776 are multi-perfect numbers.
.N
3. Prove that the sum of the reciprocals of the positive divisors of an even per-
fect number is equal to 2; that is, if n is an even perfect number, then
1 7
«21. d _ ‘
4. Verify the results of Exercise 3 for n = 28.
5. Prove that if n is an even perfect number, then
k pqx+l +1
x
E d‘:2n .131 4—,
p.+1
where n = 1:11p?” represents the standard form of n.
states a necessary, but not sufficient, condition for a number of the form
2" — 1 to be a prime.
21' — 1 = 2" — 1
: (2')= — 1
= (2r _ 1)[(2r)371 + arr—2 + + 1]_
n = 24m(24m+1 _ I)
:16”'(2-16’” — 1) where m2 1.
n = 24m+z(24m+3 _ 1)
0(11) = 1 +1?-
If p is a perfect number, then a(p) : 2p and
72 DIVlSlBlLlTY PROPERTIES or INTEGERS § 2,11
2p=1+p.
=1.
Since p 2 2, then p is not a perfect number; that is, a prime number cannot
be a perfect number.
EXERCISES
Find M19.
misc-Np-
The number of positive integers less than or equal to a positive integer n and
relatively prime to n shall be denoted by ¢(n). For example, (#02) = 4 since
the four positive integers 1, 5, 7, and 11 are less than 12 and relatively prime
to 12. In a similar manner, we can show that
P110012 The positive integers less than or equal to p“ which are not
relatively prime to p" are p, 2p, 3p, . . ., and (p"‘)p; that is, there are 17""
such integers. Hence, .
W) : r 7 p.-.
1
=
Pi 1 — ,)— .
As an example of Theorem 2.12.2, note that
41(2): «1(23) : 23 , 22 = 4.
01'
43(23) 2 23(1 — g) = 4.
' 0
W) :12“. (2.12.4)
PROOF: By Theorem 2.12.2,
74 mvxsmu'nr norm-ms 0F INTEGERS § 2.12
¢(p) = p 7 1,
1 ,_
¢(p“)=r(1—I;)=p 1(,,_ 1).
Therefore,
Hence,
g M) = am If — 1
=l+p‘~l
:17“,
¢(2°) : 1,
«20 = 1.
¢<21)= 4(1—§)= 2.
and
§2.12 THE EULER ¢~1=UNCTION 75
Then
lMu
(50‘) = ¢(2°) +¢(2‘) + 45(22) + ¢(23)
=1+1+2+4
:8
= 23.
and hence not relatively prime to 72; that is, there are 24, or g, positive
integers less than or equal to 72 which are divisible by 3. The positive inte-
gers 6, 12, 18, . . . , and 72 are multiples of 2 - 3 and hence not relatively prime
to 72; that is, there are 12, or £743, positive integers less than or equal to 72
which are included among the 36 positive integers divisible by 2 and among
the 24 positive integers divisible by 3. Hence, the number of positive integers
less than or equal to 72 and relatively prime to 72 is 72 — 36 — 24 + 12;
that is, ¢(72) : 24.
The following theorem for determining ¢(n) for any positive integer n
is suggested by considering the preceding example in generalized form. Let
n = pi'pgl. Then the numbers of positive integers less than or equal to n and
It It n .
— —,
d'“’1'sible b ypi , P2 , and P1172 are 171,112 and 171172
— , respectively. Hence,
n n n
n =n——~—+
(M) P1 P2 P1P:
= l
1a__—l l
n( Pi P2+I71P2)
76 DiVIsmILm! PROPERTIES or lNTEGERS § 2.12
1:
Theorem 2.12.4: If n = 1'1 p? represents the standard form of a positive
i=1
integer n, then
k
W) =[ll (pt—171‘”); (2.12.5)
that is,
k 1 (2.12.6)
¢(n) = r3131 — 1;).
"Mil—Lille)-
pl F: P.»
The multiples of pm+1 less than or equal to n are pm“, 2pm+1, 3pm“, . . .,
pip"l +1. The positive integers among these which are not multiples of 111,
"1+1
p2, . . ., or P». are the ones in which the coefficients ofpmH, that is, 1, 2, 3,
n . . .
l .,p , are not div1s1hle by Pp p2, . . l , or pm. By the assumption previously
n+1
made, the number of such positive integers is given by the expression
"(I3%.)(1nit-(1ei)7.h(lri)(l-i)m(lsi);
that is,
§ 2.12 THE EULER ¢-i=U‘NC'n0N 77
«haoeii—Ai
P1 P2 pm+1
Hence, by the second principle of mathematical induction,
1
¢nvai
Since 7: = 1'1 17?, we may also write
[=1
l
” (mi—1):“).
1
amoee
= 360.
That is, there are 360 positive integers less than or equal to 1350
and relatively prime to 1350.
EXERCISES
. Find ¢(n) where n is equal to (a) 30; (b) 360; (c) 2003; (d) 8316.
,—
Prove that the number of irreducible positive fractions less than or equal to 1
with denominators equal to n is ¢(n).
Prove that ¢(n‘) = n - ¢(n) for any positive integer n.
weer-999
Theorem 2.13.1: If n > 1, then the rum of the positive integers less than or
equal to n and relatively prime to n is equal to § - n - ¢(n).
PROOF: Let m1, m2, m3, . . ., mm) be the positive integers less than or
equal to n and relatively prime to n. Then the sum S of these integers is
given by
S=m1+mz+m3+m+mflnr
Note that if (mi, 7:) = 1, then (n 4 mi, 7:) =1 for i = l, 2, 3, . . ., ¢(n).
Therefore, the positive integers less than or equal to n and relatively prime
to n may be written in the form
S=(n—m1)+(n—m2)+(n—m3)+~--+(n—mM).
§ 2.13 PROPERTIES or THE EULER ¢-FUNCHON 79
Hence,
2S=n+n+n+-~+n=n~¢(n),
S=§-n-¢(n);
that is, the sum of the positive integers less than or equal to n and relatively
prime to n is equal to % - n -¢(n), provided n > 1.
¢(15):1s(1—%)(1—%)= s.
The eight positive integers less than or equal to 15 and relatively
prime to 15 are 1, 2, 4, 7, 8, ll, 13, and 14. Now,
1 1
i-lS-¢(15)—§-15-8—60,
and
1+2+4+7+8+11+13+14=60.
Hence,
%-15-¢(15)=1+2+4+7+s+11+13+14;
that is, the sum of the positive integers less than or equal to 15 and
relatively prime to 15 is equal to % - 15 - ¢(15).
The following theorem which relates the Euler 4J-functions of the posi-
tive divisors of a positive integer to that positive integer is a generalization
of Theorem 2.12.3.
2 ¢(d) = n. (2.13.1)
dln
80 DIVISlBlLlTY PROPERTIES or INTEGERS § 2.13
PROOF: Let (1,, d2, . . ., aim, be the positive divisors of a, positive integer
n. Let m1, m2, . . ., mm) be positive integers such that
where dim, : n, then the number of positive integers less than or equal to
n which have with n the greatest common divisor m, is equal to (“‘10- Hence,
Z (Md) = "-
dln
= 105.
Then
11:11.__)(.__)...(.__)(.-_)(._.)...(.__
P1
1
P2
1 1
P11
1
41
1
‘12 q».
1
EXERCISES
(r, .v) = 3.
Verify the results of Exercise 5 for r 2 12 and s = 21.
>‘9‘
¢(x)=i11(p1‘— i”);
that is,
k
40:) = [lips—‘01. — 1) = m.
If we let
.1, =11: — 1 (2.14.1)
for i = 1, 2, 3, ..., k, then we may write
k
{1 11411,. _ m, (2.14.2)
i=1
" 1 di) _
EH? (P1 7 m,
k (11
x — = ,
iuipt
and
m k
i - 1112..
x= H (2.14.3)
d1 i=1
Equations (2.14.1), (2.14.2), and (2.14.3) place three conditions on the di’s
which enable us to determine the values of x satisfying the equation
4106) = m:
(i) each d, + 1 is a prime;
(ii) each a!i is a positive divisor of m;
(111) h is a positive integer which contains no prime factor not in-
1'14:
::1
k
cluded in 1'1 p 1-
i=1
§2.14 SOLUTION on THE EQUATION 950:) = m 83
i=1
may be eliminated since, in each case, k contains prime factors
1'1 d:
i=1
1: k
not contained in H (d, + 1), that is, 1'1 1’1- Now, the remaining ex-
i=1 1'21
1:
pressions for H d, lead to solutions:
a-
Hence, the solutions of the equation ¢(x) = 24 are 35, 39, 45, 52,
56, 7o, 72, 78, 84, and 90.
EXERCISES
In Exercises 1 through 4 find all solutions of the equation ¢(x) = m, where m ix given:
5. Find the six solutions of the equation ¢(x) = 16 by the use of Theorem 2.13.3.
6. Prove that the equation ¢(x) : 211, where p is a prime and 2p + 1 is a composite
number, has no solution.
chapter 3
THE THEORY OF
CONGRUENCES
3.1 DEFINITIONS AND ELEMENTARY PROPERTIES
The solutions of several problems in number theory depend upon the prop-
erties of the remainders obtained when numbers are divided by certain posi-
tive integers. For example, see the solutions to Exercises 6 and 7 of §2.l as
well as the discussion concerning Euclid’s algorithm.
Consider a positive integer m. If a and b are two integers such that
m|(a — b), then a is said to be congruent to b modulo m; this will be denoted by
87
88 THE THEORY or CONGRUENCES § 3.1
For example, 7 E 2(mod 5), 31 E 72(mod 3), and 16 $ 9(mod 4). The
congruence relation expressed by statement (3.1.1) is equivalent to the ordinary
equation
a — b : km;
that is,
a = b + km,
where k is an integer.
Theorem 3.1.1: Twe integers a and b have {he same remainders when divided
by a positive integer m if and only If a E b(mod m).
a = b + km.
a : (qm + r) + km
and
a = (q + k)m + r.
Since (q + k) is an integer, r is also the remainder when a is divided by m.
Now, let
where 0 g r < m; that is, let a and b have the same remainder when divided
by m. Then
a—b=(q’—q)m
Since q’ — q is an integer, m](a ~ b); that is, a E b(mod m).
integer, is an equivalence relation on the re! of integers; that is, the con-
gruence relation modulo In is
implies
13 E E12(mod 5).
ample, under the congruence relation modulo 5, the five residue classes con-
sist of the integers of the form 0 + 5k, 1 + 5k, 2 + 5k, 3 + 5k, and 4 + 5k,
respectively, where k is any integer; that is, the five residue classes are
and
Each residue class modulo m may be represented by any one of its mem-
bers, although we shall usually represent each residue class by the smallest
nonnegative integer which belongs to that class. Note that any two members
of different residue classes modulo m are incongruent modulo m. Further-
more, every integer belongs to one and only one residue class modulo m. Any
subset C of the set of integers is called a complete residue system modulo m
if each integer is congruent to one and only one of the members of the subset
C. The set ‘
{0, 1, 2. 3, 4)
(a) (0,1,2,3);
(b) (—2,—1.0,1};
(c) (o, 4, 8, 12);
(d) (~13,4,17,18};
(e) (—5,0,6,22).
The sets in (a), (b), and (d) represent complete residue systems
modulo 4 since each integer is congruent to one and only one of the
members of each set. In other words, no two members of the set in
(a), or in (b), or in (d), are congruent modulo 4 and each set has
exactly four members. The set in (c) is not a complete residue system
modulo 4 since, for example, 3 is not congruent to any of the mem-
bers of the set. Alternately, there exist at least two members of the
set in (c) that are congruent modulo 4. The set in (e) is not a complete
residue system modulo 4 since 22 E 6(mod 4); that is, integers exist
which are congruent to both 22 and 6 modulo 4, or alternately, inte-
gers must exist which are not congruent to any of the members of
the set in (e). For example,
l $'0(m°d 4),
1 ,é. 6(mod 4),
and
EXERCISES
(a) 5+3+2+1+8(mod7);
(b)2+3—1+7—2(mod4).
2. Determine which of the following statements are true and which are false:
(8) 37 a 19(mod 3); (b) 56 a 11(mod 15);
(c) 10 s 10(mod 9); (d) 42 z —8(mod 10).
3. Show that 11“7 E 1(mod 100).
4. Determine which of the following sets are complete residue systems modulo 6:
(a) (1, 2, 3. 4, 5); (b) (0. 5, 10, 15, 20, 25};
(C) (*4, ~3, 72, 71, 0,1); (d) (17, —4, 6, 7,10, 3}.
5. Determine a complete residue system (17}, p2, P3, 114, ps, pa, p7) modulo 7 where
each 11. is a prime.
Find a complete residue system modulo 7 consisting of nonnegative multiples
9"
of 4.
7. By inspection, find the values of x that satisfy each statement of congruence:
(a) X + 3 E 0(m0d 7); (b) x + 4 E 3(mod 5);
(c) 3): E 1(mod 8); (d) 7): — 10(mod 12);
(e) x“ E 2(mod 7); (f) x‘ E 1(mod 6).
8. Prove Theorem 3.1.2.
Prove that if p is an odd prime, then
2‘
a+c E b+c(modm).
a : b + km.
Then
a + c = b + km + c;
that is,
(a+c)=(b+C)+km,
and by the definition of the congruence relation
a+csb+c(modm).
ac E bt(mod m).
a = b + km.
Then
do = (b + km)c;
that is,
ac : be + (kc)m.
ac E bc(mod m).
12 E 5(mod 7).
94 THE THEORY or CONGRUENCES § 3.2
that is,
15 E 8(mod 7);
and
12 - 3 E 5 - 3(mod 7),
that is,
36 E 15(mod 7).
a = b + km;
c = d + jm.
a+€=b+d+<k+f)m-
Since k + j is an integer, then by the definition of the congruence relation
(1+5; b+d(modm).
airs b—d(modm).
The proof of Theorem 3.2.4 follows from Theorems 3.2.2 and 3.2.3,
and is left to the reader as an exercise (Exercise 7).
§ 3.2 SOME CONGRUENCE THEOREMS 95
a=b+km
and
C=d+jm,
respectively. Then
do : (b + km)(d + jm)
: bd + (bj + kd + kjm)m.
ac E ba'(mod m).
30 E 8(mod 11)
and
13 E 2(mod 11).
43 E 10(mod 11);
30- 13 E 8-2(mod11)
Note that the statements 43 s 10(mod 11) and 390 E 16(mod 11) are both
true since 111(43 — 10) and 111(390 - 16), respectively.
96 THE 11-1150“ or CONGRUENcrs § 3.2
that is,
a" E b”(mod m)
Theorem 3.2.7: If a E b(mod m), c E d(rnod m), and r and s are integers,
then
ar + c: E br + ds(mod m).
The proof of Theorem 3.2.7 follows from Theorems 3.2.2 and 3.2.3, and
is left to the reader as an exercise (Exercise 8).
The proof of Theorem 3.2.8 follows from Theorems 3.2.1, 3.2.2, 3.2.3,
and 3.2.6, and is left to the reader as an exercise (Exercise 9).
Leta:13,b:4,c=8,andd=2.Then
ar+cs:13-5+8-7
:12]
and
br+ds=4-5+2-7
=34.
that is,
ar + cs E br + ds(mod m).
and
94 E 18(mod 4);
that is,
2‘ E 1(mod 15).
that is,
Theorem 3.2.9: Ifa E b(mod ml)for 1' : 1, 2, . . ., k and (m,, m5) = lfar
I
r, .9 =1, 2, ..., k where r ;é s, then a E b(mod1'[m,-).
[=1
EXERCISES
Find the remainder when (a) 3’7 is divided by 26; (b) 2” is divided by 31.
9‘5"
7. Theorem 3.2.4.
8. Theorem 3.2.7.
9. Theorem 3.2.8.
10. Theorem 3.2.9.
11. If a E b(mod m) and dlm, then a E b(mod d).
12. If a E b(mod m), then (a, m) = (b, m).
13. Ifa E b(mod m.) and a E b(mod m;), then a E b(rnod [m., mfl).
14. There are an infinite number of primes p such that p E 3(mod 4).
The study of the criteria under which a given integer is divisible by another
integer has fascinated students of mathematics for many years, and continues
to be of interest. For example, it is well knovtm that an integer is divisible by
2 if and only if the integer is even. An integer is an even integer if the units
digit is even. Therefore, the criterion under which a given integer is divisible
by 2 is that the units digit be 0, 2, 4, 6, or 8.
Since any positive integer n can be expressed in the form n 2 10k + r,
where r is a nonnegative integer such that 0 g r < 10, then 71 is divisible by
5 if 10k + r is divisible by 5; that is, ifr = 0 or r : 5. Since r represents the
units digit when n is expressed in decimal notation, the criterion under which
a given integer is divisible by 5 is that the units digit be 0 or 5.
Note that the criteria under which a given positive integer n is divisible
by another integer are the same for the negative integer in.
Special divisibility criteria under which a given integer is divisible by
another integer can be determined by means of the properties of the congru-
ence relation presented in § 3.2. However, many of the divisibility criteria are
too difficult to apply to be considered useful. In this section we shall derive
the criterion under which an integer is divisible by 9 and the criterion under
which an integer is divisible by 11.
n=ao+a,-10+a2-102+a3-103+---+a,,-10",
10 E 1(mod 9),
a, - 10 a,(mod 9),
By Theorem 3.2.3
”a‘i’ai+az+a3+"'+”k(m°d9);
2+6+3+5+6+7+3+4;
§ 3.3 AN APPLICATION or THE CONGRUENCE RELATION 101
26,356,734 + 9 = 2,928,526.
1:
Theorem 3.3.2: Let n = 2 (1i - 10‘ represent a positive integer in decimal nota-
i=0
1:
Since
I:
n=2ai-10‘=ao+a1~10+az-101+03-103+~~-+ak-10",
i=0
we form
I
.
2(_1)i”i = “o — 111+ 17; — a3 + ' ' ' + (elf/1k
z : i=0
Now,
n — z = a,(io + 1) + a,(102 e 1)
+ ”3003 + 1) + - ~ + (2,.[10‘k e (—1)”l-
By applications of the theorems of §3.2 and the fact that 10" E (-1)‘
(mod 11), we have
102 THE THEORY or CONGRUENCES § 3.3
Therefore,
n — z E 0(mod11);
that is,
n E z(mod 11).
z=a0—a1+az—a3+a4
=2—4+ 5— 6+ 9
= 6.
k
EXAMPLE 3. It can be shown that if n = Z 11,- 10‘ represents 3.
i=0
positive integer in decimal notation, then u is divisible by 7 if and
only if
ao+3a1+2az—as~3a4—2as+a6
+3a7+2aaia9—3a10—2a11+--~
EXERCISES
notation: ‘
C’ : (ax + blxe C}
By Theorem 3.4.1,
x1 2 x2(mod m)
C’ = {ax + blxe C)
R’ = {ax|x E R)
ax, E ax2(mod m)
x1 E x2(mod m).
R’ = {axlx e R)
is a reduced residue system modulo m.
S = (ax + blxeR},
S = {3x + 2|xeR),
that is,
is not a reduced residue system modulo 10. The reason is that (5, 10) gé 1.
C :(3,4,17,6}
R = {1, 3, 5, 7}
EXERCISES
1. Determine which of the following sets are reduced residue systems modulo 8:
(a) (11, 33, 55. 77); (b) (7, —7, 5, —5);
(C) (17, 71, 8,11); (d) {3,15, 21, 23}.
2. Determine which of the following sets are reduced residue systems modulo 5:
(a) (0.1.2, 3,4); (b) {1, -2, 3, —4);
(C) {16, 9, —Z, 7); (d) {6, 11.16.21}.
3. Verify Theorem 3.4.2 for the complete residue system modulo 6
C = (7, 74, 9, 4, 17, 0)
and the linear function ax + b where a = 5 and b = 2.
Verify Theorem 3.4.3 for the reduced residue system modulo 12
.3
In Exercise: 5 through 10 let [x] represent the residue clam modulo m to which the
integer x belongs; Iet addition (9 and multiplication ® be defined on the set ofresidue
108 11-115 THEORY OF CONGRUENCES § 3.5
classes such that [a] (-D [b] = [a + b] and [a] ® [b] = [a X b]. Construct the addi-
tion and multiplication tables for each modulo system. Determine whether or not
each system is an integral domain:
5. Module 2. 6. Module 3.
7. Modulo 4. 8. Module 5.
9. Module 6. 10. Modulo 7.
11. Use the results of Exercises 5 through 10 to make a conjecture about modulo
systems that are integral domains.
12. Show that the modulo 5 system is not an ordered integral domain.
PROOF: Let
he a reduced residue system module In. Consider the set of ¢(m) integers
: r5(mod m),
nx
I
s:
m. a rs(mod m),
and
(’1’1r3“"o(m)s m) = 1-
ax E b(mod m),
where (a, m) = 1, is
x E a¢"")‘1b(mod m).
ax E a¢("‘)b(mod m),
110 THE THEORY or CONGRUENCES ' § 3.5
whereby
x E a¢""’"b(mod m)
3x E 5(mod 8).
x E 34“”1 - 5(mod 8)
34’1 - 5(mod 8)
a 135(mod 8);
that is,
x E 7(mod 8).
0"“ E 1(modp).
a” E a(mod 11).
If pla, then
a E 0(mod p),
a” E a(mod 1:).
36 E 1(mod 7);
that is,
a?" E 1(modp)
where a = 3 andp = 7.
“if A and C, then B"; a second converse is of the form “if C and B,
then A.” Therefore, one converse of Fermat’s Theorem is “if p is a
prime and a‘“1 E 1(mod p), then (a, p) 2 1." This converse is valid
and its proof is left to the reader as an exercise (Exercise 16). The
second converse of Fermat's Theorem is "if a'”1 E 1(mod p) and
(a, p) = 1, then p is a prime." This converse is not valid since, for
example, 53 E 1(mod 4) and (5, 4) = 1, but 4 is not a prime.
EXAMPLE 5. Prove that n5 and n have the same units digit, where
h is any integer.
Now, n5 and n will have the same units digit if n5 E n(mod 10).
By Theorem 3.5.3,
n5 E n(mod 5)
n5—n=n(n‘7 l)
= M — 1x»1 + 1)
= n(n — 1X" + 1X"2 + 1)
for any integer 71. Therefore n5 — n is an even number since it con-
tains two consecutive integers, n and n + l, as factors; that is,
n5 E n(mod 2).
n5 E n(mod 10)
for any integer n.
EXERCI S E S
In Exercise: 2 through 7 use Euler’s Theorem :9 find a solution of each linear can-
gmence: 1,
:1 > )7 \\ *
2. 5x 2 7(mod 12). 7 ' I 3. 2x : 3(mod 9).
W
4. 7x a 1(mod 10). Erll * 5. 8x a 4(mod 5).
6. 22: E 1(mod 17). 7. 5x E —3(mod 8).
§ 3.6 LINEAR CONGRUENCES 113
15. Find a polynomial congruence of lower degree that is equivalent to the poly-
nomial congruence
3x“ + 2x” + 7x”— 2):“ E 0(mod 7).
16. Prove that if p is a prime and a"" E 1(mod p), then (a, p) = 1.
l7. Prove that if p is a prime, then
‘1’" + 2'H + 3"" +-~ + (p — 1)"' +1 E 0(modp).
trial and error. For example, consider the linear congruence 5x E 2(mod 6).
By actual substitutions, in turn, of 0, 1, 2, 3, 4, and 5 for x, we find that
only 4 satisfies the linear congruence; that is, 5 -4 E 2(mod 6). Hence,
x E 4(mod 6) is the only incongruent solution. Note that every member of the
equivalence class or residue class modulo 6 to which 4 belongs satisfies the
given linear congruence, and these members represent congruent solutions.
Not every linear congruence need have a solution. Furthermore, not
every linear congruence that has a solution need have only one incongruent
solution. For example, by trial and error we can easily show that the linear
congruence 2): E 3(mod 4) has no solutions, while the linear congruence
2x E 6(mod 8) has exactly two incongruent solutions: )5 E 3(mod 8) and
x E 7(mod 8).
In this section we will examine different methods of obtaining the in-
congruent solutions of a linear congruence. We will also determine an answer
to the question of how many incongruent solutions of a given linear congru-
ence exist.
PROOF: If ac E bc(rnod m), then m1(ac E be); that is, m|c(a E b). If
(c, m) : g, then c = gc' and m : gm’. Now,
§ 3.6 LINEAR CONGRUENCES 115
gm’lgc’(a ~ b),
m’lc’(a — b),
m’|(a — b).
Hence,
a E b(mod m’);
that is,
a E b(mod m/g).
then
19 E 11(mod 8)
19 ,=s 11(mod16)4
By Theorem 3.6.2,
6x E ——13(mod 131).
x E —24(mod 131),
and
x E 107(mod 131).
11x = 25 + 60k
11 - 5y 2 25(mod 60).
~y E 5(mod 12),
E —5(mod 12),
y E 7(mod 12).
x E 35(mod 60).
x E xo(mod m')
x 5 x0 + tm’(mod m’),
where tis an integer. Not all the integers of the form x0 + tm’ are congruent
modulo m. Those integers of the form x0 + tm’ that are incongruent modulo
m constitute incongruent solutions of the given linear congruence (3.6.2). To
determine what values of t yield incongruent solutions of linear congruence
(3.6.2), let
x0 + t1m’ 2 x0 + tzm’(mod m).
tlm’ E tzm’(mod m)
and
r. a rz<modg),
respectively. Therefore, when t ranges over the values of the complete residue
system {0, l, 2, . . ., g — 1} modulo g, the integers of the form x0 + tm’
represent different residue classes modulo m. Hence, since m’ : m/g, the g
incongruent solutions of the given linear congruence ax E b(mod m) are of
the form
Since (64, 84) = 4 and 4|16, then by Theorem 3.6.3 there are
exactly four incongruent solutions modulo 84. By Theorem 3.6.2,
4x E 1(mod 21)
since (64, 16) = 16, (16, 84) : 4, and 84/4 = 21. By Theorem 3.6.2
and the properties of the congruence relation,
4x 5 720(mod 21),
x E —5(mod 21),
x E 16(mod 21).
39=l-21+18,
21=1-18+3,
18:6-3.
Then
3:2171-18
:21—(39—1-21)
=2-21+(71)~39,
and
15 : 10-21 + (73-39.
Therefore, converting this last statement to a congruence statement,
that is,
x E 10(mod 39)
x E 23(mod 39)
and
x E 36(mod 39)
EXERCISES
The theory of linear congruences can be used to derive the form of the solu-
tions, if they exist, of the linear Diophantine equation
ax + by = 0. (3.7.1)
x0 + gt, (3.7.3)
where Jr0 is a particular solution and t is an integer. By a substitution of the
integer expressed in (3.7.3) for x in equation (3.7.1), the form of the values
of y satisfying the linear Diophantine equation can be obtained. Therefore,
—t b=,
a(x0 + g)ec
b
§ 3.7 LINEAR CONGRUENCBZ AND LINEAR DIOPHANTINE EQUATIONS 121
and
c 7 a(x° + E!)
y: b
awnfl,
_ b g
a
=yo‘gty
where yu is such that ax0 + byo : c. Hence, if x0 and yo satisfy the linear
Diophantine equation ax + by = c, then every solution x and y is given by
the equations
b a
x : x0 + E! and y : yo a Et’ (3.7.4)
where g = (a, b) and t is an integer. The results here agree with the results
of § 2.6.
48): + 7y = 17.
—x E 17(mod 7),
—x E 3(mod 7),
x E 73(mod 7),
x E 4(rnod 7).
48-(4)+7y= 17,
192 + 7y = 17,
7y : #175,
y = —25.
3y E 29(mod ll),
3y E 18(mod 11),
y E 6(mod 11);
11x : 209,
x : 19.
where t is an integer.
8x—5y+7z=21.
x 7 5y 5 21(mod 7),
x 7 5y E 0(mod 7),
x E 5y(mod 7).
40m+56n—5m+7z:21,
7z : 21 — 35m — 56n,
z = 3 — 5m — 871.
ax+by+cz=d
EXERCISES
l.7x+6y=9. 2.11x+27y=4.
3. 75): — l31y = 6. 4. 39:: + 26y = 104.
5. 61:: — 11y = 81. 6. 65x + 77y = 200.
7. 51x + 85y = 1037. 8. 1586): — 806y = 338.
9.7x—11y+9z=37. 10.3x—2y+4z:34.
11. 144;: — 90y + 60z = 78. 12. 20;: + 44y — 322 = 34.
13. A corporation wants to buy a fleet of one hundred automobiles for exactly
$250,000. If automobiles of type A cost $2600 each, type B cost $2100 each,
and type C cost $1800 each, how many of each type should the corporation
purchase?
14. A group of twenty men, women, and children spent $50 at a restaurant. If
each man spent $5, each woman 53, and each child $1, how many men were
in the group?
15. Prove Theorem 3.7.1.
xp" 5 1(modp),
that is,
§ 3.8 WILSON'S THEOREM 125
x?" — l E 0(modp),
(n 71)! E 0(mod d)
and
(n — 1)! + 1 gé 0(mod d).
Hence,
where p = 7.
kx E 1(mod p)
has exactly one incongruent solution. If we let j denote the solution, then k
and j are called associates of p. Since 1 < k <p — 1, then (p, k + 1) =
(p, k — 1): 1. By Theorem 2.5.3, (p,k2 — 1) : 1 2:1nd,iz,}’(k2 — 1). Thus,
each k is different from its associate, for if k were equal to j, then
k2 E 1(mod p),
Then
(P —1)!EP -1(m°dp).
(P —1)!5 —1(modp),
(p — 1)! + 1 E 0(modp).
12! E —1(mod13),
Hence,
(p — l)!1L 1 E 0(modp)
wherep = 13.
Theorem 3.8.3: Let P represent the product of the positive integers less than
some integer n and relatively prime to n. If n equals 4, p", or 2p" where p
is an odd prime and k is a positive integer, then
128 THE THEORY or CONGRUENCES § 3.8
1’ +1 E 0(mod n);
P — 1 E 0(mod n).
7 - 17 E 71(mod 24);
Therefore,
1'5-7-11-13-17-19-23 E 1(mod24),
P E 1(mod 24),
P E 1 E 0(mod 24).
Therefore
§ 3.9 LINEAR CONGRUENCES IN_ "two VARIABLES 129
1'5'7-11-13-17 E —1(mod18),
E 71(mod18),
P + 1 E 0(rnod 18).
EXERCISES
If x, and y1 are integers that satisfy linear congruence (3.9.1), then this solu-
tion is usually represented as an ordered pair of integers (x1, yl). Furthermore,
note that if (x,, yl) is a solution of the linear congruence, then (x1 + km,
y1 + tm) is a solution where k and t are integers. The solutions (x1, y!) and
(x1 + km. y1 + m) are congruent mlutionr. Those solutions for which either
130 11-15 THEORY or CONGRUENCES § 3.9
ax + by E c(mod m)
The method of proof of Theorem 3.9.1 can be used to find the solutions
of a linear congruence in two variables as illustrated in Example 1.
3x — 7y E 11(mod 13).
3x E 11 + 7y(mod 13),
3x E 24 — 6y(rnod 13),
x E 8 7 2y(mod 13).
7x + 8y E 6(rnod 10).
Since (7, 10) : 1, then by Theorem 3.9.2 the given linear congru-
ence has exactly ten incongruent solutions. The linear congruence
can be written as
7x E 6 7 8y(mod 10),
x E —2 + 6y(mod 10),
x E 8 + 6y(rnod 10).
4y E 7(m0d 3),
y E 7(mod 3),
y E 1(mod 3).
3x 5 3(mod 12),
x E 1(mod 4).
ax + by E C(mod m) (3.9.5)
where (a’, b', m’) = 1. Now, by Theorem 3.6.2, congruence (3.9.5) implies
that
Let (a’, m’) = 3". Then linear congruence (3.9.6) has solutions if and only if
has solutions. Since (a’, b’, m’) : l and (a’, m’) = g’, then (b‘, g') = 1 and
congruence (3.9.7) has one incongruent solution yo modulo g’.
The %: congruent solutions ymyo + g’, y0 + 2g’, . . ., andyo +(%_ 1)g'
of linear congruence (3.9.7) are incongruent modulo m'. Each of these
values of y yields g' incongruent values of x in linear congruence (3.9.6);
m’ . . . .
thus, there are g' - —,, that is, m’, incongruent solutions of linear congruence
(3.9.6).
Let (x1, y1) represent one solution of linear congruence (3.9.6). Then
the g congruent values x1, x1 + m', x1 + 2m', ..., and x1 + (g # 1)m’
modulo m’ are incongruent modulo m; the g congruent values yl, yl + m’,
y1 + 2m’, . . ., and y1 + (g ~ l)m’ modulo m’ are incongruent modulo m.
Therefore, for each solution of linear congruence (3.9.6), we can generate
g1 incongruent solutions of linear congruence (3.9.5). Hence, there are g’m’,
that is, gm, incongruent solutions of linear congruence (3.9.5).
Since (8, 6, 16) = 2 and 2110, then there are 2 - 16, that is, 32,
incongruent solutions of the given linear congruence. Now, if
8.): + 6y E 10(mod 16), then
4x + 3y E 5(mod 8).
3y E 5(mod 4),
By E 9(mod 4),
y E 3(mod 4).
4x + 1 E 5(mod 8),
4x E 4(mod 8),
X 1(rnod 2);
"I
4x + 5 E 5(mod 8),
4x E 0(mod 8),
x E 0(mod 2);
EXERCISES
13. Prove that the linear congruence ax + by + cz E d(mod m) has exactly gm‘
incongruent solutions, where g = (a, b, c, m), provided gld.
14. Find a set of incongruent solutions of the linear congruence 2x + 4y — 3: E 7
(mod 6).
two or more linear congruences in one variable with different moduli. The
method of solving the first type of system of linear congruences is analogous
to the method of solving systems of linear equations in two or more variables,
and is illustrated in Example 1.
x + y E 8(mod 13)
2x + 3y E 12(mod 13).
y E ~4(mod 13),
y E 9(rnod 13).
{x a 9(mod 6)
(3.10.1)
x E 11(mod15).
6a — 15b = 2. (3.10.2)
Since (6, —15) = 3, then by Theorem 2.3.1 the smallest positive integer that
can be expressed as a linear homogeneous function of 6 and —15 is 3. There-
fore, values of a and b do not exist that satisfy equation (3.10.2); hence, a
§ 3.10 THE CHINESE REMAINDER THEOREM 137
{x a 3(mod 4)
x E 5(mod 7).
(3.10.3)
3 + 4a 5 5(mod 7),
4a 5 2(mod 7),
4a E 16(rnod 7),
a E 4(mod 7).
x : 3 + 4a
: 3 + 4(4 + 7b)
: 19 + 28b;
that is,
x E 19(mod 28)
x E a (mod m )
{x E a:(mod mi) (1104)
exists if and only if (m1, m2)l(az — a1). If a solution exists, each solution
is of theform x E x1(mod[m1, m1]), where [m1, m2] is the least common
multiple ofm1 and m2.
By Theorem 3.6.3, this linear congruence has a solution for k if and only if
(m1, m2)|(a2 — a1). Assume that a solution x0 exists. By Theorem 3.6.3, each
incongruent solution of linear congruence (3.10.5) is of the form
In;
x —t
0 + (m1, m2)
where t is an integer. Therefore,
x=al+km1
E
# 411 , + (x9
+ —m2
(m1, m2)t)m1
”hm;
E a1 + xom1 + (m1, m2).
”hm;
Since 111 + xom1 equals some integer x1 and m : [mu ml] by Exer-
cise 12 of §2.7, then
x = x1 + [m,, m2]t;
x E a,(mod m1)
x E az(mod m2)
(3.10.6)
x E an(mod m”)
§ 3.10 THE CHINESE REMAINDER THEOREM 139
n
has a unique solution modulo m where m : H m,.
i=1
Furthermore,
since each M] contains the factor m, where i,j = 1, 2, . . . , n and i 95 1'. Thus,
the system of linear congruences (3.10.6) has a solution.
Let x' be another solution of the system of linear congruences (3.10.6).
Then x’ E a,(mod m,) for i: l, 2, ..., 71; thus, x’ a x(mod m,) for i = 1,
2, . . ., n. Since (mi, mi) 2 1 for 1 g i <j g n, then by a repeated applica-
tion of Theorem 3.10.1 x' E x(mod m) where m = H m,. Hence, the solution
i: 1
is unique modulo m.
x E 8(mod 5)
x E 5(rnod 3)
(3.10.7)
x E 11(mod 7)
x E 2(rnod 4).
8 + 5a E 5(mod 3),
5a E 0(mod 3),
a E 0(mod 3).
b E 3(mod 7).
C — 5 1 (mod 4),
C 1(mod 4).
)6 a 158(mod 420)
is the unique solution of the given system of linear congmences.
13x E 17(mod 2)
13x 5 17(mod 3)
13x E 17(mod 7);
that is,
x E 1(mod 2)
x E 2(rnod 3)
x E 4(mod 7).
If x E 1(rnod 2), then x = 1 + 2a where a is an integer and
1 + 2a E 2(mod 3),
2a — 1(mod 3),
a E 2(mod 3).
6b E —I(mod 7),
b E 1(mod 7).
x a 11(mod 42)
is the solution of the given linear congruence.
EXERCISES
Prove that the system of linear congruences has exactly (D, m) incongruent
solutions provided (D, m)|Dt and (D, m)|D2.
Use the Chinese Remainder Theorem and solve each system of linear congruences:
In Exercises 14 and 15 use the Chinese Reminder Theorem and solve each linear
congruence:
14. 7): E 1(rnod 180). 15. 8): E 7(mod 165).
x E a..(mod m»)
exists if and only if (Mi, m,)l(a. 7 a) for each pair i, j where 1 S i <j S n.
If a solution exists, each solution is of the form x E xl(mod [m., M2, . . ., mnD.
= 5(mod 7).
x E 1(mod 7).
19. Find the smallest positive integer that has the remainders 2, 3, and 2 when
divided by 3, 5, and 7, respectively (Sun-Tsu, 1st century A.D.).
20. Find the smallest positive integer that has the remainders 5, 4, 3, and 2 when
divided by 6, 5, 4, and 3, respectively (Brahmag'upta, 7th century A.D.).
§ 3.11 QUADRATIC CONGRUENCES 143
21. A sack contains a number of marbles such that l marble remains if the marbles
are removed from the sack 2, 3, 4, 5, or 6 at a time. However, no marbles
remain if the marbles are removed from the sack 7 at a time. Find the least
number of marbles that are contained in the sack.
22. A small boy, playing with a pile of blocks, notes that he has 5 blocks too few
to make a solid whose rectangular base contains 16 blocks. However, he has I
block too many if he makes a solid whose rectangular base contains 25 blocks.
If the boy makes a solid whose rectangular base has 21 blocks, all the blocks
are used. Determine the least number of blocks that the boy is playing with.
axz + bx + c E 0(mod m)
is equivalent to
441562 + 4abx + 4ac E 0(mod 17);
that is,
(2ax + b 1 E b2 # 4ac(mod p).
144 THE THEORY OF CONGRUENCES § 3.11
If the special quadratic congruence (3.11.2) has no solution, then the general
quadratic congruence (3.1 1.1) has no solution. If the special quadratic congru-
ence (3.112) has a solution x0, then by substitution
X 2 E 9(mod 13)
Thus,
3x E 5(mod 13),
3x E 18(mod 13),
x E 6(mod 13),
or
3x — 2 E 10(mod 13),
3x E 12(mod 13),
x E 4(mod 13).
(p — 1)!E 71(modp),
(P—1)(P—2)(P—3)"‘(P*k)"‘
(pT-i-l)(PT—1)...k_..3.2.1 E —1(modp),
[1(p—1)]'[2(p—2)]'[3(17—3)]"'[k(p—k)]"‘
l<"+‘)<"+l)lz
Since k(p — k) E —k2(mod p), the above congruence can be expressed
in the form
z;1)2
. . (_kz) , . _ [_(p ] a —1<mod p),
(*1)(—4)(—9)-
...k2._ _(_p2__1)2]
(*l)p2;1|:1.4.9 —1(m°dp),
2
(—1)p+1|:1.2.3...k... P__l:| = —1(mod p).
2
u
If p = 41+ 1, where I is a positive integer, then (—1) 2 = 1. Therefore,
_ z
“Ll—1H a #1(mod p); (3.11.5)
a1 E —1(modp).
The following theorem is due to Euler and states a necessary and suffi-
cient condition for the existence of solutions of the quadratic congruence
x2 E a(mod p) where p is an odd prime. The proof of Theorem 3.11.2 is left
to the reader as an exercise (Exercise 16).
EXERCISES
l . Prove that if p is a prime and dig; — 1), then there are exactly :1 incongruent
solutions of the congruence x‘ E 1(mod p).
18. Determine the values of a for which the quadratic congruence x‘ E a(mod 7)
has a solution. Find the solutions in each case.
chapter 4
An expression such as
— (4.1.1)
3 + 4
1
1 +5
3+ 5 7 _
—3+ L_2§
26 —26,
4+ 1 T
1+2
2+ 3 1 5 _
—2+ E1 _fl.
93,
+ 4+ 7 1 26
1+2
thatis,
212 1
9—3:2+ 3+ 5 7
4+ 1
1+2
[7
(11+ 1 b2 (4.1.2)
111+ a3+'~
+ bn—z
—1
all—1 ‘1‘ b"
an
In general, the ai’s and bi's of (4.1.2) may be real or complex numbers. How-
ever, if each bi is equal to 1 and each a; is an integer such that ai > 0 for
i > 1, then the continued fraction is called a simple continued fraction. Note
that in a simple continued fraction a1 may be a positive or negative integer
or zero. In this chapter we shall be primarily concerned with simple continued
fractions:
a1+
1
—1. (4.1.3)
“2+?
3
a1...
+
§ 4.1 FINITE CONTINUED FRACTIONS 151
The ai’s of a simple continued fraction (4.1.3) are called the terms of the
continued fraction. If the number of terms of a simple continued fraction is
finite, as indicated in (4.1.3), then the continued fraction is a finite simple
continued fraction. If the number of terms of a simple continued fraction is
infinite, then the continued fraction is an infinite simple continued fraction.
Every rational number and every irrational number can be expressed as
a simple continued fraction. The process for expressing a rational number as
a simple continued fraction is illustrated in the following examples. The
problem of expressing an irrational number as a simple continued fraction
will be discussed in §4.2.
95
EXAMPLE 1. Express 4—3 as a simple continued fraction.
95 9 1 1
4—3 2+43~2+ 12 —2+ 4+2
9 9
=2+ 1]:2+ 11
4+— 4+
2 1+2
7 7
=2+ 11 =2+ 11
4+ 1 4+ 1
1+— 1+
2 3+12
2
1
[2.4,1,3.2]=2+—+.
4 + —1
In general,
[a,.a.,a., ...,a,1= a. + 1
(12+ [13+
5|.—
+
[3,4,7,4,8]=3++=3++
”7—1
+
4+—
1 ”—1
7+
13.
8 s
=3+ 11 =3+ 11
4
+7.333 4+2
33
_ 1 1
‘3+ +£ +939
239 239
_ §_3206
‘3+989‘989'
=~2+ L =72+
N
H
one
+
|
I
‘Ol
2 4+l2
2
Hence,
16
—3 g [72, 4, 2].
58
EXAMPLE 4. Express 4—9 as a simple continued fraction.
587 l_ ;_ l
‘9“1+49_1+ 9 ‘1+ 5+5
9 9
:14. 1 1 =1+ 11
5+—— 5+
4 4
Hence,
Note that the divisor at each step of the process for expressing % as a,
simple continued fraction becomes the dividend in the next step. Therefore,
the process for expressing 2—3 as a simple continued fraction may be sum-
marized as follows:
H
IS,
00
.5
\0
A
0
\0
.4a
N
\D
h—IIW
OI-hqb
154 CONTINUED FRACTIONS § 4.1
PROOF: Let; be any rational number and let q > 0. Then, by the di-
vision property, there exist integers ai and ri such that
p
—=a r1
—=a 1 p
q 1+q 1 +—,
l where a 1 <—q and 0<r 1 < 41 ;
r1
r l
1=a2 —2=uz+—, where uz<l and 0<rz<r1;
r1 r1 r1 r1
’2
r1 r3 1 r1
—=a3+—:a3+—, where a3<— and 0<r3<r2;
’2 ’2 fl ’2
’3
_
rn-J : 7 + fair z 7 +_
1
r”_ n 1 ’n—z n 1 ,"71 !
rnil
rn—S
where (1",, <: and 0 < r,,_1 < rn_z,.
,_
rn V 2 = an.
rail
Note that r1, r2, r3,. . ., r,,_1 is a decreasing sequence of positive integers.
Since there exists only a finite number of positive integers less than q, the
above process must terminate as indicated; that is, only a finite number of
positive integers ri which satisfy the above equations exist. By substitution,
using the steps of the above process,
§ 4.1 rla CONTINUED FRACTIONS 155
Hence, since only a finite number of terms are used, the rational number?
a.:(n.—1)+1=(a.~1)+%
and
2—,: [up a1, a3, ..., n] z [(11, a2, a3, ..., a,l —1,1];
and
"s: [an “2’ ”a: .,.a an] = [(11, “2» as, -- u an—i +1]-
EXERCISES
1. %. 2. %.
3. %. 4. 75%.
s. g. 6. 2%.
7. %. s. %.
1
9.4+ 1 . 10. 3 + 1
3+z 8+ _1_
1
n+7
19. Express the rational number ¥79 as a finite simple continued fraction with
(a) an odd number of terms; (b) an even number of terms.
20. Prove Theorem 4.1.2.
0<i<L
x,
1
m—%+fi
0<i<L
262
x. __ a_ + _ 1
+1 ,
i ‘ xH-l
where a...r1 is a positive integer and x,+1 is an irrational number. Therefore,
Since a, is the greatest integer less than x and each a, +1 for i > 0 is the
greatest positive integer less than xi, the representation of the irrational
number x as an infinite simple continued fraction is unique. The argument
presented here is a proof of the following theorem.
~/§=2+(~/§—2)=2++=2+fi
$72 4
=2+ 1 :2+—1_
:78—2 1
1+T 1+T
8*2
=2++=2+—1I—
”m ”m
At this point note that the expression (\/§ 7 2) appears once again.
The expansion of (V? 7 2) as a continued fraction is once again
1
1
”m
Hence,
«E = [2,171,
where the bar over the integers 1 and 4 indicates that they are re-
peated over and over.
_
fiil‘ififi
n n
1)*1+ ;_
1 1
~1+TT
3—1 2
=l+ 1 =1+ 1
+——‘“; 1+ 5 3~l
1 _ 1
=l+ 1 ’1+ 1
Hence,
fi=[1.1.2,1,2.1.2. m],
where the integers 1 and 2 repeat indefinitely; that is,
2+ 1
2+1+):
fl = [1, 5].
x:4+
1+
8+
§4.2 INFINITE CONTINUED FRACTIONS 161
and
_ 1
x4— 1
1+—————T——¥
“—1
1+ 8+"'
x—4= 1
1
1+s+o—o
I
1
1+x+4
A 1
_ x+5
X+ 4
,x+4.
_ +y
R
(XT4)(X+5)=X+4,
x1+x—20=x+4,
x2=24,
pm.
Hence, the infinite simple continued fraction [4, 1,—8] represents the
irrational number fl.
Note that although x1 : 24, x # # m since the first term
of the continued fraction is a positive integer.
It should be noted that these infinite simple continued fractions are not
periodic. In §4.ll we shall prove that every periodic continued fraction
represents a quadratic irrational, and every quadratic irrational can be repre-
sented by a periodic continued fraction.
EXERCISES
1. «3. 2. «H.
3. Jfi. 4. —~/7.
5. v5. 6. m.
7. m. s. 21 + m.
One of the reasons continued fractions are important is that they can be used
to obtain numerical approximations to irrational numbers.
The finite simple continued fractions
cl = [01] = an
1
£2 = [(11, “2] 2 “1 + (T:
2
§ 4.3 CONVERGENTS 163
1
c3 =[a1, “2! “3] = “i + 1 ,
«2+1:—3
1
ck = [an a2, a3, . . ., ah] = al +
a2 + ._1__
a3+---
l
at;
are called the convergents of the simple continued fraction [av a2, a3, . . .].
(The simple continued fraction [(11, a2, a3, . . .] may be a finite or an infinite
continued fraction.) In this section we shall examine some of the properties
of convergents of simple continued fractions by means of examples. In (54.8
and § 4.9 we shall prove a number of these properties of convergents, includ-
ing the properties of convergents as approximations to rational and irrational
numbers.
q:m=L
c,=[1,3]=1+§—3.
1_é
c3=[1,3,4]=1+ 11%}.
z
38
c‘=[1,3,4,2]=1+%=§,
3+ 1
4+5
c,=[1,3,4,2,3]=1+———l—l—=%.
”—1—
4+ 1
2+—
164 CONTINUED FRACTIONS § 4.3
131 — '13
ifio 17 _ _1300
3 ~ 0.0023,
131 — 5i
ifio 38 c 2—900
1 N 0.0003,
fl_fl ,
100 100 — '
EXAMPLE 2. Determine the first five convergents of the infinite
simple continued fraction [2, 2,—4].
91:91:21
€2=[2.2]=2+%=g=2.5,
c;=[2,2.4]=2+ 11=%~2.444,
2+Z
c4=[2,2,4.21=2++1:§%=2.45,
2+—T
4+5
c,=[2.2,4,2,41=2+ 11 =2;_§z2.449.
2+ 1
4+ 1
2+—
§ 4.3 CONVERGENTS 165
Since 281—98 z 2.449 and J3 z 2449, one might conjecture that the in-
finite simple continued fraction [2, 2,—4] of Example 2 represents the irrational
number J3. Indeed, this fact may be verified by expressing J3 as an infinite
simple continued fraction by the method of § 4.2.
Again, note in Example 2 that the second convergent (‘2 is a better ap-
proximation to J3 than the first convergent q; the third convergent cJ is
a better approximation to J3 than the second convergent c,; the fourth
convergent :4 is a better approximation to J3 than the third convergent
as; the fifth convergent as is a better approximation to J3 than the fourth
convergent 64. The convergents cl, 62. c3, 6‘, and es of the continued fraction
that represents J3 form a sequence of rational numbers that are improved
approximations to J3.
, Consider the graph of the first five convergents of the infinite simple
continued fraction representation of J3 as shown in Figire 4.1.
C2 C
2.5 4
C3 C5
2_
CI
l 1 l l l ,-
l 2 3 4 5
Fig. 4.1
The add-numbered convergent: c1, c3, and c, are less than J3; the even-
numbered canvergents c2 and g, are greater than J3 Furthermore,
c,<c3<cs<J3<c4<cz.
Similar results were obtained in Example 1. In general, it can be shown
(Theorems 4.8.1 and 4.8.2) that
Q>Q>%>W;
(iii) every odd-numbered convergent of an infinite simple continued
fraction that represents an irrational number x is less than x, and
every even-numbered convergent is greater than 3:, that is,
Q<Q<Q<m<x<m<g<g<%
The statement of part (iii) may be amended to cover the case of a finite simple
continued fraction that represents a rational number x by noting that there
will exist some odd-numbered or even—numbered convergent oi, the last con-
vergent, such that c] = x.
c4 : [3, 7. 161
,3_55
#113
z 3.14159.
Hence,
1|: z 3.14159.
§4.4 EVALUATION OF CONVERGENTS 167
EXER CISES
Determine the convergents of each finite simple continuedfraction:
L1+ 1 12+ 1 1.
4+ 1
1+; 2+;
Determine the first five convergents of each infinite simple continued fraction:
mmffi amLLLfl
Compute the first five convergent: of the simple continued fraction that represents
each number. Write a statement of inequality using the first five convergent: and the
number:
mfia mvfi
1
£3=a1+
l
a 2 + ._
a3
_ 1134241 + 01 + l1:
(13:12 + 1
_ 43(11201 + 1) + at
>— "a“: + 1
1
‘4 = “1 + ‘—1
(/12 + 1
a
3 + a4_
= aaaaazfll 4’ that + at“: + 11403 + 1
114113111 + a2 + a4
= mm + P:
whereby p4 : aw; + p;
“4‘13 + qz’
Them-em 4.4.1: If c" : %, where c,I is the nth convergent of the simple can-
u
firmed fraction [an (1;, a3, . . .], then
and
I:
ck 2 [111. “2’ ”a, ..., ah] =:—,
1
Eng-H =[a15 “2’ “3: - - 'x at, ah+l] :[“1: “2a ”1a -- -s “a + — ~
Therefore,
1
“I: + " Phi +Pk—2
ak+l
EH1 = (—‘———— l
“k + ‘ qk—l + qx—z
ak+1
= ak-Hpk + Phi.
uk+lqls + qkil
Thus,
Hence,
p1=a1=1,
q1:1,
P1
0 7——1;
1 (I1
Pz=azfl1+1:3'1+1=4s
q2=a2=3,
c 2 = 172' 4
2 =_;
3
P3=a3P1+P1:5'4+1=21,
4324342+q1=5'3+1=16a
_&_
£
c'3‘ 3—16'
P4=a4P3+P2=1'21+4:25,
q4=a4qa+qz=l-16+3=19,
aza=g
‘14 19
P5:‘15P4 +P322'25‘1‘21271,
qs=asq4+43:2'19+16=54,
Q=E=Q
q, 54
ps=aap5+p4=4-71+25:309,
q6=asqs+44=4'54+19=235,
c _ 176 309
5 ¥q6 _ 235'
u
._.
u-
as
4x
at 1 3 5 1 2 4
p.- 1 4 21 25 71 309
q, 1 3 16 19 54 235
c, 1 i3 2_1
16
a
19
7_1 w
54 235
at 3 1 1 1 2 2
p, 0 1 3 4 11 15 26 67 160
qt 1 0 l 1 4 7 18 43
EXERCISES
Find the convergent: of each finite simple continued fraction by the use of Theorem
4.4.1:
1. [2, 4, 6, 8]. 2. [4, 1, 7, 1, 4].
3. [1, 3, 6, 2,1]. 4. [6,1,],1, 2].
9. m. 10. M.
172 CONTINUED FRACTIONS § 4.5
11. Prove that PL = [am a..-” ..., a1, (1,] and q" : [am and, ..., as, m],
"—1 'I "—1
provided at > 0.
12. Verify the results of Exercise ll for n = 5 using the finite simple continued
fraction [3, 2, l, l, 5].
13. Let x be a real number greater than 1. Prove that the nth convergent of
1
E is equal to the reciprocal of the (n 7 1)th convergent of x.
14. Prove that ifS—', 2—1, If, . . . , g5 are the convergents of the finite simple continued
1 2 a A
fraction [1, 2, 3, . . ., n], then 1).. : (n — 1);)“; + (n — 1)pn-1 + (n 7 2)p.._3
+--- +3P1+2PI+(pl +1)-
15. Verify the results of Exercise 14 by computing In for [1, 2, 3, 4, 5].
171 : up q; = 1;
p2 = am + 1. q; = £124.;
p3=aapz+ptfn q3=a3qz+q1;
P4 : “4173 + 1’2, ‘1‘ = “443 + 42-
The set of equations involving the unknowns pl. 112, p3, and 174 represents a
system of four linear equations. Rearranging the terms of these equations,
we have
_P1 = ~a1
”2171 7172 = —1
P1 + “3P2 *Pa =0
By the use of Cramer’s rule for the solution of a system of linear equations,
§ 4.5 CONVERGENTS AS DETERMINANTS 173
ha!
—1
o
o
I" ‘1 o o 0
a2 —1 o o
1 (z3 —1 0
0 1 a, —1
Since all the elements above the diagonal elements in the determinant which
is the denominator are zero, the value of the determinant is equal to (—1)‘,
that is, 1. Thus,
—1 0 0 —al 111 —1 0 0
0 1 a4 0 0 0 1 a4
aq —42 = 0
41 ‘1' ”3‘1: :33 = 0
42 + “443 — 44 = 0-
—l 0 0 —1
uz —l 0
44:1 ”a ‘1
Then, by definition,
(4.5.1)
1 a3 —1
0 1 a4
—l 0 0
5 A1 0
114:
1 2 —l
0 l 4
2 —1+0 2 —l=49+9:58;
—l 0
q‘:1 2 _ 1—49,
_ . gin—49.
Jae-18
0 1 4
—1 ifi+1=j
fli ifl=j
a:i l
’ 1 ifi—1=J'
0 for all other values of i andj;
176 CONTINUED FRACTIONS § 4.5
—1 ifi+1=j
ai+1 17":j
fiij‘
1 ifi— l =j
2—1 0 0
§4.6 SOME PROPERTIES OF CONVERGENTS 177
=2-40+9=89;
fl
,_s_89'
cs—qs—
EXERCISES
In Exercises 1 through 8 evaluate each finite simple continued fraction by the use of
determinants:
1. [2, 3, 5]. 2. [1,3,11].
3. [—5, 3, 2]. 4. [0,5,6].
5. [1, 2, 3, 4]. 6. [4, 3, 2, 1].
7. [4, 3, 9, 6]. s. [1, 9, 81, 9].
9. Determine the fifth convergent of the infinite simple continued fraction
[6, 3, 12] by the use of determinants.
10. Prove Theorem 4.5.1.
Theorem 4.6.1: If c,I =24, where c,x is the nth convergent of a simple can-
u
tinuedfraction, then
(—1 ..
— ”“1 = MH' 462
( ' )
c"
PROOF: The proof is by mathematical induction. Let n = 1. Then,
using the definitions of P0 and 110,
Since this case is rather trivial and uses the arbitrary definitions of Pa and
qo, we shall also verify that relation (4.6.1) is valid for n 2 2:
Hence,
at 2 3 11 2
pr 0 1 2 7 79 165
iii 1 0 1 3 34 71
Theorem 4.6.3: If e,I = %, where c,I is the nth convergent of the simple con-
tinuedfraction [an (1;, 43, . . .1, then
= .(p.._1q._z —p.-2q._1)
= (—1)"“a,,.
Furthermore,
qnqnil
l fl —1 0 1 2 3 4 5
a. 3 4 2 1 3
111 0 1 3 13 29 42 155
q. 1 0 1 4 9 13 48
EXERCISES
In Exercixex 3 and 4 verify Theorem 4.6.3 for each finite simple cantinued fiactian:
The theory of continued fractions can be used to derive the form of the solu-
tions of the linear Diophantine equation
ax + by = 6, (4.7.1)
where (a, b) = 1.
The last convergent c,l of the finite simple continued fraction that repre-
sents ‘3' is equal to 5; that is, flfi=i
" b Ir (a, b) = 1, thenp, = a and q. = b-
By Theorem 4.6.1,
Therefore,
a[(—1)"€q,_1] + b[(~1)"“BP..21]= 0-
Hence, a particular solution x0 and y0 of the linear Diophantine equation
(4.7.1) is given by the equations
where t is an integer.
88x + 25y = 2.
3843 + 25(—P;) = 1,
88043) + 25(-2p3) = 2,
88(4) + 25(—14) 2 2.
22x + 13y = 5.
where t is an integer.
EXERCISES
Use continued fractions to determine the general solution of each linear Diophantine
equation:
4.8 THEOREMS 0N
INFINITE CONTINUED FRACTIONS
v n71
PROOF: If n 2 3 and n is an odd integer, then(qfl > 0 since
n ”—2
(— 1)"1 2 1, an > 0. q» > 0, and qP2 > 0. Therefore, by Theorem 4.6.3,
on — 6",; > 0;
that is, each odd-numbered convergent is greater than the preceding odd-
numbered convergent. Hence, the odd-numbered convergents of a simple
continued fraction form an increasing sequence:
c1<ca<cs<---.
. * "A1
If n 2 3 and n is an even integer, then %M < 0 since (—1)"—1
n 71—2
= —1, a,I > 0, q,I > 0, and 11,-42 > 0. Therefore, by Theorem 4.6.3,
”n # ”n72 < 0;
that is, each even-numbered convergent is less than the preceding even-num-
bered convergent. Hence, the even-numbered convergents of a simple con-
tinued fraction form a decreasing sequence:
cz>c4>66>"'.
By Theorem 4.6.1,
Since qz,‘ > 0 and qZk—l > 0, then ——1— > O and
qqZk—l
Now, consider any two arbitrary positive integers r and s. Either r > s,
r = s, or r < s:
184 CONTINUED rum-10m § 4.8
by (4.8.1); thus,
(ii) If r = s, then
by (4.8.1).
(iii) If r < s, then
by (4.8.1); thus,
Hence, for any two arbitrary positive integers r and s, we have shown that
Cl, > 52:71; that is, every odd—numbered convergent is less than every even-
numbered convergent:
c1<c3<cs<'--<cs<c4<cz.
i I —1 o 1 2 3 4 5 6
a. 4 1 1 2 1 3
p. o 1 4 s 9 23 32 119
q. 1 o 1 1 2 5 7 26
6‘ 4 5
22 n5 27 fl
26
c1<ca<cs<efi<c¢<ez
since
4 < 4.5 < 4.571 < 4.577 < 4.6 < 5.
x = lim e",
n—wu
x > c,I if n is an odd integer,
bounded by any odd-numbered convergent. Thus, h'm 02,, exists and is less
,._..,.
than every even-numbered convergent:
lim c“ < ' .. < 66 < 64 < 52- (4.8.3)
X : [111, “2: ‘13: ---’ an, xfl+ll where xn+1 : [awn “n+2! ”n+3: - - -]
Then
x _&=xn+1pn +p»~1 _E_n
qn xn+1qn + qnir q»
(_1)n+1
7 qn(xfl+lqn + qr 1)y
.
11m p. .
—— — = lim —- = 0 (—1)~+1
Mai q.) H. q..(xn+lq. + qH) ’
lim x 4 limlfi = 0,
M. m ..
lim x = limli,
H... H. n
x : lim c”. (4.8.5)
n—m
§ 4.9 APPROXIMATION THEOREMS 187
c1<c3<c5<~--<x<-~~<c5<c4<c2. (4.8.6)
EXERCISES
Theorem 4.9.1: Let x = [a1, a2, a3, . . .]. 1ftn =%, where en is the nth can-
,,
vergent of the simple continued fraction, then
PROOF: Let x = [£11, a,, a3, ..., “m xnfl] where xn+1 = [an+1, “n+2!
an“, ...]. Then
188 CONTINUED FRACTIONS § 43
X : Xn+1Pn + Pnir
xn+1qn ‘1’ qua,
: 7 _ x — Pn—i .
q“ 1( qnvl)
Dividing both members of this equation by xn+1qm
[x _&=
4»
q»»1
xn+ 14.1
. IX—p—fl"
471—1
41.41
<1, and
xn+1qn
x 7L" <[x—p—"il‘.
n 4,141
It should be mentioned that the results of Theorem 4.9.1 are valid for
finite simple continued fractions as well as for infinite simple continued frac-
tions.
i I #1 0 1 2 3 4 S 6
a. 1 1 2 1 2 1
p1 o 1 1 2 s 7 19 26
111 1 0 1 1 3 4 11 15
5 7 19 26
E
01 l 2 3 Z 1—1-
§ 4.9 APPROXIMATION THEOREMS 189
|fi_céi<|\/§‘csi<|‘/§_c4i
<ifi—cai<|\/§_czi<l\/§—Cri
since
0.0012 < 0.0049 < 0.0179 < 0.0654 < 0.2679 < 0.7321.
Theorem 4.9.2: If e,x = 1%, where c, is the nth convergent of the simple con-
..
tinuedfmctian whose value is x, then
x — Q < i2.
11.. qn
[6 — cl = 1
"+1 " qn+lqn‘
By Theorem 4.8.2, x lies between 0,, and t“+1; by Theorem 4.9.1, x is nearer
c,,H than en. Therefore,
190 CONTINUED FRACTIONS § 4.9
1
< |x — c,| < (4-9-1)
2qn+1qn 'In+ Iqu-
Since the qi’s form an increasing sequence, there exists an integer N such
that q—l—z < e for any small positive number E. Furthermore, for all n 2 N,
N
Now, qiz < 0.00005 if q: > 20,000; that is, q,I > 141. Therefore,
I I —1 0 1 2 3 4 5 6 7
at 4 2 1 3 1 2 8
p: 0 l 4 9 13 48 61 170 1421
qt 1 0 1 2 3 11 14 39 326
Since q., > 141, the seventh convergent will give the required ap-
proximation. Hence,
§ 4.9 APPROXIMATION THEOREMS 191
1421
x N T23- ~ 4.3589.
EXERCI SE S
1. Verify Theorem 4.9.1 for the convergents of the finite simple continued fraction
that represents %.
2. Verify Theorem 4.9.1 for the first six convergents of the infinite simple continued
fraction that represents s/Zi. For ~/2_4 use 4.89898.
s. vfi. 6. JE.
7. vfi. 8. m9:
9.5+Jfi. 10.6+Jfi.
15. Prove that if I x 7 [fl < 2%, then 2—“ is the nth convergent of the simple con-
t. ,. n
tinued fraction whose value is x.
Continued fractions can be used to approximate the real roots, if they exist,
of a quadratic equation.
Consider those quadratic equations which are of the form
xzibx—1=O,
x2=bx+l,
1
x=b+;
=b+ 11
b _
X
=b+ 11
b+ 1
b+;
01:5.
c,:5+§:2?6=52,
c,_5+ 1 1=%~52
1
5+3
Hence, 5.2 is an acceptable approximation to one of the roots of the
quadratic equation x2 — 5x 7 1 = 0. Since the sum of the roots is
5, an approximation to the second real root is 70.2.
if q > 44. Therefore, any convergent1: for which q,I > 44 represents
an approximation, which 1s correct to the nearest thousandth of a
unit to the positive real root of the given quadratic equation. The
calculations for the convergents of [2] appear in the table:
1 ll 71 0 1 2 3 4 5 6
a. 2 2 2 2 2 2
pr 0 1 2 5 12 29 70 169
q1 1 0 1 2 5 12 29 70
Since q6 > 44, the sixth convergent 17—7609 represents the required ap-
proximation. Hence,
169
X:W z 2.414;
194 CONTINUED FRACTIONS § 4.10
x226x—2,
x=5_Z
X
=6— 2
5_ 2
6* 2
6— ..
x=6+ 1
(—3)+ 1
6 +*
(—3) + - - -
Although x is not equal to an infinite simple continued fraction, it is
represented by an infinite continued fraction. The first four con-
vergents of the continued fraction are
§4.10 use or: com-mum FRACTIONS [N sorv QUADRATIC EQUATIONS 195
51:6»
cz=6+fi=L37z 5.67,
c3=6+ 1 1:1—z565,
(~3)+3
c4=6++1=%z 5.65.
(—3)+'——1—
+(73)
Hence, one root of the quadratic equation x2 — 6x + 2 = 0 is 5.65,
which is correct to the nearest hundredth of a unit. Since the sum of
the roots is 6, the second root is equal to 0.35, which is correct to the
nearest hundredth of a unit.
_7x+3
_2x+l’
2x2+x=7x+3,
2x1—6x—3:0.
EXERCISES
Find approximation: to the mat: of each quadratic equation by the use of continued
fractiam'. Compute each root correct to the nearest hundredth of a unit:
l.x’-3x—1=0. 2.x‘76xA1=0.
196 CONTINUED FRACTIONS § 4.11
3.x’~4x—1=0. 4.x‘77x—1:0.
S.x‘—10x~1=0. 6.x’+5x—1:0.
7.X1+il=0. 8.x1#2X—2:0.
9.x’—4x+2=0. 10.x‘+5x+2:0.
Use the results of Exercise 16 to find approximations to the roots of each quadratic
equation. Compute each root correct to the nearest tenth ofa unit:
17.3x1—6x—4=0. 18.2x‘+3x71:0.
It follows that every quadratic irrational is a real number which has the form
r + 3 fl where r and s are rational numbers, .r aé 0, and k is a positive
integer which is not a perfect square. The periodic continued fractions differ
from other continued fractions in that they represent quadratic irrationals.
For example,
1+m_ _,:
3 —[1.2.11
«75 =[4,1,3,1,s];
_1+‘/§_ _
T7[0,1].
Let
Where
y : [W].
Since
(4.11.4). Then
198 CONTINUED FRACTIONS § 4.11
M” + (qua; - pay—pr; = 0-
The roots of this quadratic equation with integral coefficients are irrational
numbers since y satisfies the equation and y is represented by an infinite
simple continued fraction. Therefore, y is a quadratic irrational. Let
y = r + 5 «fl? where r and s are rational numbers, 5 aé 0, and k is a posi-
tive integer which is not a perfect square. The value of the continued fraction
in (4.11.3) is equal to the (n + 1)th convergent. Let 5—} denote the ith conver-
gent of the continued fraction in (4.11.3). Then
x= yp;, + l
, .
yqn+qn—1
Substituting r + sfl for y, we obtain
= (r + s55»); + p1.”
(r + s km; + 41.2-1
g A + Bill?
T C + DJI?
= (A + NEXC — Dfi)
(c + 0mm ~ M?)
_(AC + klm)2 + (BC— Ami:
22—kD
= r’ + s’x/I?
where r’ and i’ are rational numbers. Furthermore, s’ 96 0 since x is repre-
sented by an infinite simple continued fraction. Therefore, x is a quadratic
irrational and every periodic continued fraction represents a quadratic
irrational.
§ 4.11 nrkronic common) FRACTIONS 199
_M
y_y+1’
y2—3y—3=0,
“l._
3
h
Y—§+
_ 19 — £21.
’ 10 ’
that is,
=5y_+1_
y y
yZ—Sygl=0,
“is
Y—E-i-
5 29
x_3(§+T +1
T Li»
2 2
_17+3¢2_9
‘ 5-1—2729
_ (17 + 3mm; — 29)
’ (5 + 2729' )(5 — 329)
_
7 1 +23529,,
that is,
[3, 3] = #5.
M Thus
3 ' ’
s+m_ m—L _ 1
3 _2+ 3 ‘2+ ’2+ m+1
¢'10—1 3
=2+ 1 =2+
1
1+\/10—2 1+ ;
27'10—2
=2++=2+
1+ 1 1+ 1 1
§7_10+2 2+27—10-2
2 2
=2+ 1‘
1+ 1
2+ 2‘
l7—1o+2
=2+ 11
”—1-
2+ 3210+2
3
=2+ 1 1
1+ 1
1+(103 1)
2+7,—
Hence,
EXERCISES
9. 1 + «i. 10. #5
1 + J2—1‘ 12. @13— 2 .
11. —2—.
f8=.[2,fi1; m=[4,fi ,
J5=[1,1.—2]; x/5=[2.2,_4];
x/i=[1.§]; m=[4.m1
Every continued fraction representation of a square root which is not a per-
feet square is a periodic continued fraction by Theorem 4.11.2. By an exami-
nation of the continued fraction representations of the square roots listed
above, we might conjecture that the period begins after the first term. In
§4.12 CONTINUED FRACTIONS FOR Jk 203
fl>r
2
—1<1_2—‘/5<0, and #:[1,2};
(11+ We = rm
«2: —a. Hm}
= 1a! + [mum]
=mmfl
[5, 3, 2, 3, 10]
[5, 2, 1, 1, 2,10]
[5. 2,—101
[5, 1, 1, 3, 5, 3, 1,1, 10]
[5,1,1,1,10]
[5, 1, 2, 1, 10]
[5, 1, 4, 1,10]
[5, W1
[5,171
6—
§4.12 CONTINUED FRACTIONS FOR J]? 205
x/pz—H=p+(\/pz—+1-p):p+—l—
1
x/pz+1~p
# 1 7 1
_p+\/p2+l+pfip+2p+(«/p2+1~p)'
At this point note that the expression (4 p1 + 1 — p)‘ appears once again.
The expansion of (V132 + l — p) as a continued fraction is once again
1
2p + (Up1 +1—p)'
Hence,
EXERCISES
1.3+Jfi. 2.2+~/7.
11:22 4, w,
5. Prove Theorem 4.12.4.
6. Prove that if p is a positive integer, then the periodic continued fraction that
”Drew“S V1? + 2 is [pm 2p]-
7. Prove that ifp is a positive integer: then the periodic continued fraction that
represents Vp‘ + 2p is [1-, 1, 2p].
. Let p be a positive integer greater than 2. Make a conjecture about the pe-
riodic continued fraction that represents ~/s. Verify your conjecture, if
possible, for (a) p = 8; (b) p : 9.
Examine the continued fractions for #2 where k = 6, 12, 20, 30, and 42.
t‘
Make a conjecture about the irrational number represented by (a) [7, m];
(b) [8, T16]. Verify your conjecture, if possible, in each case.
ANSWERS
TO SELECTED
EXERCISES
CHAPTER 1.
§ 1.1
§l.3
1. 1221d. 2. 6126mm.
3. 1010002mm. 4. 10011000100101mo.
5. 34130.1x. 6. 68420nine.
7. 890. 8. 7885.
207
208 ANSWERS 1‘0 SELECA'ED EXERCISES
+ 0 l 2 3 4
0 0 l 2 3 4
1 1 2 3 4 10
2 2 3 4 10 11
3 3 4 10 ll 12
4 4 10 11 12 13
X 0 1 2 3 4
0 O 0 0 0 0
1 0 1 2 3 4
2 0 2 4 ll 13
3 0 3 ll 14 22
4 0 4 13 22 3]
0 1 2 3 4 5 6 7
0 0 1 2 3 4 5 6 7
1 1 2 3 4 5 6 7 10
2 2 3 4 5 6 7 10 11
3 3 4 5 6 7 10 ll 12
4 4 5 6 7 10 11 12 13
5 5 6 7 10 ll 12 13 14
6 6 7 10 11 12 13 14 15
7 7 10 ll 12 13 14 15 16
X 0 1 2 3 4 5 6 7
0 0 0 0 0 0 0 0 0
1 0 l 2 3 4 5 6 7
2 0 2 4 6 10 12 14 16
3 0 3 6 11 14 17 22 25
4 0 4 10 14 20 24 30 34
5 0 5 12 17 24 31 36 43
6 0 6 14 22 30 36 44 52
7 0 7 16 25 34 43 52 61
§ 1.4
1. 363. 2. 30.
3. 210. 4. 746.
s. 336. 6. 125.
7. 168. ' s. 1265.
.
9. .§.”""“- 10. $316+ 1)(i+ 2).
11. True. 12. False. 13. True. 14. False.
CHAPTER 2.
§21
6. Since ti and n + 1 represent two consecutive integers, either n or n + 1 contains
the factor 2. Now, if an integer is divided by 3, the remainder is 0,1, or 2. There.-
fore, n is of the form 3k, 3k +1, or 3k + 2.1fn : 3k, then 3ln. Ifn : 3k +1,
then 2n+1=6k+3 and 3|(2n+1).Ifn=3k+2,thenn+1=3k+3
and SK): + 1). Hence, 6111(21 + 1)(2n + l).
The expression n’ 7 n is equal to n(n — 1)(n + 1)(nz + 1). Since n and n + 1
Ir-
(a) 169 is not a prime since 169 = 13 - 13; (b) 197 is a prime; (c) 239 is a prime;
((1) 473 is not a prime since 473 = 11 - 43.
10. Let p be a prime and x be any integer. If p = x’ 7 1, then
p=(x— 1)(x‘+x+ 1).
Note that the only possible factors ofp are $1 and $11. If x 7 1 = 1 and
x2+x+1=p, then x=2 andp:7. If x—1=—1 and x1+x+1
= 7p, then x = 0 andp = —1. However, 71 is not a prime. 1c1 + x +1
=1 andx71:p, then x=0 andp=—1, or x:71 andp=—2.
However, neither 71 nor 72 is a prime. If x2 + x +1 = —1 and x — 1
= —p, then x is not an integer and 1) cannot be a prime. Hence, 7 is the only
prime that is one less than a perfect cube.
210 ANSWERS TO SELECTED EXERCISES
§ 2.2
1. There are eleven pairs of twin primes in Table 2.1.1: 3 and 5, 5 and 7, 11 and
13, 17 and 19, 29 and 31, 41 and 43, 59 and 61, 71 and 73, 101 and 103, 107
and 109, 137 and 139.
3. The primes between 400 and 500 are 401, 409, 419, 421, 431, 433, 439, 443,
449, 457, 461, 463, 467, 479, 487, 491, and 499. Hence, the pairs of twin primes
between 400 and 500 are 419 and 421, 431 and 433, and 461 and 463.
4. (a) The primes less than 200 are 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43,
47, 53, 59, 61, 67, 71, 73, 79, S3, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137,
139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, and 199; (b) the
primes less than 300 also include 211, 223, 227, 229, 233, 239, 241, 251, 257,
263, 269, 271, 277, 281, 283, and 293.
8. 5! + 2, 5! + 3, 5! +4, and 5! + 5; that is, 122,123,124, and 125.
9. 1011+ 2,101! + 3,101! +4,..., and 101! + 101.
10. (a) 32:3+29= 13 +19;
(b) 100=3+97=11 +89=17+83:29+71 =41 +59:47+53;
(c) 456=7+449=13+443=17+439=23+433 =37 +419
=47+409=59+397:67+389=73+383:83+373
:89+367=97+359=103+353=107+349=109+347
= 139 + 317 = 149 + 307 : 163 + 293 : 173 + 283 =179 + 277
= 193 + 263 =199 + 257 = 223 + 233 = 227 + 229;
(d) 1024 = 3 +1021 : 5 +1019 =11 +1013 = 41 +983
=47+977:53 +971 =71 +953 =83 +941 = 113 +911
= 137 + 887 = 167 + 857 : 197 + 827 = 227 + 797 = 251+ 773
=263 +761: 281+ 743 : 347 + 677 : 383 + 641: 431+ 593
= 461 + 563 = 467 + 557 = 503 + 521.
11. Letp, = 2 and p1 = 3. Thenp; +1 : 4 and (171172) + 1 = 7. The next prime
p3, that is, 5, lies in the closed interval from 4 to 7.
§ 2.3
§ 2.4
l. 6. 2. 15. 3. 1.
4. 23. 5. 4. 6. 1.
7. x = 28, y = —16, z = —1; other sets of values exist.
8. x = 17, y = ~153, z = —1; other sets of values exist.
9. x = 18, y = ~18, z = —3; other sets ofvalues exist.
10. No integral values of x, y, and z exist.
11. w = ~15, x = 45, y = 5, z = 1; other sets ofvalues exist.
12. No integral values of w, x, y, and z exist.
§ 2.6
§ 2.7
18. (11,17) = (315, 75) = 15; 315 =15 -21 and 75 =15 -5. Thus,g :15, a1 = 21,
and b1 = 5. [a, b] = [315, 75] = 1575. Hence, since 1575 : 15 -21 -5,
[as b1=gla1|lb1|
where a = 315 and b = 75.
144
36 — T,
(a. b1 :
wherea=12,b:9,andk=l44.
360.
.533
[(a, b), (a, c ] = [(120, 270), (120, 225)] = [30, 15] : 30; hence,
25—13371
”(144)—2—1 -3_1 =31-13=403,
a(l6)7 25—1
2_1=31,
and
33—1
”(9)’fi:13‘
Hence,
0(144) = a(16) - 41(9).
7. Now,60=2’-3-5 =6-10. Then
0(60) = (1 + 2 + 250 + 3)(1 + 5) = 168;
and
a(6) ' "(10) = [(1 + 2)(1 + 3)] [(1 + 2)(l + 5)] = 216.
Hence, 0(60) at 0(6) - u(10). Other examples exist.
9. The positivedivisors of 12 are 1, 2, 3, 4, 6, and 12; the squares of the six posi-
tive divisors of 12 are 1, 4, 9, 16, 36, and 144. Then
2 d’=1+4+9+16+36+144=210.
an:
Since 12 = 2‘ - 3,
fip2(m+1)_ 1 222(2+1)71'32(1+1)_1
§2.9
9. v(4) = 3; v(2) - v(2) = 2 ~ 2 = 4; v(4) :4: v(2) - v(2). Other examples exist.
11. Since 24 = 23 - 3, v(24) = (3 + 1)(1 + 1) : 8. The eight positive divisors of
24 are 1, 2, 3, 4, 6, 8, 12, and 24. Then
H d=1'2-3-4-6-8-12-24 = 331,776
am
and
v(24)
24 2 = 24‘ = 331,776.
Hence,
v(n)
H d=n 2
m
for n = 24.
§ 2.10
=28+14+7+4+2+1
——
28
= 2;
that is, the sum of the reciprocals of the positive divisors of the even perfect
number 28 is equal to 2.
6. Since 71 = 28 = 2‘ - 7, then the positive divisors of n are 1, 2, 4, 7, 14, and 28.
Note thatpl = 2,p; = 7, a1 = 2, and a; = 1. Hence,
§d1=1‘+2‘+4‘+7‘+l4‘+28’
:1+4+16+49+196+784
21050;
Up,
k “+1
+1:2'28.23 +1_7 2 +1
1-1P1+1 2+17+1
50
_2.23.3..s_
=1050;
fii+l
2— kp'
— +11‘or n=28.
e-d 72,3131 [n+1 .
7. Now, 130,816 = 2“(2’ —— 1). However, 2’ — 1 is not a prime since 29 — 1
= 7 - 73. Hence, the even integer 130,816 is not a perfect number.
8. 120 and 672.
216 ANSWERS T0 SELECTED EXERCISES
§ 2.11
1. M19 : 524,287.
2. M“ = 2“ 7 1 = 2047 = 23 . 89. Hence, M“ is a composite number.
§2.12
1. (a) 8; (b) 96; (c) 2002; (d) 2160.
2. Now,
“3") = 1,
¢(3‘) = 2»
¢(3*) = 9(1 7 i) = 6,
¢(3°) : 27(1 — a = 18,
and
l. (11) Since 17 is a prime, then ¢(17) = 16. The sixteen positive integers less
than or equal to 17 and relatively prime to 17 are 1, 2, 3, . . ., and 16. Now,
1 l
2-17-¢(17) =3-17-16 = 136
and
1+2+3+"'+16=136.
Hence,
mm=noaao—%=m
The twelve positive integers less than or equal to 28 and relatively prime to
28 are 1, 3, 5, 9, 11, 13, 15, 17, 19, 23, 25, and 27. Now,
1 1
2-28-¢(28) = 5-28-12 _ 168
and
1+3+5+9+11+13+15+17+19+23+25+27=168.
Hence,
%-28-¢(28)= 1 +3 +5 +9+ 11
+13+15+ 17+ 19+23 +25+27.
¢(16)=16(1—%)= s,
and
and
«memo—90axle)”:
1 l 1 1
¢‘6"¢‘1°)=[6(1—5)("3)][1°(1—i)(11)]
= 2-4 = 8.
Hence, ¢(60) at ¢(6) - 9500). Other examples exist.
Since r=12=2‘-3 and s=21= 3-7, then rs :252=Z‘-3’-7 and
9‘
§2.14
l. 17, 32, 34, 40, 48, and 60.
2. 31 and 62.
CHAPTER 3 219
3. 73, 91, 9S,111,117,135,146,148,152,182,190, 216, 222, 228, 234, 252, and 270.
4. No solution exists.
5. Since
¢(l)-¢(l7)=1-16 and (1,17)= 1, x=17;
¢(1)-¢(32)=1-16 and (1,32): 1, x:32;
¢(2)-¢(17) =1-16 and(2, 17) 2 1, x: 34;
¢(5)-¢(8)=4-4and(5,8)=1, x:40;
¢(3)-¢(16)=2-8and(3, 15)=1, x=48;
¢(5) - ¢(12) = 4 -4 and(5, 12) =1, x = 60.
Hence, the six solutions of the equation ¢(x) = 16 are 17, 32, 34, 40, 48, and 60.
CHAPTER 3.
§3.1
1. (a) 5; (b) 1.
2. (a) True; (b) true; (c) true; (d) false.
3. 11‘°—1=(11’)’—1=(11571)(11=+1)
= (11 — 1)(11‘ +11’ +112 +11 +l)(ll +1)
x(11‘ — 11’ +111 4 11 + 1).
Since 10|(11 7 1), 51(11‘ +113 + 11‘ +11 +1), and 2|(11 + I), then
10-5-2|(11—1)(ll‘ +11J +111 +11 + l)(ll + 1)
X(11‘ —— 11’ +112 #11 +1);
that is, 100|(11‘° — 1). Hence, 11” E 1(mod 100).
4. (a) Not a complete residue system;
(b) a complete residue system;
(c) a complete residue system;
(d) a complete residue system.
5. (2, 3, 5, 7, 11, 13, 29); others exist.
6. {0, 4, 8, 12, 16, 20, 24).
7. (a) ..., —10, —3, 4, 11, 18, 25, ...;
(b) —6, —1,4,9,14,19,...;
(c) ~13, —s, 3, 11, 19, 27,
(d). —14, —2, 10,22, 34.46,
(e) . —11, —4, 3, 10, 17, 24,
. .—10, —3,4, 11, 18, 25, .
(r) —11, —s,1,7, 13, 19,
220 ANSWERS T0 SELECTED EXERCISES
§3.2
3. Leta=9,b:3,c=22,andd: 72.1fr=4ands=3,then
ar+cs=9-4+22-3
= 102
and
br+ds:3-4+(—2)-3
= 6.
Since 61(102 7 6), then
102 z 6(mod 6);
that is,
ar + a: E br + dx(mod m)
given a E b(mod m) and c E d(mod m).
P
Leta=11andb=3.IfP(x)=3x‘+2x—5,then
P01) = 3(11)2 + 2(11) — 5
= 380
and
P(b) = 3(3)2 + 2(3) — 5
= 28.
Since 8|(380 7 28), then
380 E 28(rnod 8);
that is,
P(a) E P(b)(mod m)
given a E b(mod m).
. (a) 1; (b) 8.
aux
. Leta = 3,17 : 1, d = 2, and m = 4. Then a E b(mod :1) since 2K3 — 1), and
dlm since 2|4; however, a i b(mod m) since 4*(3 — 1).
§3.3
§ 3.4
ea ® 101 111
[01 101 111 101 101 101
111 111 101 111 101 111
An integral domain.
3 ® [0] [1] [2] [3] [4] ® [0} [ll [2] [3] [4]
[0] [0] [l] [2] [3] [4] l0] [0] [0] [0] [0] [0]
[1] l1] [2] [3] [4] [0] [1] [0] [1] [2] [3] [4]
[2] [2] [3] [4] [0] [1] [2] [0] [2] [4] [l] [3]
[3] [3] [4] l0] [1] [2] [3] [0] [31 [1] [4] [2]
[4] [4] [0] [1] [2] [3] [41 [01 [4] l3] [2] [1}
An integral domain.
9 ® I! [0] l1] [2] [3] [4] [5] ® [0] [ll [2] [3] [41 [5]
[0] [0] [1] [2] [3] [4] [5] [0] [0] [0] [0] [01 [0] [0]
[ll [1] l2] [3] [4] [fl [0] [l] [0] [1] l2] [3] [4] [5]
[Z] [2] [3] [4] [fl [0] [1] [2] l0] [2] l4] [0] [2] [4]
[3] l3] [4] [5] 10] [1] [2] [3] [0] [3] [0] [3] [0} [3]
l4] [4] [5] l0] [1] [2] [3] [4] [0] l4] [2] [0] [4] [2]
[5] [5] l0] [1] [2] [3] [4] [5] [0] [5] [4] El [2] [1]
Not an integal domain.
10' E II [0] [1] [2] [3] [4] [5] [6] ® l [0] [l] [2] [31 [4] l5] l6]
[0] [0] [11 [2] [3] [4] [5] [6] [0] [0] [0] [0] [0] [0] [0] [0]
[1] [1] [Z] [3] [4] l5] [6] [0] [1] [0] [1] l2] [3] [4] l5] [6]
[2] [2] l3] [4] [5] [6] l0] [1] [2] [0] [2] [4] [6] [1] [3] [5]
[3} [3] [4] [5] [6] [0] [l] [2] [3] [0} [3] [61 [2] [5] [1] [4]
[4] [4] [5] [6] [01 ll] [2] [3] [4] [0] [4] [11 [5] [21 [6] [3]
[5] [5] [5] l0] [1] [2] [3] [4] [51 [0! [fl [3] [1] [6] [4] [2]
[5] [5] [0] [ll [2] [3] [4] [51 [6] [0] [61 [5] [4] [3] [2] [1]
An integral domain
§ 3.5
1. Note first of all that (3, 10) = 1. Since ¢(10) = 4, then 3‘ = 81. Hence,
34m) 2 1(mod 10)
since 101(81 — 1).
Note first of all that (2, 13) = 1. Sincep —— 1 =12, then up" = 2” = 4096,
and 131(4096 — 1). Hence,
2” E 1(mod 13);
that is,
a"‘ E 1(modp)
wherea=2andp=13.
224 ANSWERS T0 sELECTED EXERCISES
13. 1, 3, 4, 5, and 9.
14. 1, 2, 4, s, 9, 13, 15, and 16.
15. 3x5 _+ 2x — 2 E 0(mod 7).
§ 3.6
l. (4). 2. (8,18).
3. No solutions exist. 4. (8).
5. (2, 5, 8, 11). 6. (7).
7. (5). 8. No solutions exist.
9. No solutions exist. 10. (6, 30).
11. (4). 12. (7).
13. (2, ll, 20, 29). 14. (21, 46, 71, 96, 121}.
15. (6, 13, 20). 16. (2, 5, 8, 11, 14, 17, 20).
17. (2).
18. (9, 20, 31, 42, 53, 64, 7s, 86, 97, 108, 119).
19. (2, 6, 1o, 14, 18, 22, 26, 30, 34, 38, 42, 46, so, 54, 58).
20. (15, 33, 51).
§ 3.7
1. x : 3 + 61 andy = —2 — 71, where 1 is an integer.
2. x = 20 + 271 and y = 78 7111, where t is an integer.
3. x = 42 + 1311 andy = 24 + 751, where 1 is an integer.
4. x : 21 and y z 4 — 31, where 1 is an integer.
5. x = 8 + 111 and y = 37 + 611, where t is an integer.
6. x = 9 + 771 and y = —5 — 651, where 1 is an integer.
7. x = 2 + Stand y =11 r 31, where 1 is an integer.
8. x =18 + 311 and y = 35 + 611, where t is an integer. ,
9. x=4—m+9n,y=m,andz= 1 +2m—7n,wheremandnareintegers.
10. x = 2 + 2m + 4n, y = m, and z = 7 —— m — 3n, where m and» are integers.
11. x=2+5m,y=1+2n,andz= 72—12m+3n,wheremandnarein-
’tegers.
§ 3.8
1. (5E1)!+1:4!+1=24+1=25.Since5|25,then
(p E 1)! +1 E0(modp)
wherep = 5.
2. 1- 18 E 71(mod 19); 4-14 E —1(mod 19); 10-17 E —1(mnd 19);
2- 71(mod 19); 5-15 E —1(mod19); 11-12 E —1(mod19);
3 -6 E —1(mod 19); 7-8 E —1(mod 19); 13 - 16 E —1(mod19).
Hence,
18-17-16- -3-2-1 E (—1)’(mod 19),
18! E —1(mod19),
18! + 1 E 0(mod 19).
Since (19 — 1)! + 1 E 0(mod 19), then, by the converse of Wilson’s Theorem,
19 is a prime.
3. (8 — 1)1.+1 = 7! +1 = 5040 +1: 5041. Since 8,1’5041, then
(p El)! +1 E 0(modp)
where p = 8. Hence, by the cnntrapositive form of the statement of Theorem
3.8.1 (Wilson‘s Theorem), it follows that 8 is not a prime.
4. (a) The associates of p, where p = 17, are 2 and 9, 3 and 6, 4 and 13, 5 and
7, 8 and 15, 10 and 12, and 11 and 14; that is, 2-9 E1(mod17), 3-6
E 1(mod17), 4- 13 E 1(mod 17), 5 -7 E1(mod17), 8- 15 E 1(mod 17),
10- 12 E 1(mod 17), and 11 - 14 z 1(mod 17). Therefore,
2-3-4-5-6-7-8-9-10-11-12-13-14-15 E1(mod17),
16! E 16(mod17),
16! — 1(mod17),
161+1= 0(mod17).
Hence,
(p E 1)! + 1 E 0(modp)
where p = 17.
(b) The associates of p, where p = 31, are 2 and 16, 3 and 21, 4 and 8, 5 and
25, 6 and 26, 7 and 9, 10 and 28, 11 and 17, 12 and 13, 14 and 20, 15 and
29,18 and 19, 22 and 24, and 23 and 27; that is, 2 - 16 E 1(mod 31), 3 -21
E 1(mod 31), 4 - 8 E 1(mod 31), 5 - 25 E 1(mod 31), 6- 26 E 1(mod 31),
7-9 E 1(mcd 31), 10-28 E 1(mod31), 11-17 E 1(mod31), 12- 13E 1
(mod 31), 14-20E1(mod 31), 15 -29 E 1(mod 31), 18- 19 E 1(mod 31),
22 -24 E 1(mod 31), and 23 -27 E 1(mod 31). Therefore,
2-3-4-5- -26-27-28-29 E 1(mod 31),
30! E 30(mcd 31),
226 ANSWERS To SELECTED EXERCISES
§ 3.9
((4. 0), (8, 1), (3. 2). (7, 3). (2. 4), (6. 5). (1. 6), (5, 7), (0, 8)}-
5".“1"
((2. 0), (5. 0), (1, 1), (4, 1), (0, 2). (3. 2), (2, 3). (5. 3). (1. 4). (4, 4). (0, 5), (3. 5))-
((2, 3), (6, 3). (10. 3). (14, 3), (18. 3). (0. 3). (4. 8), (3, 8), (12, 8), (16, 3), (2. 13).
(6,13), (10,13), (14,13), (18,13), (0,18), (4,18), (8,18), (12,18), (16.18)).
A
. ((1 0). (3 0). (5 0), (7 0) (9 0) (ll 0), (13 0). (0 7). (2 7), (4 7), (6 7).
(8 7).(10 7).(12 7)}-
No solutions exist.
«5'-
- ((0. 1), (0. 5). (0. 9). (1. 2). (1. 6), (1, 10). (2, 3). (2. 7), (2, 11), (3. 0). (3. 4),
(3, 8), (4, 1), (4, 5), (4, 9), (5, 2), (s, 6), (5, 10), (6, 3), (6, 7), (6, 11), (7, o), (7, 4),
(7, s), (8, 1), (8, 5), (8,9), (9, 2), (9, 6), (9, 10), (10, 3), (1o, 7), (10, 11), (11, 0),
(11, 4), (11, 8)).
((4, 0). (2. 1). (0. 2), (3. 3). (l. 4)).
9“.“
{(3, 0), (7. 0). (2, 1), (6, 1). (1. 2), (5, 2), (0, 3), (4. 3), (3, 4). (7, 4), (2. 5), (6, 5).
(1, 6). (5, 6), (0, 7). (4. 7)).
P
((0, 2), (10, 2), (20, 2), (2, 2), (12, 2), (22, 2), (4,2), (14, 2), (24, 2), (6, 2), (16, 2),
(26, 2), (s, 2), (18, 2), (28, 2), (o, 7), (10, 7), (20, 7), (2, 7), (12, 7), (22, 7), (4, 7),
(14, 7), (24, 7), (6, 7), (16, 7), (26, 7), (8, 7), (18, 7), (28, 7), (0, 12), (10, 12),
(20, 12), (2, 12), (12, 12), (22, 12), (4, 12), (14, 12), (24, 12), (6, 12), (16, 12),
(26, 12), (s, 12), (18, 12), (28, 12), (0, 17), (10, 17), (20, 17), (2, 17), (12, 17),
(22, 17), (4, 17), (14, 17), (24, 17), (6, 17), (16, 17), (26, 17), (8, 17), (18, 17),
(28, 17), (o, 22), (10, 22), (20, 22), (2, 22), (12, 22), (22, 22), (4, 22), (14, 22),
(24, 22), (6, 22), (16, 22), (26, 22), (8, 22), (18, 22), (28, 22), (0, 27), (10, 27),
228 ANSWERS T0 SELECTED EXERCISE
(20. 27). (2. 27). (12. 27). (22. 27). (4. 27), (14. 27). (24. 27). (6. 27). (16. 27).
(26, 27), (s, 27), (18, 27), (28, 27)).
10. No solutions exist.
11. ((8, 1), (25, 1), (15, 3), (32, 3), (5, 5), (22, 5), (12, 7), (29, 7), (2, 9), (19, 9),
(9, 11), (26, ll), (16, 13), (33, 13), (6, 15), (23, 15), (13, 17), (30, 17), (3, 19),
(20, 19), (10, 21), (27, 21), (0, 23), (17, 23), (7, 25), (24, 25), (14, 27), (31, 27),
(4, 29), (21, 29), (11, 31), (28, 31), (1, 33), (18, 33)).
12. ((1, 0), (3, O), (5, 0), (0, I), (2, l), (4, 1), (1, 2), (3, 2), (5, 2), (0, 3), (2, 3), (4, 3),
(1, 4), (3, 4), (5, 4), (0, 5), (2, 5), (4, 5)).
14. ((2, 0, 1), (5, 0, 1), (2, 0, 3), (5, 0, 3), (2, 0, 5), (5, 0, 5), (1, 2, 1), (4, 2, 1), (1, 2, 3),
(4, 2, 3), (1, 2, 5), (4, 2, 5), (0, 4, I), (3, 4, 1), (0, 4, 3), (3, 4, 3), (0, 4, 5), (3, 4, 5),
(0,1,1),(3,1,1),(0,l, 3), (3, 1, 3), (0, 1, 5), (3, 1, 5), (2, 3, 1), (5, 3, 1), (2, 3, 3),
(5, 3, 3,), (2, 3, 5), (5, 3, 5), (1, 5,1),(4, 5, 1), (l, 5, 3), (4, 5, 3), (1, 5, 5), (4, 5, 5)).
§ 3.10
§ 3.11
CHAPTER 4.
§ 4.1
9°99!“
§ 4.2
_ 16. 3 JFT
JE
15.2+~/2.
17.[0,a;,az,a:,...].
§4.3
3 5
1.01:1,01:2,C1=E,64:§.
2.01=2,£; §,c:*29—0,m=:—g.
3.61:8,Cz=9,03778—1,04=%.
21c *E c =7—1—
4 *1
"" ""3’ c ’ 16’ ‘ 19’ 5 54'
5.c;=—3 Czw—%,Cs=—2?5,64=714101,05:
6. 01—0,0171,CJ_4,C4 ,2 ,2
37,65 _2
78.06 y
505.
7.c1=1,c:=2,c3=§,c4=%,c5=%.
8.c,=2,c2=3,C3=%,04=§,05=%.
2721331
3<7<5_5<‘/1—5<3<4'
§4.4
1.21:2,cz:Z,c; ::,c.=%.
3 c l :16
u 2 =4
31 6 3 go
1976 —5—-4
:41, c 5 =2
60-
4.5176,B)77C3712—3,C:7?,657%
CHAPTER 4 231
5.12158. "%'
1%, $%-
9.01=5,c;=6,Es=%:c4=%!cs=%‘
10.c;=8,c:=9,c;=%sc‘=
%’c’:%’
2
12.
2
7 10 11 95
2 3 s 28
E=51L;=[5,1,1,2,3]=[a,,a.,a,,az,m];
£=§=[5,1,1,2]:[a,,a4.aa.azl-
q: 5
15.
ps:4p4+4p3+3pz+2PI+Pl+1
=4.43+4-10+3-3+2-1+1+1
=225.
§4.5
1, 2 71 0 —1
0 1 5
,&,fl
c,#ql_16.I-Ience,[2.3,5] =fl
16'
2. 1-1 0 3 —l
o 1 11
_&:‘£
53_q’ 34. Hence, [1. 3, 11:fl
1 34'
3. —51 -13
pa: _ ° :_33;q1=l13 —1
2|=73
o 1 2
c; =P_’ = _£‘ Hence, [—5. 3. 2] = ig‘
113 7 7
232 ANSWERS T0 SELECTED EXERCISES
1
_1
173’ s 7176;417l: _;|=31;
o 1
C3 :12=£
q: 31.Henca, [0, 5, 6] :2
31.
171 o o 2 —1
114 71 7' ’1 °=4a;q.=1 3 —1 =30;
o 1 3—1 0 1
o o 1 4
=a=fl
q‘ 301 Hence, [1, 2, 3, 4] =£
30.
4—1 0 o 3 71
_01 31 712 _1:43,q4=(1)
o 1—1 =10,
o o 1 1
:&=£
‘1‘ 10. Hence, [4, 3, 2, 1] :£
10.
6—1 0 o o
1 3 71 o o :3: 3
115 =0 1 12 71 o=ssss;q,= o 1 —1 =14os-’
o o 1 371 0 0 12
o o o 1 12
:E=8886
q, 1405'
1 —l 0 l 2 3 4
a1 3 6 1 2
p1 o 1 3 19 22 63
111 1 o 1 6 7 20
CHAPTER 4 233
plqo7puq1=3-0—1-1:071= 71 =(71)‘;
pzq1—plq1:19-l —3-6=19718=1=(71)‘;
17311; 711243 :22-6719-7=1327133= =(71)’;
p4q37p3q.=63-7722-20=4417440=1=(—1)‘.
1
4
1
plqa7pnq1z3-07l-l=0—l—
pq—pxq;=4'1—3-1=4737
paqz—pzq; = 15-1 74-4: 15 716: 71 :(71)’;
p.11;7pgq4=19-4—15-5=76—75=1=(—l)‘;
11q 7p4q5=72-5—19-19:3607361 = —1 =(—1)’.
1' 71 0 1 2 3 4
§ 4.7
1. x=2+11randy =1 —7t,wheretisaninteger.
2. x = 4 + 51 andy 2 713 7181, where t is an integer.
234 ANSWERS T0 SELECTED EXERCISES
§4.8
1.
a; 4 l 4 6 5 1
p1 0 1 4 5 24 149 769 918
q; l 0 l 1 5 31 160 191
24 149 769 918
c: 4 5 — — — —
5 31 16019]
As decimal expressions, 61 = 4, c; = 5, c; = 4.8, c. 2 4.80645, :5 = 4.80625,
and O: : 4.80628. Hence,
ci<03<cs<cs<64<62
since
4 < 4.8 < 4.80625 < 4.80628 < 4.80645 < 5.
2.
a. 1 2 3 3 2 1
1:1 0 1 1 3 10 33 76 109
q. 1 o 1 2 7 23 53 76
c 1 2 H E E E
‘ 2 7 23 53 76
As decimal expressions, :1 = 1, c; = 1.5, c: : 1.4286, :1 2 1.4348,
c; 2 1.4340, and Cs 2 1.4342. Hence,
c.<c:<c;<c;<c.<01
since
1 < 1.4286 < 1.4340 < 1.4342 < 1.4348 < 1.5.
3. c. = 3, c. : 3.1666667, c. : 3.1621622, c. : 3.1622807, c. : 3.1622776,
and c. : 3.1622777; [3, 6'] = «m
4. c. = 4, c. = 4.125, c, : 4.12307692, c. :: 4.12310606, c. : 4.12310562, and
a. : 4.12310563; [4,13] = m.
5. c. = 2, c. = 3, :3 =28, a. : 2.8333, c. : 2.8276, and c. :: 2.8286;
[2, 1, 4]: 7E.
6. :1 = 5, c. = 6, c, : 5.90909, 6. : 5.91667, 25 :: 5.91603, and c. : 5.91608;
[5,171] = m.
CHAPTER 4 235
§ 4.9
1. Since 3—1 : [4, 5, 1, 2], the convergents of the finite simple continued fraction
Hence,
——.. =0——|,0
%—c. <|%—c; <l:;-Cz <l——cl
since
0 < 0.0098 < 0.0235 < 0.1765.
2. m 2 [4, 1,—8]. The calculations for the first six convergents appear in the
table:
lx/fi—cal <l‘/2_4#cs|<|\/2_4—64|
<|\/2_4—Cal <|‘/2—4—Czl<l‘/2—4—Cli
since
0.00001 < 0.00010 < 0.00102 < 0.01009 < 0.10102 < 0.89898.
236 ANSWERS T0 SELECTED EmISEs
—4 + vfi
3. —3—. 4. 4 +3 ¢fi .
5. «3. 6. 2 + a.
2
7a+‘/11’+4 sab+¢nxbi+4ab
. ——2 . . —2b .
9. [2]. 10. [1, 1, 16, 2].
11. [2,173]. 12. [0, 3, 1, 2, 1714.
84.12
1.3+J16>1,—1<3—¢ifi<0,and3+¢1_:[a.
2.2+fi>1,—1<2—x/7<0,and2+fi=[4—],1.1,1.
3.1—fl>1,—1<¥<0,and1_+2£:1.4],
4-fl>1:—1<§_3—m<°:andfl=m-
CHAPTER 4 237
242
INDEX 243
Pettofrezzo, Anthony J.
Elements of number theory