Jones TheTheoryOfNumbers Text
Jones TheTheoryOfNumbers Text
Jones TheTheoryOfNumbers Text
xroti
PRESTON.
All
not
the College Library
Books must be Returned to
below.
shown
date
last
the
than
later
MOV
1974
Jtm.
&
Alice
R. Britton
Calculus
Jack R. Britton
Jack
Howard Eves
An Introduction to the History of Mathematics
Howard Eves and Carroll V. Newsom
An Introduction to the Foundations and Fundamental
Concepts of
Mathematics
Casper Goffman
Real Functions
I
$\\.\
Jo J
UL1
i
Kenneth
S. Miller
Engineering Mathematics
John
T.
Moore
John A. Northcott
Mathematics of Finance
Plane and Spherical Trigonometry, revised
Lewis M. Reagan, Ellis R. Ott, and Daniel T. Sigley
College Algebra, revised
Gerhard Tintner
Mathematics and Statistics for Economists
Walter
W. Varner
The Theory
of Numbers
BURTON
W.
JONES*
Professor of Mathematics,
The University
of Colorado
and Winston
New York
Holt, Rinehart
ORANGE
STREET,
LONDON
W.C.2
Preface
Though mathematicians
will readily
of discovery
made but
as
if it
tive.
of their
already made on the basis of experience and experiment. In fact, disguess on the basis
covery of correct results often follows the sequence:
of experiment,
fails
these things in
mind that
this
make
of the
was with
made
Throughout, a definite
student to
One
It
effort is
for postulates are developed before they are formulated. The statement
and proof of some of the more important theorems are left to the student
March, 1961
24711-0115
It
and
Number 55-6187
:
is,
rather,
on
numbers.
by formulating
its
It is to
own
The
text
The
is
limitations of a
be expected
postulates
own
and
are essen-
book
for
such
novel."
of
vu
Preface
viii
first
way
in
two
lines
of laying
some
detail at first
but
there.
An
a firm foundation.
less so later
This
attempt
on
in the
is
is
made
to give material
In any case, the pace should be very slow throughout the book.
author found, for instance, that the
Most
class periods.
of the
first
The
Contents
one
time or another.
first three chapters of the book the author partly had
mind those who are planning to teach in secondary and elementary
schools.
They need discussion of the number system which, after all,
forms the basis for algebra as well as the manipulations of numbers them-
In writing the
in
selves.
wx
Preface
Number
clarify
1 The Development
of the
Number System
For instance, repeating decimals can well be used when the elementary
comes face to face with division by a decimal fraction.
Equations with integer solutions arise from many puzzle problems as well
as from the desire of a teacher to make her problems "come out right."
1.
Introduction
2.
Fundamental Properties
4.
Cancellation Properties
5.
Critique
6.
Zero, Subtraction
10
7.
Negative Integers
11
student
first
In short, the
first
may be
When
much
9.
10.
develops a theory.
11.
If
taken slowly,
Aubrey
J.
Kempner has
it
resulted in
Newsom and
2
6
7
7
8. Divisibility
omitted.
Natural Numbers
3. Inequalities
of
Dr.
12.
28
27
SI
36
The theory
multitude of
of
its disciples.
Zk
Repeating Decimals
2.
Number
Burton W. Jones
The University
January, 1955
of Colorado
of
Terms
88
in the
Repetend
of the
Repeating
Decimal
40
3.
Congruence Notation
4.
Properties of Congruences
42
5.
Congruential Equations
4&
ix
Contents
Contents
6.
The Euler
7.
Factorization by
8.
61
9.
52
1.
2.
Phi-function
10. Multiplicative
Means
43
of Euler's
Theorem
Functions
11. Wilson's
12.
13.
14.
60
O*
Nonlinear Congruences
Introduction
105
106
65
3.
56
4.
Power Residues
109
68
5.
Primitive Roots
60
6.
Primitive Roots
O*
Diophantine Equations
Introduction
2.
A Method
in
3.
of Solution of a Linear
Diophantine Equation
Two Unknowns
68
4.
69
5.
Pythagorean Numbers
72
6.
78
Continued Fractions
1.
2.
79
3.
82
4.
Computation
of the
76
tion
5.
Continued-Fraction Expansions
84
86
6.
Closeness of Approximation
89
7.
92
8.
9.
10.
96
98
101
111
Modulo Powers
2.
3.
Gauss's
4.
5.
knowns
107
of a
Prime
Quadratic Residues
1.
1.
xi
6.
Lemma
119
120
122
126
183
Bibliography-
187
Index
189
1
The Development of
the
Number System
Introduction
1.1.
The theory
of
numbers concerns
itself
it is
is
it
has on the
difficulty
imposed by the
of
worked in
this field.
Some
results in
For example,
This
is
true that
it is
result is divisible
number theory
by
if
6; that
any integer
x3
is,
is
is divisible
by 6
if
is
an
integer.
true, since
z8
(x
is
l)x(x
1).
itself
and
1,
the
first
2,3,5,7,11, 13,
(An integer greater than
17,
19,23,29.
is
number
is
prime
greater than
and
double
its
5,
Some
is
rather apparent conjectures are easy to state but have not been
if
they
differ
by
Is there
is
2.
we
true.
Thus
3 and
5,
and
11
13,
and 17 and
No
one
none.
Some
Two
as the following:
if
is
no point
field of reals
and
field
There
leading problems in the hope that he can to a large extent under such
much
will
guage we
will
but
not only
make
may
Though on many
occasions
it is
to
the subject
those of B, that
lished
on the basis
by
proof.
of guessing results
new
of numerical evidence
The mathematician's
which
may
be estab-
later
by
proof.
of evidence or another and then validatIn this chapter we shall explore the funda-
.2.
in
way
girls left
the
no great point
if
many
call
of the lan-
in trying to define
this result
If there are
girl.
that the
Furthermore, no matter
of girls.
number
how
if
of
is
to
no boys
or
boys
is
equal to
such a correspondence
can be established, the natural number associated with one set will be
the
same as
(that
is,
Equality of natural
1.
2. If
=
a=
then b
b,
and
=a
3.
If
4.
true that
a-
(reflexive).
(symmetric).
then a
c (transitive).
either a
b or a 9* b (determinative).
c,
6,
a, it is
properties:
In each
the number of
call
the number of
is c
and
in another set is d,
4a.
we know
without partners,
number
3a.
is,
to discover
2a.
The
is
There
an abstraction independent
It is
it.
natural
he
use to describe
guidance develop
most important thing common to three hats, three houses, and three
is a universal
The system of natural numbers: 1,2,3,4,5,6,
lives.
tally device by which we can tell whether there are more things in one
category than in another.
is
1.2.
sum
of c
and
then we
d,
and write
it c
d.
As a
properties:
(closure).
what we
three
is
the
we count
the
two
sets
makes no
if
counting as an exercise.
combine
combine
a,b,c,
Definitions: natural
Properties
respectively,
A and B,
B and C.
To summarize, we have
we
define
follows:
ically, if
we
we have
ac
(b
a =
Closure
sum
b implies a
of
Multiplication
+c= b+
multiplication
each having
Then by our
definition, the number of glasses on each tray would
be st. Thus we have
r trays of st glasses, that is, r sets with st in each set, and the total
number
of glasses would be r(st). On the other hand, if we look
at the stack from
the front we will see r rows of glasses with s in each row, that is rs
glasses;
this will
have
be repeated
times as
front.
(rs)t,
Thus we
will
Which
property: a (6
+ c) =
ab
ac.
We
ba
ba
ca
letters
=
=
a(bc)
+ c)
+ c)a
a(b
(6
defined.
(be) ?* (a
+ b) (a +
if
Notice that
in the distributive
c).
of the
in
2.
3.
What
4.
Which
are
some
of the undefined
make
unam-
biguous:
a
5.
+b+
c,
abc?
+ [6 +
What
-
Explain.
(a
the associative
ab
(ab)c
Exercises 1.2
ab
4- ac
be
+b b+a
(a + b) + c = a + (6 + c)
equality, addition,
Distributive
b implies ac
Associative
We
two natural
Commutative
of multi-
+ ca.
ba
c things
6 sets
+ c)a =
Well defined
"6 times
c" or "the product of b and c" to be the total number of things in the b
sets. The product of b and c is written b X c, b- c or merely
be.
Schemat-
Addition
numbers
1.2.
c])
+ d.
+ b) +
(c 4- d)
is
used.
make unambiguous?
in plane
geometry
is
expressed
by the
third
7 Which
-
of the following
listed
above for
same family
in the
(a)
as; (d)
is
is
congruent
the son of
1.3.
to.
if
"A
is
For example,
Explain.
is
the son of
B"
(c) is
in case
implies
"B
is
A."
More
read
is
+x
= a
is
solvable for
greater than
precisely,
we
x.
>
The symbol
2.
If
The
6, is
to say:
>
and
>
then a
3.
If
To
prove the
6,
third property
We shall
is
c,
then a
>
not
less
than
>
argument used
it
may
This
may
+b = a+
reduction to absurdity or
its
This has
its basis in
We also have
if
call
then
the can-
c,
then b
for
Q-
loss of generality
+c+d=
c,
d,
which, as
c.
If 6 is
not equal to
c,
then,
field of
5m.
The proof
If
ab
is left
ac,
by the
may without
assume that
+ d.
we have
b is greater
Then a
than
+b=
c,
c.
first
We
that
is,
becomes
This estab-
seen, is impossible.
property of addition.
then b
is
c.
as an exercise.
the axiom of
of
mean "a
is,
be proved as follows:
be
previous paragraph
in the
name
c to
c."
many examples
is
c or
be.
are
is,
be established.
if
"a
Cancellation properties
.4.
5a. If
logic that
z.
leave as an exercise.
also use
and
a > b. Then, from the definition of inequality, there is a natural number
c, such that a = 6 + c.
But a = b, by hypothesis, and hence by the transitive property of equality, b = b + c. But we cannot set up a one-to-one
correspondence between b + c objects and b objects. Thus we cannot
have both a = b and a > b. The rest of the first property can similarly
first
be designated by
we
may
it
of the following
>
and there are none." In order to establish the desired result, it was
supposed false and shown that such a supposition would have false con-
is
b is less than a, that is, b < a. Both > and < are symbols of inequality
and have the following properties expressed in terms of greater than for
the natural numbers a, b, and c:
One
if
s now
6.
1.
sequences.
Inequalities
means:
Critique
1.5.
mathematics.
left
the house
.5.
Critique
we considered
is
Though
glasses on trays).
all
in the
way
another
is
of
We
it
denning
much more
is
reduced to a minimum.
may be
His axioms
a natural number
formulated as follows:
1.
There
a-
We
1.
shall
prove
1.
The
integer
a+
has no predecessor.
= 6+ then a =
If
5.
Addition
6.
Multiplication
7.
a.
b.
all
is
+1=
denned by a
+ b+ =
a+ and a
1
a,
b+
set of natural
if it
number 1.
of any number
ab
+ b) +
(a
successor
(2)
First,
a=
(q
if (1)
to
be the
must
Then,
of
is
proof
also in A.
If
is
if (2)
holds,
is
1,
If 6
>
if
the case
it
1,
is,
taking the
is true.
that
a,
is
number 1.
number of A, then
where
and
is
we assumed
r are natural
the
=
=
1.
which
1)6,
<
and 6
then 6
a,
a,
it
If 6 is
Then,
qb
the
is
first
case of the
Thus our
<
1.
If this is
not
trivially holds.
is
a natural number
qb,
qb
less
than
o,
then there
is
<
a and
The number q of
= [a/6].
(q
1)6
>
o.
and
written q
and
is
Exercises 1.5
+r+
(q
contains
which
6,
<
1.5.
or
=1
we have
we have o =
Corollary 1.5.
allows us to
Theorem
that either 6
complete.
An immediate
is
The theorem
-f-
in-
theorem.
holds,
a = qb
to
2.
is,
fol-
this.
- 1 - qb,
a 1 = qb + r,r <b.
then a = qb
1.
It follows
a.
numbers
Third,
The
Second,
By
a.
contains the
The
1.
b.
denned by a
is
since
second case.
4.
and q =
1,
is
true for
it
6=1
a implies
o =
if
(1)
3.
<
It is certainly true
o.
lowing holds:
2.
is
the positive integers due to Peano, an Italian mathematician of the nineteenth century, which
Critique
1.5.
+ r,
numbers.
<b,
2.
3.
4.
Show how
5.
Show how
the postulates of
Property of addition.
of inequalities.
of multiplication.
on
c.
10
Show
6.
that
7.
What
8.
Show by
finite in
a and
if
properties
6 are natural
numbers, then ab
in
We
a.
common?
It is
have discussed
is
less
-,a*
that the
first
number
of
numbers
it.
Show
that k
a,i,
in other words,
in the sequence
number
number.
in pasture
is
Thus the fact "No normal cat has two heads," could be
The set of normal cats having two heads is a null set.
there are no cows in pasture A, we could say that the cows
if
form a
It follows that
null set.
if
objects, that
b null sets,
Zero, subtraction
.6.
n.
zero.
is,
which
a objects.
way
factory
Also 6
and
has a
-+-
of objects in
is zero.
same
sets
Similarly,
11
stated as follows:
9.
Negative integers
1.7.
product
lines of the
The most
6.
satis-
of thinking of zero is
erties
We
that
>
have defined a
such that a
is
appropriate, since,
would imply
c'
by
+ a=a +
number
c.)
by the
Notice that a
if
b is defined only
a number,
b.
we
to
6,
gives
a.
(a
b 4-
shall here
number
if
zero,
is
is
greater than
all
of zero,
in Section 1.4,
+z=
.6.
we can prove
1.5
exists.
(o
0.
+ 0)6 =
ab
Thus we
define
0.6 = 6-0 =
0.
b.
However,
can be shown
in Section 1.2.
there are
6,
b\
we exclude
qb
r,
<
numbers q and
6.
numbers and
zero,
0.
the
Negative integers
1.7.
we
If
sion a
if
numbers and
6 is equal to a or less
it is
or zero,
we
define a
number ~6 by
(1)
and we
6
shall say that ~6
if
is
and only
if
0,
c.
a.
This
We
is
an
do so by
a natural number
the equations
+ -6 = "6 + 6 =
~c
than
convenient to eliminate.
ab
It
such that
except that
0.
lead to a contradiction.
numbers
Theorem
may
b.
by the equation
0-6 = 6-0 =
a.
6 is greater
Furthermore, as
is
a,
+ a = a-fO =
Then,
c.
when added
c which,
+ c' = b + c,
6;
+ c means a b =
It is convenient to define
wc
o "minus"
Of course there
exactly one
is
then,
is,
This
b to
We
c.
Thus
r
.
12
-0 =
(2)
0,
+ =
since
we
of
0.
negative integers.
call
new numbers.
associative
of
If
the
hold, addition
+ -b)(-a) =
(b
Hence we
b(-a)
+ ~b +
On
(a
b)
(a
+ "a) +
+ ~b)
(6
+ b) +
"(a
(a
+ b) =
and,
if
+ ~b +
(a
b)
= ~(a
+ b) +
(a
The
what we
b).
to hold,
is
-a
+ -b = -(a +
we must
define
+ "6 =
[(a
Similarly, ~b
-6)
+a=
+ "6 =
b.
On
(a
-6)
+ ~b = a +
Thus we
(b
a)
+ ~(b -
(6
+ "6)
if
(a
<
6)
+ =
we would need
2.
6.
If
a
a
>
<
b,
b,
is
replace a
greater than a, a
~(b
a)
+ b + ~b
~(b
=
Thus we
(5)
(b
integer as
+ ~b)a =
ba
(~b)a
The
a(~b)
~(ab)
4.
with the
5.
ba
~(ba),
c.
definition, or
commutative?
can
it
be proved?
Is it associative?
Is ad-
commutative?
Do
for integers?
=a
7.
Does a
8.
properties of
imply 6
Here
a, 6, c
c for integers a, b, c?
c.
including zero?
+ -(ba).
Is this
b.
Is subtraction of integers
What
1.5.
b, c.
(~a)c implies b
from Theorem
1.6 follows
+ ~b c + ~b implies a =
(~b)a
all
Theorem
3. Justify ~(~b)
a).
+ ~b = a b = ~b + o.
then a + ~b = ~b + a = ~(b a).
to (6)
(1)
Show
a.
then a
+ ba.
that
b. (~a)b
Thus we may
~{ba)
Show
dition of integers
If
numbers.
to
follows:
(4)
(~b){~a)
Exercises 1.7
would be true:
+ ~b -
a)
= 6a=(-o)("6).
of a natural
6]
~(6a)
b).
set of natural
(3)
It
make
We can now say for all integers that a < b if there is a natural
number c such that a + c = b. Thus, for instance, 11 < 1 since
-11 + 10= 1. If an integer is greater than zero, we call it positive.
0.
Thus
-a
these definitions
("6)(-o)
(-6)(-a)
From
0.
to
define
(6)
~a
zero.
We want
13
Negative integers
1.7.
+ 6a)
ac
+ a abc.
what
14
9.
way:
Theorem
a
(a, b)
b. (a, b)
a.
(a, b)(c,
c.
First,
b or a
d)
Numbers
2.
3.
Third,
(x + y + a, a); (a,
a + a,a)(b,c) = (b,c).
6, b)
a)
(6, c)
(6, c);
(a,
+ a) =
Prove that a
0.
<b
implies a
may
correspond to zero?
<
(Ref
8,
pp. 5
ff.)
and some
by
usually
instance,
it
2,3,5,7,11,13,
of the deepest
delicate analysis,
where
1,
tt(x) is
x.
That is, by
is
a and
b are
a multiple of
two
b, if
integers,
there
is
we say
an integer
that a
is
be.
by 6, or that a
Note that we
b would always
divisible
such that a
-f-
that ax
the problem of
divisibility is of
problem of
numbers
divisibility, since
When we
fundamental importance.
(ratios of integers), there
If
we were
Theorem
1.8a.
1.8b.
If
no
The greatest integer which divides two integers is called their greatcommon divisor, often abbreviated g.c.d. For instance, the g.c.d. of
6 and 15 is 3. Using the notation (a,b) to denote the g.c.d. of a and 6,
we would have
est
(6,-15) =
Though
g-c.d.,
Define
there
g,
the above
is
another
The
reference
numbers
is
3.
way which
is
way
to define the
and
b\c,
then
+ canda|6c.
a\c.
1.
2.
Any number
last
b,
in proofs.
a|6anda|c, thena|6
If a\b
would be no
called the
other
It is
is
talcing
For
c.
Divisibility
.8.
numbers, proved
of
lim7r(x)(log a;)/a;=
a
xoo
1
fall
(a, a).
tion,
definitions.
numbers
relatively prime,
+ a,a) +
where a and
b\a,
Two numbers are called relatively prime (or one is prime to the other) if
For instance, 6 and 35 are
their only common divisors are 1 and 1.
show that
(x
and
The number 1,
The prime numbers,
The composite numbers.
1.
+ a, a) + (y +
a\b
If
1.8c.
~b.
greater than
the natural
(x
means a + d = c + b.
means
(a + c, b + d).
(c, d)
d) means (ac + bd,ad-\- be).
(c,
IS
Divisibility
1.8.
follows:
Let
gi
be the
b.
dividing both a
and
b also divides g.
according to the
16
The
second that
gx
To
first definition
would divide g 2
prove
we
since, until
integers.
definitions
For
instance,
we can
rk- 2
35)
1.
and
ffc-i
divides r*_ 2
first
qic-xn-i
Then Theorem
Tk-3
in
must
Thus
1.5.)
the
equation
and
1.8a
qk -iTk-i
We
+ 0,
+ Tk-x
and
rk ~x divides r x
and hence
until
Therefore we
a.
first
requirement of
the
b,
g.c.d.
Since the
mon
equation
first
may be
a and b divides
divisor, d, of
written a
rx.
qb
r%,
we
as follows:
be zero,
finally
be
write
(6, 21,
r's
is zero,
Both
17
Divisibility
1.8.
it
must,
Theorem
of
Theorem
.8d.
If
a
b
rx
= qb + i% < ri <b,
= qin + r 2
< r2 < r h
= qtti + r 8
< r 3 < r,,
lowing:
Theorem
1.8e.
Tk-z
Then
r*_i will
Algorithm.
be the
r's will
g.c.d. of
(An "algorithm"
is
be zero,
a and
us see
= 228 and
177.
The
and suppose
process
is
r*_i
b.
call it r k ,
ax
result.)
condition
of
a numerical case.
is satisfied,
a and b divides
a.
is
+ by =
least
r,
r is the g.c.d. of a
Theorem
To show that
for
1.8a
and
g.c.d.,
b.
we
r divides
a and
6,
Then
Let
a
qr
+ s,
<s
<r.
Hence s = a(l
qx )
bqy
Thus 8 is a positive integer less than r,
Furthermore, there are integers x
qr
The theorem
r.
be the
form
not divide
in
Then
b, let r
by,
with x
proof.
r is
qxo
and y
= ~
qyo-
This
18
We
by the
mx +
and
If
divides ab
and (m,a) =
then
1,
- P^ P2 2
divides b;
ay
ab,
Corollary 1.8e.
for
1.8.
p
*n
where no two of
p,
VV
r,-,
are equal.
s*
1,
Corollary 1.8e'. If
m is prime to a and to b,
then
it is
prime to ab;
Pi
where, for each
of the theory of
numbers:
c is
p,
The
g.c.d. of
a and
b is equal to
e_
P2
the smaller of
P nn V*2 2 -"**
p?
Pn"
a,-
and
,-.
least
i,
;b
19
Divisibility
be
of the
same
all
two numbers are both even or both odd, they are said
If
parity;
if
one
is
k,
Theorem
1.8f (The
Fundamental Theorem).
two ways, as
'
P1P2
Pr
qm
If
a positive integer
is
follows:
q
is
p,-
or two or
is
to
it
We may
prime numbers.
state
it
is,
there
1.8g.
primes.
this, notice
number or
it.
Suppose pi is not equal to any of the g.'s.
If
must be prime to each one and hence by Corollary 1.8e',
This
infinity of
Theorem
of the
prime factors.
To prove
an
and we
is
is
qtqz
Continuing in this
way we
in the
see
form
*... pa ,
Pl p s
n
a,
N=
p.-
are equal.
list
them as
one
n primes
of
the
1,
which
is
pip 2
divided N,
it
impossible.
Then
+ 1.
is itself
a prime, or
it is
cept for the order in which the prime factors are written.
n primes and
divisible
PhPt, '"iPn>
divide
this,
If
pT
prove
follows:
to their product.
not possible, since pi divides their product. Hence we may renumber the qi if necessary and take p x = q u Then the cancellation theis
PaPs
To
prime
is
a and b
is
if it
unique ex-
Suppose the
1.
2.
m is a multiple of a and b.
m divides every common multiple of a and b.
g.c.d.
multiple
20
1.8.
Exercises 1.8
3n
Show
1.
Theorem
that
on a
line
By
2.
same process
to find integers
3.
Prove Theorems
4.
If (ab, p)
Show
5.
1,
that
and
implies
then g
will
be the
73*/
Use
this
when k =
(a/d,b/d)
Show
1.
and p\a
that
4- b.
a(b,c)
Prove that
if (a,b)
l\b
and
and
may be
rf=
that,
if
ab/d
is
an
where
s\a
the least
is
common
multiple of a and b
if
ka
Theorem
+ r,
Show that
set of
or both
6.
there
Use the
7.
by
will
rk
and
bd
is,
of the
That
be the least
= 0,
number
12.
of
rf.
of integers of the
form
4n -
1.6
1,
4n
odd integers
is
1,
of
with 6
a:
+ 2,
+ a-
,s
1?
a.
show that x 5x s
6
+ Ax
is
if
1,
rfc _ 2
i
<
= 2,
rt _ 8
k, rv_s
= 3, ri_ = 5,
4
= r*_
r,
-f
in
and
1%-%=
?<_ i
= 1.
8,
Thus a and b
first
ten
which are
1,2,3,5,8, 13,21,34,55.
is,
if
the Euclid Algorithm process has five steps, the least pair of
is
(a,b)
Why
S and 13.
with b
<
34 must contain
less
than 7 steps?
If
bq
+r
and
bt
s,
if
p and
q are integers
and
p*
= 2^
1.
even.
Extend the
definition of least
common
multiple to
integers.
13.
rk -
values of a and b
an odd number
of the follow-
0,
same form.
Using Theorem
4n+
of
Which one
a.
+ be
ad
^d
d\b; that
of the forms
1, s
<
if
Prove that the sum of an even number of odd integers is even and the
product of a set of integers is even unless they are all odd.
1 is
by
is
terras of
9.
s+
6.
and only
10.
divisible
is
<
where
a,
Algorithm for
An
1.6
its
and
b
is
st
(a,b).
Prove that
8.
5.
and b
ab then r
1.
Prove
7.
r divides
at least one of
+ 2.
Prove that JV in Theorem 1.8g has at least one prime factor of the
form 4n 1 and hence there is no greatest prime of the form 4n 1.
divisible
6.
and
form 3n
s,
bp' only
+2
if
of the
14.
and
2,
is
(576, 73).
(ab,ac).
prime factors
3n
or
1.8c.
= d
g,
where a and b
point.
1.8a, 1.8b,
(a,b)
divisor
Theorem
the process of
common
of b in green,
21
Divisibility
Show
if
xi
by
is
of
yz
x,
such that
a =
y*
and
z2
22
if
common prime
then that
sarily hold
if
common prime
a and 6 have a
factor divides
(b,c)
if
then
(6
24.
all
2c,
Show
c,b
62
c)
Under what
+ by
if
and only
c2
if rb'
b 2 , (c,b)
and
r'b
r'a
a'b
r,
+ b'y = r
^ 0, have
a'x
= d
by
1
,
where
it is
im-
d.
a = bq
r,
-6 <
2r
<
6.
This forms the basis for the so-called least remainder algorithm.
and
such that
integer
If
makes no
column, here
bers
1 or 2.
it
we use
fine,
c*
Answer the
a2
+ c).
26
solutions
25.
Would
c.
and a2
(b
factor
23
1.9.
this
Show
Carry
g.c.d.
26.
If
6)
(c,
and both
and
a
implies that a
is
even.
Show
29. Establish results similar to those of Exercise 17, but use the least
b are odd,
that
(c
show that
6*
6)/2 and
remainder algorithm.
(c
+ 6)/2
are relatively
solutions of
is
even, b
greater than
27.
The
is
+b =
2
35
35
equivalent to b"
31
If (a,m)
if
1,
for
b is divisible
what
integers
by m,
will
is
for integers
a and
call
"o
b.
an
integer?
2
,
a, 6, c,
15
.9.
Why
does
it
work?
when
what we
call
them.
We
If
the Martians
designated three objects by the word "glob" and six objects by the word
"toes" while our "divides" is pronounced by them "sots" then it would
be equally true that "glob sots toes." The corresponding result would
12
~T
hold,
sary,
whatever the words or notation. However, some notation is necesand we are accustomed to the "decimal notation," associated with
the number ten, since we have ten fingers, and say our number system
we had twelve
We
we would undoubtedly employ the "duobase would be twelve. If we had just eight
fingers,
first
place the
The
for
of
1.
Since 5
where a
Show
30.
of base eight.
0,1,
-,9,
and make
24
769301
is six,
0-10
1.9.
For instance: 23
is
understood to
3-10
+ 9-10 +
6-10
An example
of multiplication
25
would then be
Also
1011010
101
7-10.
1011010
The
Using
of ten.
letters,
we could
abcde
where
0>12,
a,b,c,d,e are
zero being a
From
lOd
102c
106
111000010.
10*a,
(We
the symbols,
little finger.)
the
tell
from the
system
last digit
by 3?
If our number system had the base
symbols 0,1,2. Then abcde would mean
is
Number
2 2 10
two
2*
23
2*
22
1110
number we add the powers
2s
2*
10 11
111000010
To
2s 27
1011010
+ 3d 4- 3 c + 3 6 + 3 a,
2
to the base
101
three
much
numbers above would be 90 and 5, and the result, 450. To see this, notice
that the digits in the binary form counting from the right indicate the
occurs) of the corresponding
presence (when 1 occurs) or absence (when
power of 2. Thus we can make a table for the numbers as follows:
the decimal
in
requires
it
divisible
The
call
5,
0000000
1011010
power
write
+8+
16
64 =
90.
The
of 2
un-
other
from the
last digit
by 3
divisible
whether or not
number
for six,
would be
but
were
would be
number
zero,
divisible
by
like
2.
telling
for three
binary system,
is
number system
the simplest.
especially adapted to
machine
It
addition table
is
calculation, since
The
it
if
and
and
1.
It is
manner.
Suppose we
1.
Continuing
in this fashion,
0,
+ =
1
1, 1
we have 49 = 2
binary
is
indicated
0,
0-1
0,
1-1
We
number
1.
12
24
17
system to the
49
Then we divide 24 by
0,
below
it.
2,
10,
of every schoolboy:
2*
its existence.
mainder,
0-0 =
Then
17.
The
merely
+ =
26 hence 49 = 2 6
is
can correspond to
and divide by
2,
it.
and the
re-
its left
10001 in
26
1.10.
One
This
is
is in
any pair
of
of integers
of divisions
and
multiplications
3.
and
cards to
five
27
tell
it
were to be
one of "yes," "no," or "maybe." What number system would you use
instead of the binary system? What assumptions about "yes," "no,"
and "maybe" would have to be made?
375
19
those cards
Rational numbers
750
9
4*
1500
3000
2*
6000
5.
12000
14625
In the
right
left
the even numbers and, in the addition, omitted the numbers to the right of
the stars. The reason for this process may be seen by writing 39 in the
binary system, namely, 100111.
Show
for
any object?
that
if
first
7. Exercise
zeros.
but
we
39
is 1
is 1
we do
multiply
it
multiply
not multiply
by
This
32.
it
it
is
by
by 8
8.
Show
that
is
if
the quotient
is
when one
odd then
1 is
divides a
0.
disregard-
number by 28
if
the quotient
is
even, the
above.
1.10.
Exercises 1.9
2.
Four cards are constructed. The first, headed 1, has all the odd num1 and 16; the second, headed 2, hus the numbers:
2,3,6,7,10,
bers between
fourth,
headed
8,
headed
has
all
4,
You
ask
someone to choose a number between 1 and 15 and to hand you the cards
on which this number occurs. You then add the numbers at the tops of
Rational numbers
(a/b)b
b(a/b)
o.
28
This we
call
it is
written as a "ratio."
two
and
where bd
(c/d),
From
0.
as
we
When
numbers by
=^ 0.
numbers
rational
(a/b)
29
Rational numbers
1.10.
(a/6)
(4)
(c/d)
(ad
+ cb)/bd.
the definition,
(a/b) b
Then,
if
multiplication
is
a,
(c/d)d
to be well defined,
c.
Hence
we have
(a/6)
(a/b)b(c/d)d
(a/b)bd
ad, (c/d)db
cb;
(a/6)
if
(c/d),
we must have ad =
We
(c/d).
to hold,
is
the
An immediate
(a/6)
and
consequence
is
6c,
bd
= a
we would
1,
(a/1)
(3)
(ak/bk),
0,
(ac/bd).
Now we
since
why
can see
(0/6)
(a/6)
by
the exclusion of 6
Also
1.2.
all
definition.
Since
we want
(a/6)
(1/0)
co,
that
is, 1
0-
co.
a.
This includes a
0.
= 0-
co
(c/d)
bd
=
=
(a/6)
(a/b)b
bd
2(0
following:
Thus 4
(c/d)
(c/d)d
bd
6
= ad + cb,
the commutative property for integers, and the last equality results from
the definition of a rational number. However,
it
bers.
We
a number.
We
(a/6)
(c/d)
-bd = ad
cb,
It is
co
that
is,
much
0) co
co
2.
we were
if
it
it
to call (1/0) a
of
In fact (a/0)
not a number.
numis
not
call
8 are
co)
and
(2
other numbers.
where the
= 2 2 = 4 and
co)
number
However,
if
Suppose we
define
0.
in (a/6) is necessary
Hence
Hence
ac.
(0/1) (a/6)
6afc.
These
(a/6)
(a/6)
numbers, (ac/bd)bd =
0.
the following
(a/b) (c/d)
Since (a/l)l
we
of rational
must imply
cb
whenever
ad
ad =
if
(5)
(2)
a6/c
therefore
Definition of equality:
to be equal
On
cb.
two
is,
It
is
if it is
called negative
if
a and
rational numbers,
we say
that r
<
if
Furthermore,
there
is
if
a positive
30
rational
is
31
1.11.
rational
numbers there
always
is
n_1 -\
B
+ a xx + ao whose
Let f(x) be a polynomial a n x + an_ix
Let r and s be two relatively prime integers.
coefficients are integers.
=
then
s divides a and r divides ao. Show that this
Prove that if f(r/s)
12.
Exercises 1.10
Show
and
implies that
associative.
There
a.
Show
2.
Section
Would
zero integer.
whenever
If r
5.
d = kb for
k,
a non-
If not,
show that
(a/6), s
and
(c/d),
s is
4.
(r/s) to
6.
r/s
Show one
be in terms
Use Exercise 20
ber whose square is
7.
8.
What
9.
(c/d)
fail if
of Section 1.8 to
(a
we
defined
+ c)/(b + d).
0.
integers
that
if
is
no rational num-
and
Show
and
that
<
if
a/6
>
mean a =
c,
d.
system has
all
numbers.
102
+ 7- 10 +
1
6- 10
c/d
if
and only
if
ad
>
where 6
<
(a
+ c)/(6 + d) <
9-
10" 1
is
a power of 10 and a
is
an
is
no decimal which
is
an integer prime to
3a - 10 e
is
is
and d
posi-
Why
does
if
1/3
we would have
if
c/d.
decimal.
On
be.
This means that only rational numbers which can be written in the form
which
<
the
(a
a,b,c,d are
a/6
1 1
this
certain fractions.
a/6,
+ c/6 + d).
= (ac- bd/ad + be).
=
and
tive
(a/6) (c/d)
Show
c.
As we
numbers?
1
(a/6) 4- (c/d)
2.
does (0/6)
a,6,c,d,
(c/d) shall
(a/6)
b.
1.1 1.
numbers?
Why
Compare Ex-
of a,6,c,d?
rational
a.
What must
is 2.
(a/6):
^how that
r.
6how
is
symbol
are integers.
Exercise 12.
what
a/6.
ka,
number?
for k, a rational
a(l/6)
The number \/2~ + y/Z is not rational. Hint: Show that the
given number is a root of an equation of the type described in
6.
(c/d)
ercise 7.
1.2.
3.
1 all
result of Exercise 12 to
Use the
13.
if
not.
3,
1/3
32
1.11.
number
d such that
1/3
.3
1/30, 1/3
.33
1/300,
1/3
e,
we can
.33
find
(1/3)10"*,
new kinds
If we write
to be used to define
view
necessary.
is
However,
if it is
of
<
x\
xn
large
enough we
is less
dz,
1/10) J
may make
number which
is
not
less
is
the smallest
1.415
greater than 2.
1.4142 2 1.4143 2
,
list
the second.
and
By
please to 2.
number
ional
he decimals
sumption that
impossible
if
r is
the smallest.
r is rational.
is
is less
than 2 and
r,
(2)
is
below.
rational
Finally,
Thus
all
the decimals of
(1)
each
we have shown
that r2
= 2
is
form
1, 1.4, 1.41,
This
we
2 because
ihaii
quence of decimals:
(1)
1/10".
<
2x/10
3,
aj
x\ as close as
may
di,
(x H
since
dk = .333
their properties
to see that
we may use
all
a decimal
Thus by choosing k to be 6,
-6
we can make the decimal closer to 1/3 than 10 and so forth.
This process of approximation works well when we are concerned
where
Since
33
third,
we can
hence
find
where r
fine
is
r.oi, r.ai0 2 ,
a natural number or
number
called a real
number as
(x n
1/10") 2
a,- is
We
digit,
follows:
With every sequence of decimals of the form (2) we associate a real number R which, by definition, is considered to be so placed
among the rational numbers that
Definition:
1.
is
2.
If
S is any
of the sequence,
Thus
since it is greater
number
then
.O,
[< 2 <
and each
property that
x\
r.aia^,
is
S >
number
of the sequence.
number
R.
the real
"
"
if
is
any
ra-
34
tional
number
S >
number
of the sequence,
1/3.
On
quence
1.12.
real
is
se-
(1),
number" includes
a rational number defines in
The term
pansion of
"real
all
way
this
and
also includes
it
2/5, since
It
it is
numbers which
We
same
to define the
real
number
real
Thus,
Is it possible for
(2).
The answer
number?
ment
ai/10 and b 2
Many
two sequences
this because
1.12.
Complex numbers
(2)
is
where
= 6+1.
it is
value of x2
and thus x 2
is 0,
square plus 1
it is
0, x*
real
number.
0,
and multiplication by
ex-
and
b are real
imaginary;
if
bi
numbers
a
>
1.
0,
There
is
1.
There can be no decimal whose
However, mathematicians are insatia-
bi)(c
di)
o =
if
(c
ac
adi
all
c,
bi)
.&1&2&3-
called a
is
complex number.
di)
If b j 0, it is called
pure imaginary.
?* b, it is called
+ di
(o
(o
pansions to be
R=
than
closer to
is
+1=
and they have created a number whose square is - 1 and call it "\A-I
i.
By definition, & = 1. Any number of the form a + bi where a
dition
real roots,
ble,
rational ones.)
ir,
x*
rather difficult.
we omit
9.
define
.Oi0203
num-
the
real
or
S=
and so forth.
Negative
It
all
To simplify notation, first notice that if we have two decimal expansions, we may multiply or divide both by a large enough power of 10 to
make the dissimilar portions begin immediately after the decimal point.
(This is on the assumption that we may deal with real numbers as with
greater than
S=
is
if
Theorem 1.11. Two distinct sequences (2) define the same real number if and only if they are identical for the first k digits, k being some nonnegative integer, and from that point on, one has the sequence of digits
a000
less
.40000
and
35
Complex numbers
(o
+ bci +
+ c) +
bdP =
(6
(ac
Furthermore,
+ d)i
bd) +
we
(ad
+ bc)i.
num-
bers.
We
may, without
First, if
will
OiS
loss of generality,
bx
+ 2.
be greater than
However,
c is less
shows that
all
than
less
first
than
all
are zero.
6i/10
9/100
oi
>
all
will
c,
where 10c
<-
= 6j + 1,
Hence
R ^
c.
It is
a remarkable fact that any polynomial in x with complex coequal to a product of factors of the form x - c where c is a
efficients is
any polynomial
is,
Thus
bi
this case
Then the
1.
be greater than
if 6 2
all
a nxn
cannot happen.
rational
On
bi.
cannot be S.
Second, suppose Oi
be
assume
<
8,
number ai/10
unless
all o<
will
dn-ix^
Onix
-2
a-2X n
+ aix + Oo,
o f* 0,
after the
where the
ct are
-
Ci)(x
complex numbers.
Ct)
(X-
C n),
of the
1.12.
36
numbers
numbers
To
we need no new
kinds
coefficients are
We
recapitulate:
greater than
b.
Answer Questions
5.
+x
is
Suppose we denned a
bi
If x,y,
>
and
di\f a
a.
x >
b.
>
y,
0,
y
y
>
>
z implies
>
Show
that there
is
Therefore,
ago.
this equation
had
real roots.
we invented
Since x2
For
all
the
numbers
it
much
the process
is
complete,
complex numbers
is
some-
irrational
of this chapter.
number,
real
imaginary number:
-8, -5/4,
5,
V2/V8, V4,
roots of x*
6,
0,
roots of
x2
0,
X, sin 45.
2.
Are the sum and product of two rational numbers necessarily rational?
Is the
sum
of a rational
irrational
numbers necessarily
irrational?
number and an irrational number ever ranumber and an irrational number ever
tional?
rational?
4.
If
rational,
br
+ dr,
where
show that a =
and
>
with
d,
would hold?
is
VT.
8.
+ =
numbers,
common:
and
a,6,c,
of these properties?
Keep
these results on
hand
d.
r ir-
for
If
4- bi,
is
identified
show that
number,
where i
over
Exercises 1.12
tional
saw that
a=
rational numbers.
c or
xz.
7.
a.
However, x 2
by
b is not a
z.
implies xy >
>
z are three
numbers.
a,b,c,d real
all
2, 3,
solve
37
Complex numbers
a.
(a/6)
b.
(a/6) (c/d)
is
identified with (a
with
+ bi)(c
-f-
(a
di).
bi)
(c
+ di).
with
Repeating decimals
2.1.
M = a + b- lOwhere n
is
the
number
"
10" 2 "
10"8n
and
39
b is the repetend.
Then
10"
M-a
M-
10"
+b+6
a+ b
10~"
10~ 2n
10" n
4- b
2"
+
+
lO"
,
.
Subtraction gives
- \)M =
(10
and hence
is
+b -
Thus
We
and
shall begin
by exploring certain
in
other connections.
also useful in
Some examples
numbers
1) is
is
number
is
it is
repeating
one
1/7
2.30000
1/19
Example
1.
if,
as above,
we
call
M.
any
.142857
.076923
See Exercise
1/23
below.
1/17
2,
of repetends
.027
rational
= 4123.123123
and hence that lOOOn. - n = 4123.0 - 4
=
Hence
and
n = 4119/999.
4119.
999n
4119,
=
Then lOOOOrc - n = 4123000,
412.34 12341234
Example 2. n
=
=
=
=
=
1/29 =
1/31 =
1/37 =
10"
"
A short table
= ~a +
are
3.4156156156
fc
1/13
.1212121212
Conversely,
many
10"
Repeating decimals
2.1.
number
the rational
10"a
+ b-a,
10"a
Exercises 2.1
2.
If in
To prove
N by
10*, for
let
be expressed as
S8
may
its
By multimay make
repetend begins
write
M in the form
a process
of division
why must the expansion repeat from that point on? Why in dividing one
integer by another must eventually a remainder appear which occurred
before? How may this be used to show that any rational number has a
repeating decimal?
3.
in Exercise 2
40
2.3.
cannot exceed
b-1.
4.
teger
that the repetend of the decimal expansion for 1/wt for any in-
division, if
5.
r,
Show
m is prime to
first
less
if 1 is
Compare
10, 11
replaced
There
1/29
There cannot
7.
is
mathematicians of
all
209
when 10
when divided by
Congruence notation
divided by
is
1/19
by
in the
1/9
more than
be any
2.3.
a positive integer
is 1
10.
of
the successive remainders in the division process are the remainders
11, 11
Show
41
Congruence notation
times),
ff.).
7, 2
which
when 10
2
(mod
is
congruent to b
10
7)
10
of the greatest
is of assistance in the
divided by
is
2 (mod 7)
7,
is
and the
6
(mod
divisible
by m.
10
we
like,
write
7).
In general,
Each of the following letters represents a digit chosen from to 9 inclusive, and no two letters represent the same digit. A fraction, equal to
a repeating decimal, is indicated. Find what values the letters must have
7.
Hence 100
EVE = .TALKTALK
DID
Number
of terms
in
For instance,
by 7, the
first
what
yield at
most
first
first six
follows
when
in the
and the
This must be so,
any point
in the division
2,
depends only on
different remainders.
Hence,
if
the
first b
before.
61
can
remain-
This shows
than
In general,
we divide a by
if
remainder
in the
divided by
7,
is
divided by
is
when 102
5,
etc.
7.
is
if
we
the remainder
divided by
7,
when
first
10
b,
10,
102
53 b
(mod m)
are
would be as follows: The remainders when a and 6 are divided by
the same. That this is equivalent to the former meaning can be shown
as follows.
\r
which *
result can
9, 16, 30,
those
more
digits.
The above
(mod being
is
begins with the second digit of the expansion and ends with the seventh.
(mod
The
mod
follows:
ent
2.2.
read: a
is
II
have a
shows that r - =
t
= mq
or r
ms, which
is
t.
t\< m,
On
divisible
if r
lt
we would
by m.
is
* The absolute
value of a number 6 ia written
np gative, and +6 if b L positive or zero.
|6|
if
ia
42
In
brief,
by
divisible
we have
just
true, since
is
remainders
to their
visible
conversely.
by
On
Exercises 2.3
Prove that
(mod
if
What
7).
a 10* (mod
o 10 r
7),
where
>
s,
then a
KT =
-
to),
as
is,
to
and the
is, let d be the
is
c)
implies that
b.
(mod
br
one difference
1,
is di-
br
is
to)
fact that 6
divisible
of
r;
that
g.c.d. of in
than
if
since
a/7?
shown by the
b)(r/d) is divisible
factor greater
(b
is.
other a -
(a
= a + c-
Suppose ar
21).
by m\ that
1
a ssb (mod
(mod
to the other
43
Properties of congruences
2.4.
if
is
to implies
larger than d.
b,
and
we have proved
3.
If
number
the
result hold?
What
if
by
What
11,
general conclusions
Which
Theorem
a
(mod
2.4c.
If ar
br
(mod
to)
and r, then
of to
TO/d).
Specify any
exceptions.
a.
b.
c.
d.
If
aT
is
find the
What
2.4.
the
ulus
is 3,
This
to
is true,
and hence ac
You were
If
since
(mod
to),
b divisible
by
then ac
also
Theorem 2.4b.
Class of 2:
m implies
(a
other
b)c is divisible
by
number
of that class.
+c=b+
-7 -4 -1
all
our mod-
if
number
From
of
10
11
one class
is
"equal" to any
adding 7 and 4
is
the
same as adding
(mod m).
Class of 1:
-..,-9,-6,-3,0,3,6,
-8 -5 -2 1 4 7
be
be is also.
For instance,
to).
Class of 0:
Properties of congruences
Theorem 2.4a.
^bles of integers
mod
7.
2.5.
44
of
any number is congruent (mod 9), to the sum of its digits. How
would you express this without the use of the notion of congruence?
that
7)
(mod
Multiplication
Addition (mod 7)
How
8.
11
and mod
properties
Use the
3.
exist, for b
a.
b.
5x
c.
4x
solutions
=
m
=
(mod
13 (mod
13
is
b.
ax
b).
in order that
10.
6.
If
ab
ab).
(mod
7.
Show
Oi,0o to
and you
8,
+ ilO + Oo
11).
an-ilO"" 1
which
is
show that N
= 27.
which N
N for
9.)
is
divisible
by
p),
where p
is
9.
Find
all
such
that (x
+ y)
xp
(mod
Prove Theorem
13.
a),
called
4.
a prime number.
2.4d.
Teams A and B
=m
(mod
b),
(mod
team B,
5.
2.5.
show that
conclusion be
if
(a,b)
(a,6)
(mod m) and bx
that a10
is
_1
+
+ aJO
+ a,,-! +
+ 01 +
a_ilO*
congruent to a n
4- a*,
ao
=d >
ac
men
contain six
of equalities given in
each.
How
7) give
six
in a, a*_i,
12.
what
(mod m).
(mod 7/1).
integers,
If
Show
of
Given x
(mod
For
Section 1.2.
in solving the equations above,
5.
mm
one.
and
digits 0,4,8,
Exercise 8?
Go
sm
you of the
a10"
congruent (mod
6).
congruences be solvable?
Find an expression
is
is 7.
b).
numbers
3 (mod
a.
tells
7, 11, 12.
Where a congruence
4.
when
He
12.
What
2.
may
9.
mod
he
instance,
tell
Exercises 2.4
You then
inform
45
Congruential equations
is
plays each
man
What
last
two
digits?
Congruential equations
implies
It is
1?
(mod w)
solvable, since
b a =
We
is
a solution.
(mod m)
is
always
We partially prove
Theorem 2.5a.
a and m is
8-c.d. of
The congruence ax
1,
46
proof for
composite.
To
the numbers
the
a, 2a, 3a,
(1)
No two
of
imply x
(p
p) to one of the
and only
if
(a,m)
When
1.
ax
by
multiply
(mod m)
is
solvable
if
then b
is
b,
we need merely
this
only
1)
(mod
p)
The congruence ax
divides
a*~\p
Since (p
1)
is
by the
1)!
omitting pa from
(1),
factorial
(mod m),
6c
as
was
of
is
solvable
if
order,
congruent to
(p
(mod
1)!
p).
to get our
we may
desired result.
we have
the remainder
(mod m)
is
10"- 1
=x
some
in
(p -
when o
(mod
by
p),
the (p
p,
1)" remainder
is
is 1.
the same as
divided by p.
and
b.
Thus we have
Furthermore, the
is
numbers in
(mod m)
if
(p
for
Theorem 2.5b.
The
list.
divide
numbers (1).
Notice that Theorem 2.5a implies that ax
this,
l)a, pa.
and thus p classes represented. Hence, since there are only p classes
(mod p), one of them must be the class of b; that is, b must be congruent
(mod
prove
47
Congruential equations
2.5.
Exercises 2.5
distinct solutions.
To prove this,
suppose ar
g and
g\b.
Then ax
{a/g)x
Since (a/g,m/g)
solution
is xo,
1,
+ 2m/g,
m/g, z
a*
(g
5x
2.
this
if
(mod m)
are
3.
The
way
than that
of finding
a solu-
11).
of
p does not
p whose every
If (10
(mod 10)?
5.
Theorem
divide a,
multiple
l)m/g.
(mod
of
a divisor of p
is
1,
p being
a prime number.
4.
this
1.
3b and 3c above.
l)/p
If
2 and
5,
there
is
digit is 9.
a positive
is
p, except
3 (mod 10)?
what
7 (mod
integer,
If
is
10)?
If
9 (mod
10)?
+1+
l) p
(1
+1+
1)
(mod
p),
A similar method of proof may be used to give the following useful result
11, pp.
54
ff.).
Theorem
2.5c.
If
is
1.
(mod
p).
l's is less
than
p.
Prove that if m p + n p =
(mod p) then
a n odd prime number. (Ref. 3, p. 50.)
7
mp + n" =
(mod p2 )
for
48
8.
for a composite
1,2,3,-
What
number m instead of p.
by the positive numbers
m+
one value of x
is
common
prime to m.
(m
y (mod m)
<
in Exercise 9,
If
is
see that
aa h aa t
p,
1 1
Can
12.
Does a2
is
<
<
Exercise
show that
your answer
if
m is a
we
Theorem 2.6b.
less in
a composite number?
p,
which a
(mod m)
or
= -b
first r
(mod m)T
prove
number
as Euler's
and,
if
m>
1, <t>(m) is
m and prime to m.
To prove
for
this,
If
we
(a,m)
1,
a (mod m),
t
is
a direct conse-
then a*
(,n)
let
follows:
(mod m).
this,
(mod m) and
of a
may
o u (mod m) with
>
leas
The
> n
than
r.
*\a f
,
a'
tfrt*
air+ \ a2 ^,
.. -,
.
0'
1,
.,* =
.,*
I,
li
For instance,
and prime
last
a'
Corollary 2.6b.
ai, a,,
s.
a'
if
denned to be
Theorem 2.6a.
(1)
theorem
prime to
is
(mod m) and
is
If
a,
theoretic function
<f>(l)
call
o^
An important number
aiaj
To
(mod m) imply a
b-
p)
a.
be extended for
ra/2.
known
<t>{\2)
,aa
to 12.
a'(aia 2
for
y/p for
the
Theorem
in the proof of
quence of
(mod
2.6.
l)/2,
What
we
2.5a,
than
less
l)/2 values:
0.
is an odd integer.
If a is an integer, show that no two of the re(m + l)/2 values of x + o are equal. Since (m + l)/2 + (m + l)/2
1 and there are only m different numbers (mod m), show that at
sulting
in
where
least
<t>(m),
0, 1, 2, 3,
is
9.
than
Why
where
'
49
2.6.
r is
r.
a divisor of
</(m).
We
In view of
call r
50
belongs (mod m)
of a/m,
where
2.8.
m is prime to
10, the
number
51
2.8.
divisor of 0(m).
namely, 142857.
2.7.
Factorization
by means of
Now,
that case, 5 7
since 5 7
(5
2 3
)
from
we know
for
51=0
-1 =
different
2.6b
(mod p),
(mod p).
1
would imply
may be
From Theorem
1.
must be
p
by Corollary
7 2, r
if
cyclic
properties of congruences.
that
if
r is the least
(mod
p)
n,
then
and hence p = 2. In
4 (mod 8). Thus,
-5-1 = 5-1 =
and a
divisor of 7, hence r
n beside 2
7.
Hence
with the
gives us the
multiplication
4,
cyclic.
Similarly,
if
(mod
cyclic
1 to 16,
we would have
Why
is
the sixteen
this so?
Can
7);
There
is
p
n/4 has a prime factor p
less
(mod
is
instance, the sixteen digits in the repetend of 1/17 are the digits
The repetend
of
than n/4
it
(mod
14).
whose
= -64
is
-30
= -1
(mod
29). Similar
computais
a prime number.
to 9 and
last digit is 7
N
N will be transferred once and only once to the right end of the
number. Hence the digits in N will be just those that occur at the right
end of the numbers cN for c = 1,2,
p - 1. The last digit in N will be
7 (see Exercise 4 of Section 2.5). If we multiply N by the numbers from
multiply
curring in
(-4) 1
to
For
Now 5 =
which occur
from
14).
Vn/2
we
9,
If
by 3
the
p- 1 =0
1
142857142857,
di-
which
that
Theorem
Euier's
(mod
10) for
sets of
-,
numbers
multiplying
to 9 in iV.
by p -
52
2.9.
(6,c)
1,
we
if
and
call 6
we
is
write
(b,c)
There
c relatively prime.
is
(mod
And
g.
6c) to just
if
is
congruent
rs
such num-
less
set,
bers.
a rather simple
one of the
53
2.9.
Let
follows:
have proved
Theorem
To
and
2.9. If b
prove
let Ci,c 2 ,
and c are
,c
prime integers,
relatively
,6 r
<j>(bc)
4>{b)4>(c).
6),
Theorem
shows us that
2.9 then
Exercise 4 below,
c).
<p(m)
4>{p\
l
)
0(p2 )
<Kp
which, by
)>
is
The congruence
bx
+ 61 =
=
Cj
(mod
1,2,
c)
,s,
since
6!
(6,c)
may be written
and which
1.
<fr(m)
= m(l -
l/pi)(l
l/p 2)
(1
l/p f ).
Thus
bxn
(1)
are
61
congruent to
all
c,(mod
6x12
+ 61
(mod
61
bxu
6)
and congruent
bxi,
Exercises 2.9
+ 61
in order to Ci,c 2 ,
The congruence
62
6z 2
(2)
all
(mod
6<
Thus
(mod
2.
Prove that
6)
(mod
c)
bx 2 ,
and congruent
+6
of the set
in order to Ci,c 2
,c
in order to Ci,c 2
,c,
numbers congruent to
(mod c). Each of these
c);
numbers.
We
by
r.
3.
Prove that
if
4.
Prove that
5.
Show
6.
Show
7.
If
All are
No
3.
is
0(m) = m/2?
by
that 2 P
is
is
last digit is 3
= p"
n_1 .
for
p=
11
and
23,
and
if
The repetend
(mod m) and
y.
a prime number.
what can be
is
= 1
1 is
bx
a prime whose
is
What
2.8)?
8.
that 2
16
if r is
if
digits,
of
set of rs
9.
ha*,
If ai,a,
1.
When
p whose
last digit is 1 or 9?
Can
following properties:
2.
odd?
<f>(m)
prime to 6 and
and (mod
m is
if r is
and congruent
6)
c,
congruent to 6 2 (mod
c).
Cj
bx
are
c).
prime to
6c.
of the set.
ba
10.
Show
What
(mod m)
is
,a t is
that x 17
is
a reduced system
-x =
the largest
for all x?
(m,b)
if
(mod
number
ba\,
1.
you can
odd integers
19
x.
54
1
2.11.
Show
2.
and
that the
number
terms between
Then F(2)F(3) =
to F(6)
is
if
is
and an
Wilson's Theorem
To
multiplicative.
55
allied result
which
we assume
is
equal
(6,c)
and have
*(2)
ZM - /() - E/W/00 -
F(bc)
d\be
1
3.
+b
in the proof of
Theorem
2.9 for b
14.
r\b
6i,6 2 , -,b t
If
-,c,
(mod
some
c).
Cj
c),
(mod
(mod
6)
6,-
(mod
c) is in
6c) is
6)
and
congruent to some
6,-
6c)
and some C/
(mod 6) and
How may
tion
/.
Now 2>(d) =
this
(mod m)
1
6.
17.
is
divisible
by
m m
show that
the least
numbers
of
power
of a reduced residue
a such that a
of a'
such that
(mod
(a')
p)
2.8.
and
(mod
<t>(p)
p are powers of
*Z,<t>(d)
paragraph of Section
which
(s,r)
1,
+ p-l +
</>(p )
+ 0(pn
),
p being a prime.
p,
system
2.
in the first
power
r is the least
>
if
of the
d\p
n
visors of
=f(6)-nc).
s|c
The first equality is by definition; the second holds since any divisor of
6c must be the product of a divisor of 6, and a divisor of c, since (6,c) = 1.
The third equality results from the multiplicative character of the func-
r\b
E/wl/(i
3.
Ci,c 2 ,
r\b
5 and
-p + p -p +---+pn - p""
2
p",
is
>( d =
Theorem 2.10b.
d\n
p).
From Theorem
we know
2.10a
that ]</>(d)
is
a multiplicative func-
d\n
2.10.
Multiplicative functions
tion, since
Tm =
d\n
where n = p^p*
!>(<*)
d|p,
is
multiplicative.
E*(d)-
d|p2
EtCOi
rf|p,
r
However, each sum
pr
contained therein, which proves our theorem.
Hence
is
Section 2.13).
Recalling that d\n
shall find is
very
There
Theorem 2.10a.
If f(n) is
F(n)
is
First of
right is the
F(fi)
/(I)
+/(2) +/(3)
+ /(6),
F(2)
ff.),
is
11,
easily.
2.1
a.
If
is
summation
pp. 259
Theorem
a multiplicative function.
all,
allied result
= /(d),
d\n
then F(n)
and an
Wilson's Theorem
2.1 1.
fruitful.
d of n.
For instance,
= /(l) +/(3).
{m
1)
has a factor in
common with
in.
be a prime.
See Exercise
12,
56
To prove
2,3, ,?>
-2, p-1,
all its
let
the
(p
2)!
)()
(2o,)(-
()(modp),
to 1
(mod
p)
(p
1)!
1(1)(1)
is
10!
perhaps
is
(l)(p
1)
= -1
(mod
^ M-M-l-(-l)
(mod
11).
It
+ 4 + 7+14.
sum of
has been shown
is,
half the
less
This
may
implies
a(2->(m) - 2m;
is,
2s,
= 2m.
l)tr(m)
must divide
1, it
<r(m),
which yields
(2
clarified
l(2-6)(3-4)(5-9)(7-8)(10)
57
o-(ra)
p).
number.
Similarly, 28
called a perfect
(2
sum
congruent
is
Hence we have
the
positive divisors,
that
is
numbers
Perfect
2.12.
Certainly
we have
l)s
= m.
and (2
l)a,
= 2's.
Theorem 2.11b.
p
is
If r
(p
l)/2, then
(r!)
m -1
(-l)'
(mod
p)
if
Hence (p
However, there are r minus
(mod p).
2.12.
1)!
signs,
(-l)(-2 2 )(-3 2 )
(-r2 ) (mod
1)!
p).
( l) r (r!) 2
o(n) is the
erty that
it is
the sum of
its
a prime number.
since
if
ab, 2"
would have
The numbers
it
for q
sum
with 2
number.
The
is
1)
as a factor.
Perfect numbers
There
l)/2.
In fact, q
2a
p-(p-
2-(2
(I)
a prime.
The number
of a
number
less
is,
+ 2 + 3.
its
fact that
Mersenne made
five errors,
namely, q
and q
61,89,107 yield primes, has been shown (Bulletin
American Mathematical Society [1948], Vol. 49, pp. 378-380).
Recently five more Mersenne numbers have been found with the aid of
posite numbers,
of the
521,607,1279,2203,2281.
58
two
(See
articles
S. Uhler, Vol. 18
The term "perfect number" had its origin in the mystical meanings
numbers. Amicable numbers are similarly defined. (Ref. 11, pp.
If
known
draw
straight lines
sides
may
be
may
are those of
2r
1 is
(mod
Prove that
= -1
(mod
Suppose
4.
if
4).
is
2*pip 2
a power of
2.
less
in the proof of
z2
if
m -1
(mod
of 2
2r
1 is
l)/2 and
r!
= -1
(mod
p),
then
2.11a, the
numbers
1,2,
,p- 1
Show
a prime,
it
may
and hence
5.
17
r is
a power
Use the
7.
The
first
(mod
the
first
is
odd or even.
show that
if
x2
= -1
(mod
solva-
number ends
is
p)
4).
perfect
n a nonnegative integer are called Fermat numbers. Fermat conjectured that all such numbers are primes. For n = 0,1,2,3,4 we have the
results of Exercise 4 to
Compute
this
= (-ly-^modp);
6.
(p-l)!
ble then
If
(p
Theorem
those having
sides.
that
r,
a prime, r
Is the
with k a nonnegative integer and with the p's distinct primes such that
2.
(p-1)!^ (-l)'(modp);
n
a power of
If r is
where
sides,
r is
3.
It is
59
Exercises 2.13
14, p. 83.)
Fermat numbers
2.13.
Fermat numbers
Mathematica.)
of Scripla
of
by Horace
2.13.
8.
Does
every even
in either 6 or 8?
for
respective primes
known which
17
257
In
is false.
fact,
Since an equilateral triangle and a regular pentagon may be constructed with ruler and compasses, we can divide
the circumference of a
circle into 3 equal parts and 5 equal parts
by such construction. Show
how
65537.
no other values
of
are
8.
It
11
12
For example, 2^
18
23
+1=
36
38
73.
tion.
2>(d).
641
6700417.
a In
1,
Prove that
<r(n),
the
sum
may
be constructed.
and
60
Prove that
0.
number
d(n), the
tion.
Is the
Show
that
1)!
is (ra
Corollary 2.14b.
oi,a 2
,a r are
any
If rai,m 2 ,
,ra r
below have a
61
and
common
solution
12.
(ra
and
11.
if
2.14.
= 1 (mod m) then m
1) = (mod 7n)?
a prime number.
is
a\
(mod
wii),
o 2 (mod
ra 2),
name
-,
xm
a,
of the Chinese
(mod
r).
Remainder Theo-
rem, since such problems have been found in ancient Chinese literature.
In fact
in
China
There
may
which
a.d.
is
Europe.
If
5.
that
is,
3n
= 8
This gives
4- \bx.
is,
\hx
numbers which have the rewant 8 + 15a; to be con2 (mod 7), or x = 1 (mod 7).
all
5).
=
+
We
1 + ly and 3n +
105?/.
Thus the two smallestnumbers satisfying the conditions are 23 and 128. Notice that
we began with a solution for 3 and got one for 5, thus one for 15; our last
This gives
x =
2 = 23
positive
mod
That
3-5-7.
this process
Theorem
2.1 4.
a number x
is
To prove this,
r
c),
bl for
since b
be.
(mod
and
Theorem
b)
and
notice that x
an integer
t.
if
and
and
(mod
(mod
s are
if
so that r
is
of the
form
(mod
bt
prime.
if a; is
a solution, x
by
the is
and by
and hence by
t.
This
less
than
yields the
Corollary 2.14a.
There
is just
gruent to x (mod
be).
In
know how
when she counted them two at a time there was
one egg left, and similarly when she counted them three, four, five, and
six at a time; but in sevens there were not any left over.
What is the
smallest number of eggs she could have had?
bill
2.
any or
If
all of
the solution
b.
=
=
c.
a.
3 (mod
6),
and only
t
3.
b) if
A woman
many
the
c)
Furthermore,
if
presenting her
shown by
c are relatively
Notice that
of
Tf (b,c)
always works
Exercises 2.14
and
all
3.2.
1 if
28
is
In
positive.
+ Son +
5p =
general solution
is
shows that n
fact, if
if
= 4
we replace c by 4
35n
or
53,
-f-
5w,
5p
p = 5
and p are
5n
7),
63
two unknowns
in the equation
we have
+p=
So our
is,
In
5.
This
of n.
positive.
5p (mod
25; that
in
but this
is
by
longer.
Diophantine Equations
Exercises 3.1
1.
all
solutions
in integers:
3.1.
b.
Introduction
c.
much
of
of pigs,
we have
If c is
if
number
$530.
all,
of
How
of
50p - 530,
is
7c
Now,
He
bought a number
spent, in
the equation
70c
which
the
A man
we
+ 5p
A man received
2.
conversely.
have one or
is
one pair of
3.
53.
we
could assign
any value to p and solve for c. However, the values of p and c must be
integers. Any equation whose solutions are restricted to integers is called
a Diophantine Equation, after Diophantos (Ref. 11, p. 179). In this case,
3.2.
+ 11?/ = 92.
10s + Uy = 39.
20x + I7y = 93.
5x
a.
is
A method of
two unknowns
solution of
in
we
find that the last is the first acceptable value, the values c
There
53
is
is
a better
7c divisible
way
is
-f 5n.
Now
the problem
p =
4,
4 (mod
2c
5).
n must be nonnegative
5,6,7 are
is
equivalent to solving 3
by 5
fits
if c is,
and
it
Thus
5.
must be
of the
form
cannot be as great as
An
equation ax
+
1
by
in
x and
y.
contains no terms of
equivalent to
is
#o
the
bn, since ax
ay (mod
b)
implies x
+bn) +
by
c;
y (mod b).
that is, by
Putting this in
ax
abn
64
However, axo
implies y
by
yo
c implies that c
axo
by
and by = by
7x
Theorem
more
solutions
relatively
3.2.
and only
if
if
prime and xQ ,y
by
one solution,
is
all
c.
has one or
If
a and b are
Xo
+ bn,y =
yo
The equation ax
by
c represents
and y
3.r -f
Qy
co-
of
ways
it
may
3.
212.
We shall
frac-
a number congruent to b
(mod wi) which has a factor in common with a and hence which can be
divided into both sides of the congruence. Thus we can reduce the given
congruence to one with smaller modulus and apply the method again and
again to congruences with smaller and smaller moduli. We illustrate the
method by solving
ax
19x
tion
and,
to find
1.
We seek
Since 73
19).
is
is,
(mod
2.
(mod
(mod
becomes
Sy
How
is
1?
What is
on the
a and
by
how
21y
37y
+ by =
53?
7x
ci
7x
line
if a,b,
and
What does
axis.
c are positive,
one
c has at least
(a,6)
point in the
c?
15.t
625).
all
If
(mod
this
lattice
imply about
If (a,b)
tice points in
with ac
>
If (a,b)
0,
1,
the
first
quadrant
and none
1,
and
if
a,b,
ab
>
and
if
ax
ab
<
+ by =
has infinitely
0, finitely
with ac
<
many
many
or none
if
ab
lat-
>
0.
c are positive,
are (a
1)
(6
line
line
ax
by
by
(a
l)(b
1)
l)/2
tions.
19).
This
y = 2
Sy
19), or
= -3
Find
7.
That
+ by =
by
73 (mod 125).
ax
4.
(b
is
lattice points?
dis-
tions.
has
quadrant on
What
2.
= 35
any
by = 53.
call
whose
We
7) as
shown above.
1.
solutions in integers x
an
the line 7x
lly
It should
by
The
65
two unknowns
in
Exercises 3.2
x =
value.
may
This method
abn
Thus we have
an.
3.2.
Diophantine Equations
16
8.
Find the
7y
has ex-
into 73
125?/,
we
is
19- 17.
is
9.
In
66
Diophantine Equations
3.3.
two
If
d.
t~
Show
1 1
is
for
by a and 180 by
replaced
a and
if
Suppose 6
each.
in
Thus the
that gy
10.
other.
and 12
set.)
some
integer
number
that the
a and
integral
is
less
hour
faster
than the
the speed
d,
is
an integer
if
may
be used.
12.
How may
However, the
since
any
Show
13.
by
+ 2y + Sz =
may
be illustrated
notice that 6x
+ 3)
Graphical methods
/12.
+ cz =
if
the g.c.d. of
How may
the
method used
lOy
in the numerical
example
a solution of ax
of
Theorem
part of
first
One might
using
3.2,
Theorem
any
n.
is,
5m.
There
in
1.8d.
2t is solvable for
37,
3.3.
5v,
if
and only
Suppose
we
aiXi
is
this:
when each
solution
1,
15z
Suppose the
pair of co-
y divided that of
u in 3x
In general
4-
5y
it
Then
g.c.d. of a,b,c is 1.
anx n
+ 3m = 1 - 3v, z = 1 + 2u.
an equation in two
we
shall set
if
is
not quite
a'
b'
c'
a"
b"
c"
up the equations
of 2t
of the following:
+ by + cz = x',
+ b'y + c'z = y*,
a"x + b"y + c"z =
ax
=d
a'x
z'.
if
loz
of this section
(mod m) when
Theorem
a&i
for
efficients
is 1,
solvable
lOy
11
1?
is
is
3.3.
Prove the
15.
somewhat
a,b,c divides d.
14.
g.c.d. of g
6a;
Theorem be used to show the existence of a solu= b (mod m) when (a,m) = 1? Would j^ou
practical
method
of numerical solution?
a
of the proof
Euler's
that ax
if
consider this
and only
if
divisor of g
37
the integer nearest to (n
is
t.
x
is
d.
The method
case as
n=
terms of
and only
a& z =
divides d.
divisor
f or
solution
67
in
divides d.
g is the g.c.d. of a x
can, from
a,-'s
Theorem
a\X\
and a 2
3.2, solve
a-iXi
in-
and
z'
and
z in
terms of
gy.
This
may
x',y',
arbitrary parameters,
and
is 1,
z';
these
may
setting x'
we have a
= d and
considering
general solution.
The
chief
(a,b)
and as
br
g.
Then
68
Diophantine Equations
(a,b,c)
gu
cv
implies
1,
sa)/g
Let us see
while
u =
such that
last
u(as
how
av/g
bv/g
2, v
1 is
102/
= 2 and s = - 1
sav/g)
5y
+ u(as
+ 2z =
rb)
To
eters y'
and
34,
lOr
2,
2.
Zz',
3z',
= -x'
Along the
tion in three
4.
Find
5.
Show
then (xi
we have
and 100
19c
(mod
=
=
equations
d,
d'
2
the integer solutions of x
all
that
2,
first,
we have
two
linear equa-
unknowns.
if {xi,y\,Z\)
yi
3/2,
z\
and
- 2)
15.
ax
by
4- cz
0.
a solution of ax
and use
4-
by
show that
this to
all
cz
= d
Find
all
solutions of the
y =
z =
where u and
tions of
the equation
ax
xi
2/1
+ riu + 8\v,
+ r,u + 8aw,
Z\ 4- t%u
+ by +
cz
-I-
and
s 8v,
(ri,r 2 ,r 3)
and
(si,s 2 ,s 3)
are solu-
0.
100,
5) implies c
5p =
shillings?
lines of the
3.4.
19c
by + cz
+ b'y + c'z
ions in three
+2z',
+ 3p + / = 100,
c+ p+ f = 100.
we
be solvable in integers.
10c
If
the only
z'.
= -2x'-Sy' +
of chickens,
a'x
of puzzle
is
ax
y',
z'
Another type
1.
for as
x',
we have
34,
94 for u
5, 1,
solve
3.
and
2x'+y'
0,
Exercises 3.3
8x+\0y + 2z =
=
-x - y
4x+
is
1.
+ 3z =
a solution of 2w
there
80 for u
answer.
(8,10)
If
= cv + gu =
1.
0, 20,
c
.
69
8s
notice that g
1.
Expanding by the
cv(rb
(g,c)
3.4.
19w.
Sub-
Since the
arise, for
lems as the following: Find an integer b such that the following equation
70
Diophantine Equations
71
3.4.
3.4.
t,
-
x -4
On
multiplication
and
collection of terms
x*
3(6
b)
1.
we have
the equation
of solutions.
b 4- 8
It
may
therefore
0.
x*
If this is to
have rational
square that
is,
for
some integer
s
Thus we need
perfect
s,
+ 86 +
b2
must be a
(b
+ 4) 8
12.
this point
At
we
shall
Hence one
factor of 12
must be
(6
+ 4) 2
b -f
s2 .
+s
+4-
s.
In
symbols,
<
where
rt
12.
Thus
+ =
t
=
=
+ 4)
and s if and only if r and t are both odd or both even (we say briefly,
"r and t are of the same parity"). Since interchanging r and
t does not
change
- Vcy
b,
we may choose r
to be less than
r=
M= 12;r= 2,
in absolute value
That
is,
is
sum
the
of
all
and
the exponent of
Vc
is
odd.
we produce no change;
terms, the sum becomes
if
2,
6 and r
(xo
= 4.
parity,
The quantity
Only the
fol-
also
and x,y
is
we
we make
replace
the
-Vc
by Vc,
Hence
+ Vcy
= x
+ Vcy.
sides,
on the
left side is 1,
of values of
setting it
we have
no pair
left side of
x and y
for
Since (xo
+ Vcy
n
)
any pair
= 8.
- Vcy.
each term of x
If in
in parentheses
increases with n,
and
(xl-cy$ = x i -cy2
is 1
a solu-
1,
which yield
b
is
-\-Vc-y.
to be considered are
r
However,
cy*
- Vcy ) n =
t:
= 6; r = 3,
,2/o
n
Q)
(xo
lowing equation:
+ 4 + 8,
b + 4 - S>
b
2(b
if
with y Q not zero and c not a perfect square, there is an infinite number of
solutions. To this end, let n be any positive integer and see that the expansion of (x
tion of
x2
=d
cy2
1
has either no solution or an infinite number if c is not a square. If d =
fully in the next
this is the so-called Pell Equation, which is discussed more
chapter.
12
for another n.
In contrast to the above result for the Pell Equation there
markable theorem of A. Thue, which is as follows: If
be used to prove
/(z)
= a nz n
~l
a n-^ tt
aiz
cio,
n >
3,
is
a re-
77
Diophantine Equations
is
irreducible, that
has no polynomial
is,
fac-
has only a
finite
+a
number
^ lx K l y
+ aixy n~ +
l
we
let
of solutions in integers x
Ooy n
and
y,
x2
zero being
ff.)
Exercises 3.4
that
since x
x -
-3
Prove Theorem
Show
if
x2
Thus
3.4.
cy*
zJ,
x2
= 4w2
+x
2r, z
2s, rs
which implies
= u2
=
+ 8, x = 8
r.
rs
2
,
common,
in
m u2 implies that
s = n2 with mn =
,
and
it
would divide
relatively prime,
s are
squares which
and
and
may
x.
Now,
How-
s are also.
be written
This gives us
u.
Pythagorean numbers
m +n
2
2
,
x = n2
z2
2
,
= 2mn
3.5.
4u2 =
and x are
ever, z
and
and
if r
3.
to
is,
does
z2
73
finding solutions of
ax"
3.6.
m and
equations.
There
is
It is
is
Pythagorean
To
set.
and
5.
is
called a
ff.).
y*
z*
In fact,
conjectured that
xn
_|_
yn
is
zn
is
if
if
x,y,z is
any two
and
is also
it
tions
we
these.
Furthermore,
2 (mod
4),
which
is
if
greater than
if
then be multiples of
factor in
common.
efforts of
many
integers n.
in
impossible.
all
This conjecture
2.
a solu-
commust divide the third, and, after division, we get another solution.
Hence we may assume that no two have a factor in common. Such solumon,
called
+y
Then suppose
3.6.
following problem
74
Diophantine Equations
3.6.
10a
and 5c
6,
for 106
To
is
a two-digit
what
for
c,
denominator
we
10ac
6c
10a&
6,
and a
a
c'
Exercises 3.6
ca, or
10a(c
(1)
6)
c(a
side,
and
it is
or
bis divisible by
5, or
b is
even and
Hence
either c
c i6 divisible
by
is
(mod
5)
(1)
and
shows that c =
6,
c'.
Then a -
left side is
6 is
odd or even.
left
Show
>
0,
Will the
and we have
(6-5)(2c'-6) = -c ,6>5,
/
if c' =* 4,
9,
62
2.
2u, c
5.
divisor of
6.
6)
(1)
ka,
6-
6,
a-
1;
gives
6.
left side, it
Write 6
2,
49/98
Then equation
2a(5
if c'
= k(2a -
1),
c)/(6
+ d).
that
if
c.
number.
that
if
a/6
<
even according as
integers?
which becomes
and the
c'
Then a =
negative.
Since
formed from the digits in order of the two halves of the number, are added
'.
is
(a
(giving 55)
or second factor
first
all
c/d
3.
The
Find
How many
(65)(2c'-6) =
to write
Assume
2.
an integer
2c' for
is
We
even
5.
must be
nor
b).
a/6
a divisor of the right
is
In the respective
+6
+c
106
Now, 10
9.
10a
is,
3 or
1,
such that
that
is
75
a two-digit
is
we need
fractions ab/JJc
and
6's
number
same
result hold
if
+c
+d
d'
we remove the
77
4.1.
if
and
are the
first
Continued Fractions
8
^
4.1.
There
is
"^
8
ratios
u n /u n+ 1 for n
>
1,1,2,3,5,8,13,21,34,-...
for
even values
Each number
in
the
is
sum
of the
two preceding
If
ones.
a twig or branch
hand moves
selected, and,
is
to the nearest
it
The
There
is
shown later.)
call k, as-
The
Golden Section.
called the
of
rectangle
is
similarly determined.
First of
means
for the
odd values
for
ratio n/w + i
sociated with
of n,
is
many
other sequences
all,
of the formula
We
U n = U n -\
(1)
5- 13
1,
and so
deception which
may be cut up
as
shown
as
on.
This property
shown
2/3
is
1/15, 3/5
trick is to set
(2)
= ca" -f
d/3'
fitted together
c,d,a,
It will
and
/S
may be
determined so that ui
(2) gives
1,
uz =
and
Fibonacci Sequence.
The
square 8 units by 8
76
numbers
1/2
is
to give a rectangle 5
square unit.
cessive
may
+ W_J.
5/8 = -1/40,
First,
If (1) is
we
find
how a and
/S
must be
(1) will
true:
etc.
Ca
d/3
ca"-
dP
n~
+ ca
n~2
-2
d/S"
be
satisfied.
78
Continued Fractions
The
coefficients of c
and d
a -2( a2 _ a
which Wi =
last
u2 =
1,
if
a and
/3
are the
If
>
the equation x
a,
and
and u n = 2u_i
1,
1),
5.
Hence the
respectively.
and jS^OS2
i)
in
ax
u_ 2
if
79
4.2.
defined
is
by
its first
/3, where
two terms
38
(3)
For
we
= ca
= cc?
?*
/3
U n = aUn-l
0.
Since
Second,
and n 2 =
d.
that
+ d/3
un =
is,
where q =
+ d/3,
2
.
6.
result:
Then,
we
if
we denote by a
see that
/3
is
the root
equal to
00 -
'
a)
(1
- V5)/2
V5, and a
and
/q
- au^^/q,
If in
Exercise
If in
(wi
-f 46.
a =
5,
/3
Is there
infinite.
little
is
- u 2)a n~
(/3wi
btln-i,
|a| >|/3|
a limit
show that
if a = /3?
of the sequence
is
given
by the formula
a)
of (3)
Va
un
a(0
for
where a
2(2n 2
c=-l/V5\d=l/\/5.
is
the root of x
au\)/a
can
ax
Note that a =
2
.
+ ndan
=
0,
4{aui
)/a2 and d
a/2.
show why
not.
Hence
Suppose we have two sequences whose nth terms are p n and q, respectively, where p = p_i + p_ 2 o = g_i + g_ 2 and pi = 1, p 2 = 2,
8.
wn -
(4)
03*
- a-)/V5.
while gi
4, q 2
Prove
Exercises 4.1
p n q n-i
2.
(1) for
un
of the Fibonacci
As we found from
having
many
may combine
same
3.
result using
left side is
formula
Using previous
equal to
n*).
(1)
results, find
lim
Pk
p*.-,g*,
sequences
In
fact,
= a k pk-\
where
Pk-i, qk
Pk
P*g*-i
qkPk-i
akPk-\
Pk-i
a-kqk-i
fffc- 2 .
Pk~2
Pk-\
=
qk
many
Now
u n+ i/u
1, 1, 3, 7, 17,
(-1)".
we
Achieve the
(4).
n
4.
-(w n-iw n +i -
q n pn-i
4.2.
show that
qk-i
Pk-2
Pk-i
qk-t
Cfc-l
=
a k qk-i
g*- 2
qk-\
80
Continued Fractions
The second
and the third is obtained by subtracting a k times the second column from the first, an operation which wo
know
if
qk-iPk-z),
qkPk-i
we
(pkQk-i
qkPk-i)
(-l)*-*(p!gi
qiPi)
(-l) (p*?i
fc
if
Hence equation
Pk/qk
(3)
that
is,
Pk-x/qk-i
13
21
34
55
89
13
21
34
55
89
144
Qk
u*
is
(3)
the
qk-i
qk
results
first.
O-kpk-l
Pk-t
Pk-2
ak qk-i
qk-i
q k -r
- WjfcM-l =
as small as
we
/(UkUk -l).
= 1)
u = ( 1)*,
2
now
established.
A;
Theorem
than
ratio is greater
Fur-
A;
of
4.2a
proved in terms
- pM
We have seen
please.
>i
just
l)
it
Thus we have
(-
\L
for
Let us see
= qk = Pk-\.
we can make
p k and qk
becomes
and
-a(-l)-\
qk-i
If
we found
Pk-i
Pk-\
- ak
Theorem 4.2b.
(-l)7fa*0*-i);
=
qk
fcth
Theorem 4.2a
and Theorem 4.2b states that uk+ i/u k form a decreasing sequence for k
even and an increasing sequence for k odd. These are the results which
is
Furthermore,
Pk-i
11
U*+ iUk- i
differ in absolute
10
Uk+l/Uk
If
g*:
and
Uk
p k and q k are the fcth terms of two sequences defined by the equations (1) and if p^qi q 7 pi = 1, then
An immediate
for every k,
112
1
q ipx).
0123456
Pk
(2)
= 0.
of values for p*
qk
?o
will
ak
(1) let
and choose
Then we
(pk-iqk-z
see that
In equations
(1),
we
Sequences
-1,
of the Fibonacci
of a limit,
-r-
1/2, 1
1/2, 3
82
Continued Fractions
is
greater than
all of
we must prove
approaches zero.
This
is
Vfogi),
may be
written
(a h a t , ),
knowing the a t % we can easily write the longer form. Such a fracmay or may not have a last term. In the latter case we call it an in-
since,
tion
finite
continued fraction.
If /is
(ai,Oi)
The
second convergent,
its
fcth
convergent
relatively
1/Cmj),
l/(fcff,),
fractions
form
in the
/=
(4)
Such
83
the latter.
4.3.
may
we call a
),
(ai,Oi,
,a k)
its first
its
fcth
convergent,
convergent.
where p k and
q k are
in
simplest continued fraction in a certain sense would be that
are
convergents
successive
which the a's are all equal to 1. Its
The
in the
Hence the
positive integers.
Suppose, then,
we
which approach
qtpi
Theorem
1.
(1)
4.2c.
If
A;
A;th
Theorem
4.2a,
1, 2,
(1)
more
zero.
We know
So we may
x =
or x t
a*
a, except
perhaps the
first is zero.
be considered here.
it is
first
o.
Use
of the
we
If
may be
zero,
all 1
and the
we call it a
is
l/x,
+ V5
1.618034
chosen, since x
is
positive,
.618034
simple
is
to
1/x-
V5-1
as
From now on we
bt
a,+
where no
if
equation yields
fractions,
a,+
let
of the
of the conthese quotients converge to a limit and that hence the value
4.3.
numbers
and
84
Continued Fractions
4.4.
Exercises 4.3
We
sequence
of Exercise
4 in Section
un =
2.
What would be
4.1.
terms of the
of successive
for k
Pr/q r
+ w_ ?
aun-i
we make
this
pk and
qk in terms of
p*_ 2 and
pk -\,
the
p k/q k is
fcth
qupk-z
(ata*_i
l)(p k^q k _ 3
this
by replacing a T by a r
(a,p r_i
+ Pr-2) + ffr-1
+ qr-z) + q -i
a,+l(arPr-l
qr +i
1/2
is
1/4
valid?
1/8
Does
method
this
"r+lffr
by Theorem
column
4.2a,
of the
we need
of convergents of
+ Pr-l
^ q -i
,ak )
which
is
holds for
is
l)/a 2 [a 8 (aia 2
,
1)
ai]/(aa 2
= a z pi + p lt
a k p k -i
this
shows that
pr+i
(1)
in Section 4.2
and
If
p k /qk
is
pitik-i
the
fcth
QkPk-i
(-1)*,
The
conditions of
Theorem 4.2b
1).
is
a systematic way to compute the convergents of a given conTo do this, notice that p\ = a\, p 2 = aia 2 + 1 would
tinued fraction.
q3
(1) in
= a 3q 2 +
q lf
we would have
o 2 = 2, a% = 3,
fashion,
3.
That
this
ai
1,
p*_ 2 , qh
= a k qk-i
g,-
1
1
and p_i =
0.
In a similar
12
Pi
qo
the statement of
Pk
also hold.
a,-
(ai,a 2 ,
we
qr
the
be seen that
Pz
+ q -i)
Pr
There
may
l/o r+ i.
Theorem 4.4b.
Com-
this it
q 2pi =1, the sequences p k ,qk are regular sequences and we can
conclude from Theorems 4.2a and 4.2c the truth of
P2?i
a continued
fraction
From
this will
However,
+ ftr-l
+ q -i
a T+l q r
dr+lPr
and
Oi, (aia 2
pr-2)/(arq r-i
Qr+lPr
'
first
".Or),
(Oi,02,
replacement in p T/qT
'
4.4.
holds
Since the numerator and denominator of the fraction on the right are
it
get
Pr+l
k =
Now
(1,2,1,2,1,2,..-).
3.
3.
85
this for k
If
For
10
43
225
1393
30
157
972
line is 2- 1
computed.
g*_,.
1,
10
is
3-3
1,
and so
86
4.5.
Continued Fractions
if
1.
Find the
first
five
and
is
x; that
b.
2.
(1,3,5,7, )
119/108
1
to
1/ast,
tained in this
4.
5.
If pk/qk
(ai,fl2,
,o-k),
show that
If qk
pansion Of
7.
three convergents.
of \/5,
Pfc-i,
a*
compute the
three
that
all k,
Notice that
in
is
we might
1
,
x/17
below the
-,Oj,ai).
ex-
).
To
48
53
260
573
19
21
103
227.
have chosen
Oj
1,
ob-
a.'s
a*
in place of an
2,
value of y/Yl
is
where x x
the expansion of
We
4.123106.
first
11/9
Now \/l7 = 4 +
Example 2. Expand V17.
=
=
Since x a = x
\/l7 + 4
8 + I/**
4)
1/(V17
where x 3 =
last
l/x t where x 6
119 14
also
of 573/227.
l/x z
x,
of Exercise 5,
2
(-l)*
= 0(modp
list
and
their discrepancies
>
qk
imply p k~\ =
finite
qk-
continued
2177/528
Convergent
33/8
268/65
Decimal value
4.125000
4.123077
4.123106
+0.001894
-0.000029
+0.000000
.123106
Discrepancy
state a necessary
qk implies
t ).
we know
Actually, since
number
lies
between
any two successive convergents, we can tell from the expansion that
Notice that the
4.1231 is accurate to four places and 4.123106 to six.
continued fraction
4.5.
227/119 =
is (4,8,8,
(a,k,a,k-i,
illustrate
Pfc/^jt?
Hence
first
2.236068.
1/2.
where x 2
where x 4 = 108/11 = 9
first
where
1/xa,
l/x 2
We shall now
1.
Now, 573/227 = 2
(1,2,2,2,-..).
Show
is
x.
(1,1,2,1,2,1,2, ).
c.
) then a x
is,
Example
a.
It is apparent
Exercises 4.4
87
Continued-fraction expansions
is
periodic.
We
have so
far
it is
Example
more importance
This
is useful, since,
as
we have
is
seen, the
For instance,
is
a better approximation.
3.
lines of the
is
a simpler way
a method which can be applied to get a positive solution of any polynomial equation. We seek, then, the real root of x* 2 = 0. Since the
root
is
between
One may
but
it is
and
2,
we have x =
\/x\,
where
X\ is greater
than
1.
88
4.6.
Continued Fractions
coefficients.
tions
him to any
referring
mechanical process
illustrate the
89
Closeness of approximation
See Example
of this section.
Thus,
-2
2
1
1
-1
x =
if
+ y, y satisfies the
+ Zy + Sy - 1 = 0.
equation y*
Then y =
\/x\ implies
+ 3zi + Zx\ - x\ =
x\ - 3x\ - 3xi - 1 =
1
0, or
0.
efficients
=
-
Xt
xi
x2
+
1 +
The computation
pk
where
where
1/zs,
l/au,
Pk/Qk
6x 2
1.
24x 3
and accuracy
Exercises 4.5
0,
10
0,
1
of results is as follows:
29
34
23
27
1.000
1.3333
1.2500
1.2609
1.2592
-0.2599
Discrepancy
signs.
of convergents
ak
is
+.0734 ] -.0099
+.0010
-.0007
2.
Using continued
3.
Find the
4.
23y
1.
first five
Since
ir
lies
of
Va +
2
1,
7r?
Va + 2
2
for posi-
tive integers a.
5.
Notice that the larger the a, the greater the gain in accuracy from one
s
the positive root of x
7x 2
0.
in
mind
it is
Closeness of approximation
4.6.
where o = a
To prove this,
with
Xf+i
", Ctn-l,
and the
let
x,-
first
O n )>
iflh
1
is
Similarly, 22/7
In
is
the best
fact,
may
-k
No
n> *)>
p/q is a convergent of the continued-fraction exnumber x there is no rational number a/b with b ^ q
which
Theorem 4.6a.
a,-,
hence
tion
in the expansion of
terminate with
(a,-
However,
if
1) or with a<
Xi+\
1/1.
1,
terminating con-
is
The
closer to
If
90
Continued Fractions
Lemma:
than b and
If
a/b
<
<
c/d
and
a'/b'
ab'
= -1, then d
a'b
is
greater
b'.
us see why the theorem will follow from the lemma. Supthe kth convergent in the expansion of x and a/b is closer to
First, let
pose pk/qk
is
than
hence b
To
is pk/qk-
is
Then a/b
greater than qk
<
It
-ad) <
b'(cb
<
therefore b'
{cb
d.
placed
by Xk+iva
kth.
we
will
Pk+i
m ak+\Pk
?k+i
a,k+iqic
have an expression
for
+
+
From
Pk-i
qk-i
c/d
Similarly,
<
may
it
<
a/b
ad)/db
its
However,
d.
To
<
Hence
between the
is
91
a'/b'
(a'b
cb
a/b,
ab')/b'b
ad
is
<
we know from
x k+ iqk
holding in the
be shown that b
Furthermore,
= \/W.
first
qk-i
q k -i)
+ qk-i =
qk+i
qk(xk+iqk
qk
ak+ iqk
instance unless
qk-i
inequality
Furthermore,
d.
that
the
qk,
is
a;
>
qk+i
Ofc+i9*
implies
Xk+iq k
+ qk-i =
(Xk+i
a k+i)qk
2qk+i-
x - qk
Then,
0,1,2,
Pk
1,
as
tqk+h
= pk
all
these results,
Theorem 4.6b.
we saw
if
expansion of
x,
If
we have
then
t.
<
Pk
qk
qkqk+i
<
T
E
Pk
+ pk+i
qk
Combining
q k +qk+i
pk
+ 2pk+
qk
Jt2q
k+ i
pk
'
qk
(ak+2
(a*+ 2
l)p
1)^+1
p k+i
'
It is
'
qk+2
between one fraction and its successor; or, third, he between the last
fraction and xq. In the third case, its denominator must be
greater than
x -
qkqk+i
p k+1 x
qk+iy
l.
is
irrational,
but
pk
qk
qkiqk
qk+i)
q^,
since it lies between pk+2/q k+3 and k +i/qk+i. In the second case,
p
its
denominator must be greater than the denominator of the largest fraction
in the above set to the left of which it lies. We call the
sequence above
making
if
Exercises 4.6
vergents of x.
first
three con-
92
Continued Fractions
3.
Fill in
4.
Section 4.6
differences
5.
1
6.
7.
is less
than
would be
for
Would
.01.
less
which one
than
A;
must the
close
end of
(x
p k /qk )/{x
Pk-i/qk-i)
-qk-i/qkXk+i.
not
If
and
r,
with
a*.
= xT
a*.
the expansion
is
Take
< k and
let Xk
let p'Jq'i
some k
is
r,
Then
we have
If
and
tegers r
with
<d and cs - rd
a/b
9.
coefficients.
we
As above,
a/b and c/d are two fractions in lowest terms for which a,b,c,d are
positive integers and be - ad > 1, show that there are two positive in8.
difficult,
Xk
is
with integer
of a quadratic equation
Any
Theorem 4.7a.
93
4.7.
<
in order
5,
that
and
r/s
<
c/d.
of order
1
Show
1.
QLr-X
is
in value
that
if
V'k-r-1
= xk
X k-%-r-2
satisfies
cients.
Then x =
satisfies
It is
is,
{pk-\x k
somewhat harder
Theorem 4.7b.
Show
V'k-r-X k
x,
If
Pk-t) I\qk-\Xk
qk-z)
coeffi-
an
is
a/b and c/d are any two successive fractions of a Farey Se- ad = 1. In this connection the results of
is
ax 2
bx
+c=
0,
(Ref. 6, pp. 23
where
ff.)
a,b,
and
periodic.
As above, we
4.7.
We
saw
ceasing.
continued fraction
there
is
is
finite
To
Pk-J/iWk-l
qk-i).
spectively,
by
z,r$f,,u, re-
and have
X
(i;
rz
+s
tz
+u
ts\
y/vr,
|e|
\ru
1.
It is
(XkPk-\
Similarly a periodic
out ceasing.
X =
in
when
see that
real) root of
We
first
have
x =
since
it
if
must be
r/t
Pk-i/qk-i (that
l/gj-j (that
absolute value.
is,
e/i2
is,
= s/u
r/t) is less in
1/t2 ) multiplied
<
>
|if|,
by a number,
e,
less
Pk-i/qk-*
than
If
in
we sub-
94
ax 2 4- bx
where
stitute in
C=
0,
+c=
we
(1),
Az2
get
+ Bz +
However, x
and hence
A=ar + brt + ct
B = 2ars + b(ru + ts) + 2du,
C = as + bsu + cw
2
=-
r/t
\eu/t
t/P
rjt/u\
s/u
\ru
\B\
4-
\2ax
and
is
+ 8t)/tu =
8t\
95
4.7.
Continued Fractions
1,
e/&
r,/u2 ,
which shows
b\
|2o|,
therefore bounded.
Now,
less in
if
we can show
depending only on
number
some
fixed
x, then, since
of different equations
As
the same.
number independent
which
must be
can
identical
of z*,
2.
Verify
3.
Making use
is
only a
finite
z are
are
Now,
+ bx + c =
0,
\A\
be/P.
5.
bounded.
Second,
the same
it
may
is
r/t,
we
see that
C is
l)
VD,
common
Show
to
(2ax
As a matter
terms.
(The
maximum
x,
e,
and
t\
is
d(2d
1),
+ f\t/u\ <
that
is
bounded.
By
c'
determinants
first
aa'
bd
ab'
bd'
d!
ca'
+ dtf
cb'
dd'
is
row
sum
the
of the left
first
of the
+ b) + 2aerj/tu;
\eu/t
d being the
'/
\eu/t
-D=
satisfy
2a
2A
2c
2C
Since r/t and s/u are successive convergents of the continued fraction,
expansion of
x2
these expansions?
all
bounded.
B = - (eu/t +
if
is
prove that
|6|,
VD
erties
\a\
4.
we have
-2aex
4ac
4- c,
+ ae /P - 0e,
< \2ax\ + +
A =
is
greatest integer in
ae2 /fl
where
-B =
bounded.
which
Exercises 4.7
must be
or z, and
Fill in
satisfy.
is irrational.
is,
nt/u\.
Use
this result to
b2
- 4AC - B2
96
Continued Fractions
Show
6.
periodic," that
if
is
is, if
x =
if
(pkX
VD
first
is
"pure
term, then
we have
satisfies, in brief,
then p k
qk-i, pk-i/qk
D,
D in
show that
if
a\
where
D is a positive integer,
- Dy 2 =
ai
f(<H +
lies
for
l/s/2,
l/xz),
if
f(x)
and f(y) =
the equation
we
If
we may
First,
is also, if
we need
x%
is
de-
y be the conjugate of x,
is defined by the equation
let
call y 2 ,
x,
is
l/y 2);
Let
Though
is
l/x 2
1,
between
is
The remainder
conjugate
its
if
that
and
PS-DgJ-sbi.
Show
call
theorem.
and
7.
We then
and 1.
between
lies
greater than
if it is
We
and -1.
the conjugate of x,
+ pt-i)/(q& + qt-i).
97
4.8.
portion
x =
(ai,a 2 ,
is <ir+ h
<
and, since
-y,
a r+k
<
,a r ,
is
Xk for every
a r+ i,
Now y r =
1,
a r+fc
ar
k.
Qr+k+i,
1/l/rfi
implies
we have
ercise 6
an integer we
solution for
acterize the
periodic; that
Or-C-VlfHjJ
first
is,
(ai,a 2 ,
in Exercise 6 above,
-,^,01,08, ,*,
ar
we then have
q&*
(gj^i
pk)x
p*_i
0.
when x =
and
being positive and the
Pk
qk-i
Pk-i
and 1.
That
is,
a,k+ r
= [-l/W+i].
Similarly,
However,
x r+l
Or+k.
Similarly,
we may show
that a r_i
Or+k-i
and
so on back to
1/yk+r+i
implies
ai.
qk
ak+r +
integers in
Xr+k+i implies yr+i
Ut+k+i, which implies that the greatest
equal,
that is,
are
the negative reciprocals of the last two quantities
As
is
of the
form
root between
is
98
Continued Fractions
4.9.
The
4.9.
Equation
Pell
Now,
x2
(1)
a solution
is
(xi+iPk+i
However, x =
VD
p*)/(zfc+?*+i
Qk)
implies that x t
a convergent
+ qVD)q <
l/(p
\/2<f,
above theorem
2,3, the
will
if
D >
3.
be an immediate con-
(-1)*.
Theorem
*+2 implies
is
implies
-VD\ =
of
99
Equation
sequence of
-Dy*=
\p/q
VD
Dg =
p*
Pell
To prove
The
If \r/s
<
x\
(xzPk+i
= \/{VD
4.9c.
pk)/(x 2 qk+i
ai),
pansion of
?*)
To
and substitution in
odd be
x.
prove
(oi,a 2
let
this,
,a k ),
and
let Xk+i
be defined by the
finite
continued frac-
tion
VD
Pk+i
Qk+i
which
+ pk(^ D - a{)
+ qk(VD ~
qkD
If Xk+i is
we
gfc+i
Pk+i
pt+i
aiqk
aipk
by qk and adding,
a x qk)
+ p k (VD -
o x ).
first
will
not
xic+i
Pk
0,
qk D
0.
than
less
is the
so denned
not
than
less
(pkXk+i
-p k
VD
shall
now show
X
is
r/s
the con-
Now, k odd
"
pre-
which
is
p/q
is
Pk/qk
less
<
than
x2
- Dy = 1,
n
-
if
result.
<
l/2g 2
x, substituting in (1)
pk
l/2q\.
not
e
<
greater than
Xk+i
VD. More
Pk/qk\
is
We
However,
If
for x*+i,
implies that x
x,y positive,
we have
Theorem 4.9b.
be solved
-*>*-*
cisely,
of
Dy% = 1
x.
-qtx
I*
and
+ qk-i) may
= fcg
Xk+1
0,
1.
pt^/iqkXk+i
(1)
However, p k/qk
Dql =
it
giving
equation by
+ qkPk+i + Pl~
we can expand
1,
We
jCLkjXk+i).
is
Now, x =
gives
-pflk+i
uniqueness,
(2)
(ai,o 2 ,
<*i)
+ VD(qk+i -
(1
eqkqk-i)/eql,
eqk q k -i
<
qk implies
eq\,
that
is,
e(q*
+ qflk-i) ^
1-
100
Continued Fractions
4.10.
Exercises 4.9
1 on
with
101
the right
side.
1
Prove Corollary
4.8.
10.
x2
- Dy* =
In Exercise 8
Would
1 1
1,
that
is,
terms
/cth
in
3.
Would Theorem
4.
if
Though we have
Dy =
2
choosing
choosing
(that
is,
5.
Show
that
6.
Show
that
if
to be 1)
also for
D=
2,
D=
is
tion
is
4),
the equation
term.
DyZ= -i
the
D=
of
3 (mod 4) the
VD must be even.
kth.
it
Hence we
would
+ sy/D) = rn + VD 8n
then r
of
is
free us
If the rth
convergent of
VD gives a solution of
is
divisible
by
k,
VD.
r, s,
defined
by
of the
such that
x*-Dy*=> (1)",
= x2
= x 2 whenever
Then,
Equation.
P DQ =
2
VD by Theorem
expansion of
1, P/Q
4.9b.
Call
it
P,Q
will
is
be a convergent
Then k =
and have z +2
integer, is a solution of
4.9a would
VD
Use the
the
prove
shall
of positive integers
9.
is
x*-Dy = 1,
n an
is
convergent, where k
a solution of
2
with
there
x*-Dy*= 1,
if
From a computational
Theorem 4.10a.
that
all
if
has no solution.
Show
If
3.
a solution, but
3 (mod
xz-
8.
to be
3,5,17,7,11,13.
Dm
hand
at
First,
x*
x*-Dy*= 1
By
if
be?
least,
7.
positive in-
4.10.
of the equations
fori)
if
be
all of r,s,n to
the period?
by
so, of
by the
Would
tegers?
is it
17y
NOW,
VD - X
(p&r+l
that
102
4.10.
Continued Fractions
VDq
4-
difficult to
accomplish, there
convergent of
fcth
way
a quicker
is
VD
is
103
not very
Xr+l
=
=
(~l) r {Dqrqr-l
VD + (-iy(Dq qr-i
tfrPr-l)
We
ctr+i
Now, x
VD -
a r+i
+i
where
ai,
+ l/xr+2,
l/zr+2
thus Xt
There
is
first
So we
the middle.
- p pr-i) +
f
ai.
VD
quite
is
Theorem
- ai=
l/xt,
p n ,q n
by the
are given
To
prove
this,
+ qVD) n =
suppose that
r,s is
+ VDq n
(p
Then
a positive solution.
(p
That
+ qVD)^
is,
for
sy/D
some
1
.
demonstrate
The
4.1 Ob.
all
(p
tity,
section.
formula
to be proved.
shall
(-l) r (Z>g,g,_i
4. 1 Oc.
Equation,
Pell
a certain interesting
dr+i
8 of the previous
VrVr-l),
Theorem
in Exercise
have
was suggested
Pell Equation, as
+ VZ)(prr-l ~
PrPr-1
continued-fraction expansion of
a square,
VD,
where
pm
+ qm VD
this
quan-
we have
(1)
form
of the
is
+ qVB) m =
where
(oi,
a 2 a 3 a4
,
a*,
o3 a2
,
2ai,
),
t
From
the
first of
of all the
equations
However,
Exercise
5,
qt+i
aji+i?*
+ qk-i
section 4.4).
t=
a*+ i
= ak +i
+ qn-i/qk
<
(compare
qt.
Replacing
rpm
at+i-r-
Con-
a*
- uVD =
p_
and hence
Suppose
qk+\/qk
(ajt+i,
ak
and u
,as).
Ot_x,
(r
+ 8>/D)(pm - qn VD),
u = pm s- qm r.
Multiplying corresponding
%*-*
+ qk/qk-i
qk
VD) =
sqm D,
- sVD)(pm +
(r
we have
qm
+ Pt/9*.
a\
implies qk+i/qk
Hence
first.
(2) in
qk+i/qk
sides,
]) U m
2
(r
we have
_ Ds )(pl - qW) =
2
1.
Then
are positive.
&m
qm VD).
+ Du
2
,
p*
+ Dq
However,
ai
+ pk/qk =
of the
ak+i
is
(2ai,
= 2d, a = ak a t =
proved.
ak ),
left
a*_i,
shows that
proof
(2)
we need
is
> p and
>g
t < p
and u < q. Inwhich denies our supposi-
or else
latter holds,
and u are
- q*D =
positive.
2
- Ds
Now,
104
Continued Fractions
implies r
sign as (p m s
qmr)(p m s
2 2
(2) implies p s
same
qm
VD
and hence
qn r), which
2
2
q s D,
2
q r
>
0.
equal to ps 2
is
2
+ Ds q
2
'
2
,
qr 2
However,
sign as
pV - #* = s - = (r - p )/Z).
p m + qm VD <r + sVD implies either pm <
2
(3)
<?
However,
shows that u
all
r or qm
is
<
In
s.
positive; in the
Nonlinear Congruences
positive.
by continued
is
fractions
by
If
The equation x 2 Dy z =
y/D
is
odd,
represents an hyperbola.
what
will
Equation?
Draw
perbola.
Show
then
all
that
if
x2
Dy = 1
2
is
solvable
and p,q
and that p*
- Dq\ =
+ qVD) n =
(-1)".
pn
is its
Dy =
+ VDqn
smallest solution,
1
Just as in algebra
we
are given
by
0,
here
we
are
a graph
showing the relationship of the solutions of the Pell Equation to the hy-
3.
Introduction
5.1.
Exercises 4.10
(mod m),
Sometimes we might
is a polynomial with integral coefficients.
would
times
we
be satisfied to know
know
roots
and
at
other
want to
the
Of course, in the latter instance we mean the
the number of roots.
number of incongruent roots (mod m)
where f(x)
We
some
linear congruences
have no
roots,
have one,
the situation
coefficient of
is
theory
is
Exercises 5.1
is
Show
that a congruence x 2
a prime and a
List
some
of the
106
and then
see
if
5.3.
Nonlinear Congruences
remainder theorem.
6ml
The remainder theorem
5.2.
The
identical equations
after terms
if,
were discussed.
if f(x)
whose
coefficient of
coefficients are
defini-
complex num-
bers, since
(mod m)
(mod
5),
x (mod
5),
x*
which
not
is satisfied
all
x and
5x
by
5.
In
we have used
coefficients of
Thus we
(mod
25)
R=
and
/(a).
shall
to emphasize identity.
(x
a),
f(x) is a
the quotient
is
= {x-
a)q(x)
-t-
is
and the
The
correspond-
re-
expressed in
5.2.
q(x)
R,
polynomial in
f(x)
If f(x)
is
a polynomial
such that
=3 (x
f(x)
/(a)
To
prove
then
we
may
by
(mod m).
if
gruence
(2)
a)q(x)
+R
(mod m),
(mod m).
that the identity (1) implies the identical conhold for all integer values of x. If we then replace
this, notice
which must
result.
write
(mod m)
divisible
is
f(x )
when
it
(1)
5.3.
if
R, then
is
divided
it is
(2)
when we wish
f(x)
only
when
fact,
if,
mainder
has 25 roots.
Since
showed
Theorem
though the
5),
We
degree unless
(mod
are involved,
but we customarily omit the fourth line when only numbers
our notation, f(x)
since such omission will cause no confusion. Using
integers
o, but /(a) =
for
all
(mod
m)
/(a)
that
implies
(mod m)
polynomial f(x)
These two
107
m g(x)
by m, and,
similarly,
(mod m)
two polynomials with the property that the coefficient of each power of x in f(x) is congruent (mod m) to the corresponding coefficient in g(x). For example, we would write
f(x)
and
g(x) are
5x*
x*
+ 2x -
m, ifa
+ 4)
their
ever,
if
We
the modulus
Theorem 5.3a.
(mod
5),
If f(x) is
f(x)
(mod
p)
is
distinct roots,
but
x*
^ x (mod 5),
f(x)
^{x-
a)q(x)
(mod
p).
p),
and
108
Nonlinear Congruences
than
NRh
a^-1-
of degree
Wilson's Theorem.
for
of degree
n less than
that
(mod
if iV*i
(x-l)(x-2)
2 has p
by
1 roots
(x-p+1) =0(modp)
coefficients divisible
Show
p,
8.
Prove Theorem
9.
5.3a,
has
all its
5.3b.
where
p,
solvable.
is
p)
and
7.
is
Show
N& = N
109
v l,
define for a
x*
Then
f(x)
If /(0)
p).
=
^
m f(x)q(x) + r(x),
(mod
p) has
(mod
p), x*
r{x) of degree
distinct roots
x may
if
<
and only
if
be replaced by x*~
r(x)
+
+ sj, where r and s are integers. Hint: Write
x* + bx + c = (x + b/2) + c - & /4 and see that -c + b /* m r (mod p)
for some integer r, or else, using Exercise 6, c + 6 /4 = Nr2 m fr
Show
n.
(mod
above.
Exercises 5.3
10.
t
Suppose a
root, it
it; if
(mod
has two?
If
Would your
ra).
Then
your answer
is
if
ax 1
bx
"yes/' prove
conclusions be the
same
(mod
1 .
the
if
p) for
Show
and
some
that x
r.
s are integers
Show how
1 1
and j
is
defined so that j2
3 (mod
+ sj,
where
7).
(mod m) could
Show
that ax 2
+ by = c
2
(mod p)
is
solvable
if
(ab,p)
1.
See Ex-
A polynomial
.
equation of odd degree with real coefficients must have
Give an example
of
Power residues
5.4.
roots.
not a
is
The above
exercises
ber theory.
is
a matter of concern
x2
= a
5.
If
that
6.
RN
is
Let Ri,
odd prime
R
p,
in
in the theory of
complex numbers
is
numbers.
for real
So
5.4.
If
is
a prime and
xn
numbers
the solution of
by
(p,a)
t,
is trivial
Theorem
num-
a (mod p)
the congruence
Nonlinear Congruences
10
is
solvable
(n,
p-
if
1).
We
5.5.
(mod
where
and only if
a'
When
it is
p),
e is
defined
by
(p
l)/e
l)/e solutions.
all n,
2.
1 or when a - 1. In the
- 1.
1), implies (n, p - 1) = n and ne = p
first case n, a divisor of (p
n - a, we can write
ne a is divisible by x
Then, if we notice that x
present with the cases
when n
a divisor of p
is
x where
q(x) is a
x^- 1
xn
a*
x ne
+ a* - I =
a'
-a=
(x
o)g(xo)
a)q(x)
= sp -
p,
a*
it
in the
(mod
3),
(mod
r is
are congruent to
By
many
the
(mod
Why
8).
primes congruent to
method
of Exercise 3,
many
= -1
(mod
p) for
odd prime
all
a.
an odd prime
divisors of x*
(mod 8)?
1.
p= 1 + 2^'N,N=
is
N=
p).
1, 2,
3,--'.
sults.
p),
and hence
1 1
Xo is
x*
ae
show that
form or where
(mod
if
4.
Hence
independent of x and
3.
finitely
coefficients.
(x n
If
v is
Express
There
a'
a)q(x),
(x n
where
Primitive roots
0,1,2,
b without a common
many primes of the form a + Nb,
(a,b) = 1 there are infinitely many
In other words,
if
if
(mod
a,
To do
1.
this, let
and sj
(mod
(mod
p).
there are
of x n
k =
(p
(n,
without restricting
l)s
= 1 (mod p).
s 1 (mod p), it
x*
follows that a s 1
divides n and re*
then shows that
paragraph
preceding
in
the
proved
we
What
k = 1 (mod
number
of solutions
Hence
the
p).
k solutions of x
if
(mod
+ 26, a + 3&,
A:
p)
is
A:,
which
is
equal to (p
l)/e.
number.
of
We call
p if p
If
(p,a)
1.
1 is
a number
a,
and prove
Exercises 5.4
is
if
show that x8
tf>(p
1)
<f>
In
1
n to be
p-
p) imply
x"^^ ^ =
Conversely,
b,
Primitive roots
5.5.
p-1.
-1
has n solutions.
a divisor of
p)
is
that
fact,
Theorem
5.5a
is
included in
is
congruent to
(mod
p)
and
see
Nonlinear Congruences
112
Theorem 5.5b.
If
is
fc
any
divisor of
1,
there are
we have
17 in Exercises 2.9,
also belongs to k
k of p
1,
(mod
there are
seen that
p-
By
1.
if
0(fc)
Exercise
if
then
If
p).
we
stand for the number of integers belonging to k (mod p),
from
to
number
every
1
Since
or 0(fc).
see that for each k, p(k) is either
p - 1 belongs to some k (mod p), we have
we
let p(k)
p
where
h,---,K
1, fet,
p(l)
+ p(fci) +
0(1)
0(fci)
However we showed
in
Example
5
(mod
is
N
Belongs (mod 13) to
(mod
13)?
Example
= 2*
(mod
10
11
12
12
12
12
12
12; 2
0(3) to 3;
The
0(2) to 2; and 1
0(1) to
1.
The
following examples
0(6) to 6; 2
0(4) to 4;
in that
primitive roots of a prime p serve a very useful purpose
conexpedites
which
logarithm
made a basis for a kind of
they can be
illus-
Solve 3x
(mod
Table
13).
shows that 3
II
24
=7
Solve x*
(mod
13); that
is,
x*
2 11 (mod 13).
=2
=2
If
and then
r
,
12),
(mod
11
13),
Theorem
5.4, since
12/4
3 and 7 3
13).
= 2r and
3.
Solve x*
is,
x6
2" (mod
13).
Let
congruence
have a log to
2.
and 2 ir
Example
proved.
(mod
13).
m 2 ~* =
of the last
TABLE
1.
and x
(mod
*(*;).
except
p).
Any number
9.
x*
+ P(ku),
1.
for g,
p)
numbers
4>(k)
113
Primitive roots
5.5.
see that
is
27
11
(mod
13).
Exercises 5.5
Use Table
2.
What
9 (mod
13).
such as Table
II, for
Form a
table,
gruential computation.
root
(mod
13).
below:
TABLE
3.
4.
II
5.
n
2n
12
11
The values
of
primitive root
10
We
shall
i?
10
2.
11
by
for the
logfl.p
6 to
mean
a (mod p)
II.
5.4.
if
and only
if
log B>Pa
is
divisible
How
a primitive root?
7.
write
numbers 2"
8.
Find
Find
all
all
belong to 2"-*
m=
(mod
3,9,27.
2*) for
3,4,5,6.
114
Primitive roots
5.6.
where u
an
is
115
Primitive roots
5.6.
Nonlinear Congruences
integer.
and obtain
It is natural to call
power
of
a which
is
of p*
a a primitive root
congruent to
(mod
if </>(p*) is
the smallest
aip
(1
p).
Theorem 5.6a.
positive integer
If
is
r.
If it is the
we
former
+ hp)*" m 1 (mod p
(a + kp) p = a + kp (mod
2
(a
that
We
shall
all
<f>(p
primitive roots,
1)
a, of p.
2
p are obtained
primitive roots of
in this
we
not
However,
8.
and a
roots of 27,
all
3.
The
similar statement
may
to 5
(mod
9)
+ kp* -*
1
we have a =
1
p")
it
where k
is
we need
Lemma:
8
>
s 1 + kp'
a'
(mod
p*
with
then
First,
pothesis
is
1
t
tpT
== 1
+ &p*+T
for r
(mod
1.
is
kp*
is
a primitive root of
kp*
a primitive root of p2
^ip*1 m
(mod p
is
if
by
+ kprH
(mod
pr+2)
_ 1+
=
*(p
kp 2 (mod p 3 ), which shows that a
3
2
however, a belongs to t (mod p ), a = 1 (mod p ) implies
,#(p*)
1,
If,
).
divisible
+ up*
is a
and thus a
a
of the hy-
4>{p
),
and hence
primitive root of
must be
<(p
2
)
or <(p 8 ).
t
The former
must be
3
.
"
z
), and
(mod p 4 ),
4>{p
odd prime
1,
The congruence
+r
p** ),
p** ).
have
Thus,
1
by
p*.
First,
(1)
case.
Third, suppose a
proved
(mod
a primitive root of
"
p*4 1").
p*, for if o
and hence, by the lemma,
T
and if a is a primitive root of p* T tp r =
(mod
)
However, 4>{p* T ) = p T 4>(p'), and hence t =
(mod <f>(p')), and a
tf>(p* )).
implies
last congruence.
(mod
(mod p*
belongs to
by
lemma
is
Before
is
(mod
a tp
it
of the
(o*""V
which
follows that
1, it
manner.
2
= l + kp
"
by p*4 2
1.
).
is,
we have the
is,
that
a*'"
we have
1
To
r
If,
<(p ~~ 1)
two
(mod p2)
Let o be a primitive root
(mod p), and suppose a + kp belongs to t (mod p2 ). Now, (a + kpY =
(mod p 1), and since from Theorems 2.6a and
1 (mod p) implies t =
2.6b, t also divides p(p 1) = tf>(p2 ) it must be either p 1 or p(p 1).
First,
is
p.
116
Nonlinear Congruences
For
to be a peculiar prime.
it differs
when p =
a power of p only
is
in behavior
instance, the
is
that
Lemma:
If
>
In
+ 2n)
(1
'" 3
2w4) (mod
If
if
elect to
left side
by the bino-
prove
+ 2n) =
by induction as
it
may
1 4-
4n +
4?i
),
5,
gives the
for all n.
(1
Exercises 5.6
<
r is
an
+2"
t
(1
since 2{t
Squaring both
integer.
2)
+ 2n)
> +
t
'"2
2
= 1+
when
> 5 and
seek to prove
it
for
+L
(n
rc
same be true
(mod
sides,
Suppose
0o
m=
is
= 5
2p*p
a positive integer
(mod 2
<
),
<
<
"2
.
we
get
the ambiguous sign
- n2 + 2n (mod
>
-pf,
5 (mod
'" 3
or 3
(mod
m/2'o),
so that
8), g
2***),
a
5.
Would
(mod
4),
n n2
i,
= 1
choose
gi
</,
(mod
4),
(mod w/p.
p .) such
that
).
4)
tQ
2,
<
If
>
4,
m belongs
to 2*~ 2
(mod
2') if
and only
If
3,
if
the
for the
above choice
of
<(?>>)
and an integer
prime to m,
which
is
zero or
such that
r
3,5,
be chosen so that
2'~ 1 (n
Corollary 5.6b.
numbers
2*
m m 3
<
5 were replaced by 3?
if
+ 2n + 2%
choice of sign
the
To prove
<
(mod 2 8 ), where
24?
where
3*
Let
'" 3
<
2.
3.
2n) 2
Also show that r (with these restrictions) and the sign are unique.
we may assume
is,
We leave
an odd prime.
We now
to be a
That
is
be
follows.
+ 4(n + n which
of the lemma, since n + n = n n + 2n* (mod 4)
(1 + 2n) = 1 + 4-2n + 6-4n + 4-8n + 16n
H 1 + 8(n + 3n + 2n (mod 32)
bb 1 + 8(n - n + 2n
(mod 32).
=[4, (1
formula
t
we
(mod m)
2').
avoided
where p
and
- n2 +
(n
2,4,p',2p',
= 1 + 2<~
If
we have
fact,
then
3,
we
number
a such that <p(m) is the least power of a which is congruent to 1 (mod m),
then m has a primitive root if and only if m is one of the numbers
5.6c.
~
Theorem 5.6b. If t > 3, an odd number 1 + 2n belongs to 2 t 2 (mod
or a lesser power of 2 according as n = 1,2 (mod 4) or 0,3 (mod 4).
This depends on the following auxiliary result, which we prove first.
2')
If
One
2.
Theorem
117
Primitive roots
5.6.
= g g
r
l
*'
ambiguous
-g]'
sign.
(mod m),
Hint: Show that the
last con-
118
Nonlinear Congruences
r,-
and,
if
biguous sign.
4.
to
Show
that
then ak
if
(mod m) where k
is
the least
common
multiple of
Quadratic Residues
number o such that this fc is the least power congruent
(mod m)? Under what conditions is k - </>(m)?
Is there a
1
5.
Prove Theorem
6.
7.
How many
to
5.6c.
of primitive roots of
numbers
will there
r
,
for
p an odd prime.
Summary
6.1.
Recall that
of previous results
we have
called
x*
we
call
a (mod
(a,m)
and
wi)
If (a,m)
5.3).
if
a a quadratic nonresidue
or,
simply, nonresidue.
is-
If
we showed
could also be seen from the fact that the even powers of a primitive root
of
p are quadratic residues and the odd powers are the nonresidues.
Furthermore, an immediate consequence of Theorem 5.4 is
Theorem
then a
is
6.1
(Euler's Criterion.)
and a nonresidue
p;
if
s +1
(mod
a P -D/2
= _!
( rao
must hold
Corollary 6.1.
= 1
The
and p
is
an odd prime,
p),
if
of these congruences
if
a (r-/j
One
p)
If (a,p)
Why?
(mod
If
4), it is
(mod
dp).
if (a,
4),
p)
then
1,
is
a quadratic residue of
a nonresidue.
is left
as an exercise.
119
120
from Theorem
6.1 follows
5.4,
corol-
(mod
Show
3.
r
,
4.
is
if
is
p,
why must
b is a quadratic residue of
all
powers of
p.
a.
b.
Show
Show
(mod
a.
b.
8).
that 6
a root of x 2
+ kpY =
so that (x
6.
Xo is
is
fact that
residue, it is
of
is
t>
if
and only
if
+ 4fe) =
1
2.
these results as
It is a quadratic residue of
3.
=
=
1
1
(o|p)
for
(mod 8) if p = 2, r =
(mod 2 r) if p = 2 and
of p,
i13
below.
Theorem
or
of
if
and only
if
6.2c.
1, (a|p)
1.
If (a, p)
2.
The symbol
is
a*"-1 )' 2
2.
(mod p) by
multiplicative, that
(a\p){b\p)
3. If
(mod
as b
4. If (r, p)
p may
1,
p),
then
then (a|p)
(ar'lp)
following properties:
Euler's Criterion.
is,
(ab|p).
(b|p).
(a|p).
p odd,
3,
the
coming into vogue and is much more popular with the printers. There
is a certain elegance about this symbol, since it has the properties listed
to
= 1 if a is a quadratic residue of p,
= 1 if a is a quadratic nonresidue
= if a = (mod p).
is
follows:
ThiB symbol was originally written (-), but the notation given above
2.
p an odd prime as
Theorem 6.2a.
first
6.2.
The
(a|p)
of proof are
so that (xq
8).
(a|p)
p.
(mod 2 ) are congruent to the numbers congruent to 1 (mod 8) and less than 2', in other words, that
2x =
b (mod 2') is solvable for x.
b m 1 (mod 8) implies 5
2
=
a (mod 8) then k may be determined
Show that if x is a root of x
Show
way
4),
Legendre Symbol
a quadratic residue of 2 l
Two methods
(mod
(mod
character of a
if
m and, in addition,
6 = 1 (mod 4)
m=
b s 1 (mod 8) if m
method embodied
that
if
Though
a quadratic residue of
an odd prime.
is
prime to
Show that
We leave
factors.
by
replaced
hold?
5.
power
prime factor of
where now p
If
quadratic residues
p)
121
Exercises 6.1
6.2.
Quadratic Residues
particular
example
of
what
is
called a
122
p,
6.3. Gauss's
Quadratic Residues
and
^1
p be a number for which p 7
let
Then
unity.
that
is,
is
a p
root of
symbol
define the
that
the
is,
first
tive residues
(p
(mod
l)/2 multiples of
recall that
and
(a,p) ?* 1,
if
log iPa
p*
(a,p)
if
is
17.
where
1,
log iPa.
You must
independent of
g.
123
Mp)
to be zero
where p =
7,
Lemma
necessary, reducing
derived from
its
Now,
17).
Lemma
and Gauss's
17/2,
a nonresidue of
is
(mod
17.
g.
an odd prime,
is
and u
(q,p)
1,
of the set
Exercises 6.2
q,2q,Zq,---,q(p-l)/2
(1)
1.
2.
(mod
and p =
3)
but that
(alp)*
if
Let
Then u
p/2.
3.
Prove Theorem
4.
&i, 6j,
which are
primitive root.
less
5.
b\, hi,
bt
symbol
all
and
positive
(mod
p) of the set
less
Ci,
c 2,
than p/2.
Prove that
6.3.
Theorem
of
are
same
6.2c.
(2)
is
(1)
(a\p)
= (-D u
(q\p)
result
(l|p)
may
is
(2|p)
p is a prime.
the character denned above.
(p
l|p)
0, if
The
lemma
of
it is
portance: First,
it
gives a
number (mod
means
of
it is
Law whose
it
1, 2,
q(p
l)/2
p).
(p
were
(2)
some
l)/2 in
distinct
all
order,
(mod
p),
and we would
bfi xc 7
u
(-l) 6x6 2
b t (p
cu
d)(p
c 2)
(p
cu )
(p-h
(-D-^y^Kmodp).
That
is,
,(P-l)/2
is
Since
paris
by
it
is
prime to
p,
Use
_iW2Lli
1
(
(-tytp-J )*
(>dp).
sides of the congruence
and have
.{p-D/2
Write
/pjz1\)l
s
V
From a computational
proof
bj) t
of find-
have
Quadratic Reciprocity
we
q(2q)(Zq)
point of view
Lemma
Gauss's
There
If
124
Quadratic Residues
It
Suppose
r 9* s
bi =
b,-
(mod
would imply
p
and
a^p-
with
p),
rq
impossible, since r
ilarly,
6.3. Gauss's
p),
Then
bi
and hence
(mod
Cj
^ j.
(mod
sq
p).
Finally,
b<
if
(mod p).
(mod p) with
are distinct
(2)
rq, bj
and
less
sq
(mod
p).
This
where
bi
rq,
is,
if
sum
the
is
Theorem
by
6.3a, divided
numbers
of set
then
p,
u = M+(p -
is
Cj
is,
(1) of
125
l)(q
l)/8
(mod
2),
Sim-
than p/2.
cjt
that
Lemma
where u
(q\p)
is
Theorem
defined in
and p
6.3a,
is
an odd prime.
Recall
(-1)".
and
less
The
iq
than p/2.
first
Theorem 6.3 b.
If
is
To show
r,-
this, let
p-[iq/p~]
of
Theorem
6.3a.
- 1)/8
iq=pM + rt + rs+
pM + & + b
= pM + bi +
=
+r
all less than p and hence are all least positive residues
Hence
we
must determine how many are greater than p/2.
p).
if p = 1 (mod 4), then
2(p
l)/4
<
p/2 and 2- (p
+ 3)/4 >
3)/4
2(p
l)/4
>
it is
odd.
There
is
if
4),
then
way
6.3c.
is
2)
of (2) are 1, 2,
X>g =
(mod
(p
2).
l)/2 in
M + u + Yl (mod
M + *" - 52* (mod
2),
ss
g-
2),
sums being over from 1 to (p l)/2. Each of the sums in the last
is, by the formula for the sum of an arithmetic progression,
2
equal to (p
l)/8. Hence
all
congruence
u
and the theorem
is
M+
(1
proved, since
g)(p*
1
l)/8
= q
(mod
1
2),
(mod
2).
Exercises 6.3
is
Show
even
if
that
Theorem
and only
if
It is
2.
Of what primes
3.
Use Theorem
If
M = iq/pl + [2q/pl +
[(p-l)<Z/2p],
ff.)
odd,
p/2.
Theorem
278
-(p-c)
p/2.
+ c +--- +cM
(p - ci) - (p - c -
Ci
+ b + up
= pM + wp + & + (P - d)
t-i
i-i
one of th6
+u
+--- +&, +
(mod
is
Thus
(P-D/2
2,2-2,3-2, ...,2(p-l)/2.
(3)
+ ri,
is
c,-'s
= 1
if
= (-l) (p2
or
bi's
an odd prime,
(2|p)
where
to 17.
is
m=
Theorem
1 (mod 8).
a quadratic residue?
6.3c implies
6.3b.
Show
that
(m1 - l)/8
126
Quadratic Residues
Show
4.
that
according as p
(p
= 3
if
(mod
l)(3p
if
and only
3) or
M = (p - l)/6 or (p + l)/6
6.3c then
-1 (mod
+ 5)/12 or
(p
3),
is
(mod
(35|71).
hence that
l)(3p
prime p
Theorem
in
1)/12 (mod 2)
1 or 11
(mod
6.
We
many
showed
is
(5|71)
If
1.
x2
(mod
8), since
all
7.
Of what primes
by an odd prime,
divisible
is
is
- 2 can be =
for
each odd
this
x,
(mod
To prove
x2
8),
(mod
2)
by Gauss
been
many
Thus,
if
it
Theorem 6.4a.
distinct
we
shall first
show how
proved
is
not at
first
it
shall
l)(g
q).
Let
let
the line
is
p=
11, q
5.)
If
p and
fM)
5
q are
(-i)',
is,
2
(g|p)
(q\p)
= -
(p|g) if
(3>k)
tfp
(mod
of the law,
4) or q
(mod
4).
which
is
(mod
4),
*
)
first,
since
is
q/2 and the x and y axes, not including any of the bounding
j[
I1
<)
Ii
>
tJ
On
as follows:
That
l)/4.
ap-
(p -
- (-D"
used.
(q\p)(p\q)
where
it is
first
several proofs.
we have
M + N= (p-l)(q- l)/4.
We
and
q,
4-".
Hence
in 1783
(-1)*.
proofs.
two
who gave
(q\p)
-1,
and hence
2 has
This law has been characterized as one of the most beautiful results
It
the law, notice that q odd implies from Theorem 6.3c that
1,
are primes.
a quadratic residue
in the theory of
-(1|7)
shall later
(4)
6.4.
(1|5)
-(71|7)
6 a quadratic residue?
is
(71|5)
of the Legendre
12).
a quadratic residue?
SN +
=
=
127
equal to (5|71)
is
(7|71).
(7|71)
how
Symbol
We
Of what primes
By
us see
if
p
5.
First, let
4).
6.4.
i)
10
11
p/2,
lines.
128
The
6.5.
Quadratic Residues
ways the
is,
The
simplest
way
them
to count
vertical dimension is (q
Hence
l)/2.
is
(p
contains in
its interior
3-1
2
lattice points.
(4)
No
2.
qx >
and, for points below L, py qx< 0.
that is, py
Example 1. Find (71|73). Now (71|73) = (73|71) since 73 m 1
(mod 4) and (73|71) = (2|71) by property 3 of the Legendre Symbol.
Hence
Finally, (2|71) = 1 by Theorem 6.3b, since 71 = 7 (mod 8).
=
could
also
evaluate
of
73.
One
quadratic
residue
and
71
is
a
(71|73)
1,
the symbol as follows: (71|73) = (2173) = (-1|73)(2|73) = 1-1 = 1, by
properties 3 and 2 of the Legendre Symbol, Corollary 6.1, and Theorem
(4) holds.
by showing that
in
there are
3.
on L,
Example
below L,
lattice points
properties 3
<p-l)(g-l)/4.
Example
below
low
are 1,2,
L and onx=
L and
L is
on x =
This point
is
outside R.
Therefore
[g/p]; that
Hence the
2.
Hence
total
number
+ [2<?/p] ++[(?-
of lattice points in
as
is left
is
R and
exercise.
(2|301)(3|301)
= -1,
(3|301)
(301|3)
(31J301)
(301|31)
(186|301)
1,
since 301
(113)
5 (mod
1,
(22J31)
and 186
is
8),
= ( 9|31) =
(-1)31)
= -1.
Compute the
of the
previous section.
3.
Is 7
4.
N is
the
number
of lattice points in
and above L.
py-qx,
(5)
The number
It
an
(2(301)
l)2/2p],
numbers
are distinct
(1861301)
Exercises 6.4
R and
M.
above
Now
is,
just
( 2|73)
1.
(186|301).
1.
Lq/pI
is
Find
(-2|73) by
Legendre Symbol.
(55J73)
= ( 18|73) =
below
which
3.
of the
(55|73)
is
in
and 4
Here
(55|73).
(31|301).
Find
2.
and hence
to be 1
low
29
6.3b.
1.
lattice points
is
of
is
numbers
1, 2,
of (5) is
5.
- l)/2, and x = 1, 2,
(p l)(q l)/4 (whether
(q
(p
of (4).
l)/2.
or not they
6.5.
immaterial).
N of
There
is
130
Quadratic Residues
P\Pi
Jacobi Symbol
The
computation.
"
where the
Pk,
is
since
any product
of p<
and
p,-
(-1
i.m\Pk)-
'
For instance,
quadratic residue of P.
(7|5)
(7|13)
-1.
But the
latter
1 does not
(7|65)
shows that 7
imply that
(7|5)(7|13)
1,
(m\P)
m is
(ra|pi)
= 1
implies that
is
a nonresidue
is
The
4.
Hence
and property 4
only if
but
is
(m|P)
1,
l)/2
(mod
2),
is
To prove
then
proved.
we
Property
that
6, notice
(P|Q)
the product being over
all
7T
(pfa),
prime factors
it
leave as an exercise.
occurs in
Q,
Hence
or Q.
an odd prime.
Symbol depends on
if
is
resi-
Thus
a nonresidue of P.
of P,
(Pi
Property 5
not a quadratic
is
is
since
due of 5 and hence cannot be one of 65, since x % = 7 (mod 65) solvable
would imply x 2 = 7 (mod 5) solvable. For m to be a quadratic residue of
P it must be one of each factor of P. However, if (m|P) = 1, one of the
symbols
by
1 is divisible
+ Pi)/2 m
i-i
First, it should
= (m|pi)Mp)
(m|P)
numbers
131
6.5.
its
having the
we
six
list in
where
Theorem
P has
1.
(a|P)(o|P)
2.
If
3.
If (r,P)
(-1|P)
5.
(2|P)
(ab|P).
(mod P),
4.
6.
The
6.5.
(a|P)
- 1, (ar*|P) =
= (-1) <P_1)/2
to
(a|P).
(P -
just
The
But we have
(b|P).
(P\Q)(Q\P)
proofs of the
To prove
first
Property
= (P -
1)(Q
left
l)/4.
and property 6
Two
as exercises.
Symbol would
_1| P)
(
We
_i| pj)
( _i| pi)(
=,
where
to the
ir
is
l)/2
r is of
( _i| pjfc)
(_!),,
r-Z(Pi- 1)A
i-l
= (-1 +
pip 2
p k)/2 = (-1
(P
1.
will
TPi =
t-1
Tr(p i
l)
Symbol.
would be Been
(17|97); each
is 1.
Symbol, we have
(85|97)
+ fc p ),
(97|85)
(12|85)
(3|85)
1.
is
(85|3)
(1|3)
Notice that
p's,
Now,
we have shown
that (85|97)
(mod
analogous
= l + Y,(Pi-V
and
-l +
2),
of the Jacobi
(mod
l)/4
However,
l)/2.
1)(Q
holds.
examples
Example
that
4, see
- -
Example 2. Find
is
a prime.
On
a quad-
In
fact,
12
is
= 1.
(171|173). It
is
equal to (173|171)
(2|171)
= -1.
132
Exercises 6,5
Find
10.
all
respect to
535
877*
93
461*
51
103*
m
The values of m with asterisks are primes.
and 5
1303
2305
2631
Theorem
sion.
3.
define
(a\
P)
to be equal to (a|P).
erties listed in
Theorem
ties negative.
Why is this
6.5,
Show
6.5.
6.6.
is positive,
'
we
In this section
that
is,
for
what
find
integers
Use the
restriction necessary?
which
is
x2
a quadis
ratic residue.
by the
ation of m, a prime,
5.
+ bx + c m
Lemma
(mod
p)
Show
Show
that x2
a = b c, where
If
if
8.
ma
that x*
and only
if
7.
The
question
may
be reduced to consider-
following:
is
(mod
is
primes
p and
all integers
is
if
and only
if
of the Jacobi
x
Suppose p
z cm
if
may
this
be done?)
it
follows that
MP) =
Does
this
+ <P =
c2
If
is
(mod
quadratic
and x 2
E(*1p) =o,
all
positive
i less
than
(a2
+ 6s
(1),
then
of
if
all
a quadratic nonresidue
is
4), since
then
primes congruent to
it
(mod
4) are the
sums
sum
of
If
is
two squares in
a prime congruent to
and signs
for y',
pressed as a
is,
4).
factor.
Theorem 6.6a.
Using the method suggested in the previous exercise, show that
(o|p) p is defined as in Section 2 and is not 1 for all o, then
9.
over
m in
(mod
+ y"s0
On
many
4)
p) or
would be solvable
of p.
prime
just as
(mod
1 (mod p)
Then y'y
(mod p) implies (y'x) 2 = -1 (modp), whereas -1
o.
is
Then m-n =
n.
residues as nonresidues?
is
also useful:
m is any integer prime to P and the sum is over all positive values
m can be chosen so that (m\P) ^ 1
less than P. Hence show that
(when
is
6.6b.
Symbol im-
where
of i
following
Lemma
plies that
MP)
two squares, so
of
a quadratic residue of m.
The
If
a (mod m)
6.6a.
m-n.
be solvable.
two squares,
6.
of
the equation
fit,
(1)
4.
and y positive integers. Record how many times each value occurs,
and guess what numbers in general are represented by this expres-
Prove Properties
of
+y
x2
for x
781
2.
1, 2, 3,
by the expression
133
6.6.
Quadratic Residues
essentially
of x
is
and
sum
y.
of
two squares
is
will follow
im-
established: If s
is
134
Quadratic Residues
(mod
m 1
s2
( l|p) =
4) implies
6.6.
(2)
has a solution xo
To prove
yo
with
(mod
s since
z* 1
X1X1
\yo\-
However,
(3) implies
xi
0,1,2, .--^Vp].
Then x
values, that
is,
more than p
Hence two
different values.
of
them must be
only
Xi
Thus,
we
if
set xo
x\
2,
Theorem 6.6b.
we have
=
That
(io- sy
if
congruence
sy
x\
x2
and
.To
less
yo
than
Proof: Suppose p
form a
p.
This
m x\ + y\ m
(mod
y*.
ff.)
(3)
+ y\ =
p =
= x2 + y* implies
y%\
v(.V\
ytXi
Vf)
Now,
(3)
y&x =
If
= yix
yiXi or
first
Xi
2/ 2
(x\
is
Cnj/2
above
results
may be
(mod
(mod
4)
x\
if
and
4) occurs to
Lemma
6.6b,
y\.
divisible
sum
of
two squares.
than
+ y-iXt =
yiy 3
Exercises 6.6
circles
Thus
(4)
shows that
0, for
3.
them?
gers:
p.
+ x iVl Y +
x2
2. Prove that if the lengths of the sides of a right triangle are integers
whose g.c.d. is 1, all the prime factors of the length of the hypotenuse
are congruent to 1 (mod 4).
p.
What
p).
x1
multiplication of
How many
=
= ys
(mod
(3) gives
+ y\)(xl + y*)
and hence
m which is congruent to 3
x = px h y =
equation by
(modp).
all less
the equations in
xt,yi
1,
+ y\,
x\
Hence
(4)
mi
sentable as the
p).
To show
y x or xi
we have
(2),
s*y\
{xhy)
1,
mi =
of
an even power in w.
2
y = fcp. Furthermore, the above statement implies X* < p,
p and hence x 2 + y* < 2p. Thus k = 1 and p is the sura of the two
is.
y <
squares x 2 and
2
)(x
y 2 xt
,
y&i = y&t.
positive integer
im-
yiy* or
sy takes on
{[Vp]+l|
that (x h yi)
with
(3),
plies
sy (mod p)
< Vp >
|zo|
such an
p), (there is
1),
135
fax*
yi y 2 )\
+ 2y =
when
m.
m is a prime?
is
solvable in inte-
Bibliography
1.
Numbers,"
F. E. Andrews, "Revolving
459-466.
2.
W. W.
Macmillan Company,
3.
New
ed.,
The
York, 1939.
4.
I, II,
III.
G. H. Hardy and E.
Numbers, 2nd
7.
D. H. Lehmer,
Academy
8.
Wright,
An
to
of Sciences, 1941.
C. C. MacDuffee,
Sons, Inc.,
9.
ed.,
M.
New
An
John Wiley
&
York, 1940.
Inc.,
Boston, 1934.
10.
11.
New
Number
&
Sons,
York, 1951.
12.
to
B.
M.
New
York, 1948.
York, 1952.
13. J. J. Sylvester, Collected
Press,
14. J.
V. Uspensky and
M.
4,
pp. 607-610.
A.
Inc.,
Heaslet, Elementary
New York,
Number
Theory,
1939.
137
138
15.
Bibliography
&
Sons,
"On
H. N. Wright,
Inc.,
16. J.
New
W.
York, 1939.
Green
&
Co.,
New
Index
Index
Continued
fractions, infinite,
83
simple, 82
Absolute value, 41
intermediate, 90
negative numbers, 12
rational numbers, 29
Aliquot parts, 57
Approximations by
tions,
continued
frac-
Decimals, 31
periodic (repeating), 38
89
63
quadratic, 69
Belongs to an exponent, 49
Distributive property,
5,
12
Binary system, 24
Eisenstein, 127
natural numbers, 7
Euclid algorithm, 16
quadratic, 121
Chinese remainder theorem, 60
Closure property, addition, 3
Euler Phi-function, 48
Euler's Theorem, 48
multiplication, 4
Commutative property,
properties of, 52
addition, 3
multiplication, 4
Conjugate, 97
Farey Sequence, 92
Fermat's Last Theorem, 73
Fermat's Little Theorem, 46
Fibonacci Sequence, 76
142
Index
Index
Fundamental theorem
of arithmetic,
18
natural, 2
perfect,
prime,
inequality, 6
56
1,
Twin
15
pure imaginary, 35
Gauss's
Lemma, 122
common
Greatest integer
divisor (g.c.d.), 15
in,
One-to-one correspondence, 3
"How many,"
Parity, 19
Peano's axioms, 8
Pell Equation, 71,
96
Phi-function, 48
Indices, 112
Integers, 13
negative, 11
Primitive solutions, 72
positive, 13
Pythagorean
72
set,
Q
Jacobi Symbol, 129
common
multiple (l.c.m.), 19
of,
121
negative integers, 13
Multiplicative function, 54
complete
and
duced, 49
rational numbers, 29
N
Number, complex, 35
composite,
to
absurdity), 6
1,
Fermat, 58
15
Subtraction, 10
Sums
imaginary, 35
34
Mersenne, 57
irrational,
Thue, A., 71
re-
multiplication, 5
Wilson's
primes, 2
27
33
real,
Golden Section, 77
"Greater than," 6
Greatest
rational,
143
Theorem and an
suit,
Z
Zero, 10
55
allied
re
^+\-