Instructor Notes-V1
Instructor Notes-V1
A
DO-IT-YOURSELF
INTRODUCTION TO NUMBER
THEORY
Preface iv
To the Instructor v
3 Congruences 21
3.1 Congruences and the Ring Zn . . . . . . . . . . . . . . . . . 21
3.2 The Euler φ -Function . . . . . . . . . . . . . . . . . . . . . 24
3.3 Arithmetic Functions . . . . . . . . . . . . . . . . . . . . . 29
3.4 Primitive Roots (mod p) . . . . . . . . . . . . . . . . . . . 31
3.5 Communicating by Secret Code . . . . . . . . . . . . . . . 33
4 Quadratic Reciprocity 35
4.1 Squares mod p . . . . . . . . . . . . . . . . . . . . . . . . 35
ii
CONTENTS iii
This course, and its accompanying notes, were developed by (now retired)
Professor James T. Cross over many years at the University of the South.
The course has been consistently popular and it continues to be offered
by friends of Prof. Cross, most recently by Profs. Drinen and Priestley.
The notes were typeset in LaTeX in 2009 by Ye Katerina Totskaya and Van
Nguyen. Subsequently, Chris Parrish has worked tirelessly to bring this
work to completion. The notes are made available here by the Department
of Mathematics and Computer Science as a tribute to Jim Cross’s commit-
ment to mathematics education.
iv
To the Instructor
v
To the Instructor vi
lead to something with which all students are already familiar—the funda-
mental theorem of arithmetic in its original setting of the natural numbers.
The notes then go on to show how an attempt to extend the notions involved
to the Gaussian integers leads naturally to the ideas of groups, rings, ide-
als, integral domains, and isomorphisms—thus introducing the student to
basic ideas of abstract algebra. Cross gives an example of a simple integral
domain in which the fundamental theorem fails, and goes on to investigate
how the theorem manifests itself in unsuspected places, such as in the fun-
damental theorem of algebra. Here it comes as something of a revelation to
many students to see clearly how the splitting of an n-th degree polynomial
over the complex numbers into n linear factors (primes) may be understood
as nothing other than the familiar fundamental theorem of arithmetic as ap-
propriately conceived in the integral domain C[x].
The titles of the remaining chapters and the titles of the sections therein
indicate clearly how the course proceeds. Actually, we have never been able
to work completely through all the notes in any one semester. Sometimes we
choose to omit some sections, sometimes others. If a section is omitted, we
simply outline and take for granted the main results of the section that are
necessary to move forward. There has been at least one occasion, however,
when the students became so enthusiastic about the enterprise that some of
them agreed to meet together after the end of the semester in order to finish
every detail on their own.
Usually, we have augmented the notes by making up and assigning weekly
homework problems to be handed in by all students—sometimes including
exercises from the notes themselves intended to reinforce ideas just intro-
duced. And we usually have two or three hour tests and a final examination
to ensure that definitions and particularly important proofs and procedures
are remembered. The main focus of the class, however, has always been on
the daily regimen and on the growth it fosters among students.
Although Cross later gives precise statements of the axioms for groups,
rings, etc., he begins the notes by taking the point of view popularized long
ago, that the natural numbers just are and that we have an intuitive under-
standing of their properties—their most subtle property being formalized by
taking any one of three principles as fundamental and agreeing that the other
two are consequences of it. Thus, the well-ordering principle, the principle
of infinite descent, and the principle of mathematical induction should be
already familiar—or readily grasped—by the students, who are expected to
know how to employ such principles to establish results that hold for all
natural numbers. A reminder of the precise statements of these principles
follows this introduction.
W. M. Priestley
[email protected]
February, 2010
viii
To the Student ix
nite sequence of natural numbers. [You have to run into negative numbers,
which are not in Z+ , if you have a strictly decreasing infinite sequence of
whole numbers.]
Restatement: Any assertion that implies there is a strictly decreasing
sequence of natural numbers must be false.
Re-restatement: Any assertion whose negation implies there is a strictly
decreasing sequence of natural numbers must be true.
(POMI) Principle of Mathematical Induction: If P(n) is a proposition
about the natural number n, if P(1) is true, and if P(n) implies P(n + 1),
then P(n) is true for all natural numbers n.
In the natural numbers, each of these three principles implies the other
two! This means that if we accept any one of the three principles as a “self-
evident axiom” then we can logically deduce the other two as “theorems”
about Z+ .
The question of which one of the three we take as an axiom (i.e., which
one of the three we take as “most fundamental”) is really a question of aes-
thetics. The well-ordering principle is probably the most popular choice
because it is stated in terms of sets and it can be stated very briefly—and
speaking in terms of sets seems to be the preferred way of speaking of mod-
ern mathematics.
The principle of infinite descent is usually associated with Pierre de Fer-
mat (1605?-1665) and the principle of mathematical induction with Blaise
Pascal (1623-1662). This is not to say that they “discovered” the principles
first, but that they were the ones who emphasized the fundamental roles in
number theory played by the principles.
Finally, a note about some conventions used in these notes: Exercises
are numbered, but definitions are not. Instead, definitions are introduced in
bold-face, and most of the terms being defined re-appear in the index so that
they can be found again.
Definition. Let Z denote the set of all integers (the counting numbers and
their negatives together with 0) and let a, b, and c be in Z: if ab = c, then
each of a and b divides c (written a|c and b|c) and c is a multiple of each
of a and b. If u is in Z and u|1, then u is a unit in Z.
Exercise 1.1. What are the units in Z? Show that a unit in Z divides every
member of Z. Hint: The multiplicative unity 1 is of course a unit, but Z has
a unit different from unity. What is it?
Exercise 1.2. If a and b are in Z and a = ub for some unit u in Z, then there
is a unit v in Z such that b = va.
Definition. If a and b are in Z and a = ub for some unit in Z, then a and b
are associates.
Exercise 1.3. If a and b are associates, then each divides the other. Con-
versely, if each divides the other, they are associates.
Exercise 1.4. If a is in Z, what are a’s associates in Z?
Exercise 1.5. If a is in Z+ (the positive integers), then there are integers, q
and r, in Z with r = 0 or r = 1, such that a = 2q + r. (Hint: mathematical
induction on a)
Exercise 1.6. If a is in Z+ , then there exist q and r in Z, with r = 0, 1, or 2,
and such that a = 3q + r.
Exercise 1.7. If a and b are in Z+ , then there exist q and r in Z, with
0 ≤ r < b, and such that a = bq + r.
Exercise 1.8. Find integers q and r such that 12 = 5q + r, where 0 ≤ r < 5.
Find integers q and r such that 5 = 12q + r, where 0 ≤ r < 12. Find integers
q and r such that −12 = −5q + r, where 0 ≤ r < | − 5|.
1
The Fundamental Theorem of Arithmetic 2
Exercise 1.20. (Use the notation of Exercise 1.16.) If z is in Z, and d|z, then
z is in S. If s is in S, then d|s. Thus S = {nd : n is in Z}.
Exercise 1.21. (Again for those who have studied abstract algebra, and
again be assured that we will come to this again when everyone has the
tools to participate.) The ideal S of Exercise 1.13 and 1.16 is a principal
ideal, generated by d. This is not surprising, since every ideal in Z is prin-
cipal. Can you prove it?
Exercise 1.22. If 1 is a GCD of a and b, what does the set S = {ax + by : x
and y are in Z} look like? What if 2 is a GCD of a and b? What if 25 is a
GCD of a and b?
Exercise 1.23. Suppose that you have a set of two-pan balances and an
unlimited supply of 6-pound weights and 4-pound weights. Is it possible to
weigh out exactly 15 pounds of sugar? (Argue by the use of the set S of
the preceding exercises.) What if you have plenty of 25-pound weights and
46-pound weights?
We see that if a and b are in Z, not both 0, then they have a GCD in Z.
(Of course, then they have two, according to Exercise 1.12.) Our proof was
of the existence type; it doesn’t give us a method by which we can chase
down a GCD of a and b. There is an old algorithm (Euclidean) which
enables one to do so. To illustrate the method, we find a GCD of 4827 and
32586.
The last nonzero remainder in this process (r4 in this case) is a GCD of a
and b. Why? The last line shows that r4 divides r3 . Then from the next-to-
last line we see that r4 divides r2 . How do we see this? Now, keep climbing
the column until you find that r4 divides b and then a. Next, suppose d is a
common divisor of a and b. The top line shows that d divides r1 . Now, keep
descending the column until you see that d divides r4 .
Exercise 1.24. Describe the above algorithm in your own words and explain
why it can not fail to identify a GCD of a and b. Why can the steps in the
procedure not continue indefinitely?
Exercise 1.25. Use the Euclidean Algorithm to find a GCD for each of the
following pairs of integers: 36 and 188; 36 and -188; 25 and 147; -389 and
12465.
Exercise 1.26. Explain why it is true that there exist integers x0 and y0 such
that 32586x0 + 4827y0 = 3. Then using (x0 , y0 ) as a base point on the graph
of 32586x + 4827y = 3, write parametric equations of the line and show
how to generate all (infinitely many) integer solutions of the equation. Also
show that the same applies when 3 is replaced by any multiple of 3.
Exercise 1.27. Find integers x and y such that 32586x + 4827y = 3. I’ll help
you get started. Go back to the display in which we found a GCD of the two
integers:
3 = 1203+15(-80)
= 1203+[3624+1203(-3)](-80) = 3624(-80)+1203(241)
= 3624(-80)+[4827+3624(-1)](241) = 4827(241)+3624(-321)
= ...
Now you finish. (Then find all (infinitely many) pairs (x, y) of integers
such that (x, y) is on the graph of the equation.) Put the algorithm in your
own words and explain why it must succeed in expressing a GCD of two
integers as a “linear combination” of the two integers.
Exercise 1.28. For each given pair of integers of Exercise 1.25 give your
GCD as a linear combination of the two integers.
Definition. If 1 is a GCD of the two integers, a and b, then a and b are said
to be relatively prime or coprime and each is said to be relatively prime to
the other or coprime with the other.
Exercise 1.29. The integers a and b are relatively prime if and only if 1 and
-1 are their only common divisors. This is true if and only if there exist
integers x and y such that ax + by = 1.
Exercise 1.30. If each of c, a, and b is in Z and c|ab and c is relatively prime
to a, then c|b. Hint: cx + ay = 1. Multiply through by b.
Definition. Let n be in Z and n not be 0 and n not be a unit. If every divisor
of n is either a unit or an associate of n (thus the only divisors of n are 1,
−1, n, and −n), then n is a prime in Z; if n is not prime in Z (thus n has a
divisor other than 1, −1, n, −n), then n is said to be composite.
Exercise 1.31. The set Z of integers can be partitioned into four non-intersecting
classes. These are 0, the units, the primes, and the composites.
Exercise 1.32. Find all the primes between 0 and 100 and all those between
-100 and 0.
Exercise 1.33. If p is a prime in Z and p|ab, then p|a or p|b. If n is com-
posite in Z, n may divide ab without dividing a or b. Give examples.
Exercise 1.34. Show that 3100 6= 7k for any integer k. (Hint: 3 is a prime
dividing the left side of the inequality. Use Exercise 1.33).
(You may be acquainted with one ring which is not commutative: the
ring of n × n matrices.)
Exercise 1.48. G is a commutative ring with unity. So is Z.
Definition. Let a = x + yi be a complex number, where x and y are real
numbers. The norm, N(a), of a is x2 + y2 . The complex conjugate a, of a,
is x − iy.
Exercise 1.49. The norm of a is the product of a and its complex conjugate:
N(a) = aa. If a = x+yi, then N(a) is the square of the distance from (0,0) to
(x, y) in the complex plane. If a and b are complex numbers, then N(ab) =
N(a)N(b). If a is in G, the norm of a is a nonnegative member of Z. If a
and b are in G and a divides b in G, then N(a) divides N(b) in Z.
Exercise 1.50. The ring G is an integral domain; that is, a commutative
ring with unity in which the product of any two nonzero members of G is
nonzero. The same is true of Z. (One usually thinks of Z as the model for
an integral domain.)
Now we are going to do some exercises to convince you that the Funda-
mental Theorem of Arithmetic is valid in G. (I promise you that you will
see an integral domain in which the Fundamental Theorem is not valid.)
You would find it rewarding to try to navigate your own way to the goal by
attempting to adapt Exercises 1.1–1.44 to G, peeking at our program only
when (and if) you must.
Exercise 1.51. Look at the definition of a unit in Z and what it means to say
that a divides c in Z. Now, of course you can define a unit in G and say what
it means that a divides c in G. Answer: the member u of G is a unit if there
is a member v of G such that uv = 1. To say that a divides c in G (written
a|c) means that there is some b in G such that ab = c. Thus the units in G
(or in Z) are the divisors of 1.
Exercise 1.52. If u is a unit in G, then N(u) = 1. There are exactly four
members of G having norm 1 and each of these four is a unit. The set U of
units in G is {1, i, −1, −i}. This set U is a group relative to multiplication.
Exercise 1.65. The set S of Exercise 1.13 and the set S of Exercise 1.62 are
principal ideals of Z and G, respectively.
Exercise 1.66. Every ideal of Z and every ideal of G is a principal ideal.
Exercise 1.67. The Euclidean Algorithm can be used to chase down GCD’s
in G. For example, find a GCD of 4 + 10i and 1 + 5i by means of the
Algorithm. (Start by dividing 4 + 10i by 1 + 5i, getting a quotient and a
remainder, where the remainder has norm less than that of 1 + 5i. Compare
with Exercise 1.25.) Answer: 1 + i (or any associate of 1 + i).
Exercise 1.68. Find Gaussian integers, x and y, such that (1 + 5i)x + (4 +
10i)y = 1 + i. (Compare with Exercise 1.27.)
Exercise 1.69. For each of the following pairs of Gaussian integers, find a
GCD. Then write the GCD as a linear combination of the two given integers:
3 + i and 1 + 2i; 1 + 18i and 11 + 13i; 36 and 188.
Definition. If 1 is a GCD of two Gaussian integers, then of course they are
said to be relatively prime or coprime in G and each is said to be relatively
prime to the other.
Exercise 1.70. The Gaussian integers a and b are relatively prime if and
only if their common divisors are 1, i, −1, −i. This is true if and only if
there exist Gaussian integers, x and y, such that ax + by = 1.
Exercise 1.71. If a and b are in Z and are relatively prime in Z, then they
are relatively prime in G. (There is more to this than meets the eye. Is it
not reasonable to think that even though a and b have no nontrivial common
divisor in Z, they might have one in G?)
Exercise 1.72. If each of c, a, and b is a Gaussian integer and c and a are
relatively prime and c divides ab, then c divides b.
Definition. Let g be in G and g 6= 0 and g not a unit. If every divisor of g is
either a unit or an associate of g, then g is prime in G; if g is not prime in G
(thus g has a divisor different from g, ig, −g, or −ig), then g is composite.
Exercise 1.73. The Gaussian integers can be partitioned into four noninter-
secting classes: 0, the units, the primes, and the composites.
Exercise 1.74. The numbers 1 + i, 1 + 2i, 3, 7, 11, and 19 are all prime in
G. The numbers 1 + 5i, 2, 5, and 13 are all composite in G. (Hint: Suppose
1 + i = ab, where neither a nor b is a unit. Then N(1 + i) = 2 = N(a)N(b),
etc.)
Exercise 1.75. Let p be a prime in G and let a and b be in G. If p|ab, then
p|a or p|b.
Exercise 1.76. If p and q are prime in G and p|q, then p = q or p is an
associate of q. That is, p = q or p = qi or p = −q or p = −qi.
You can see that gcd’s are related to unique factorization. Ideals √ were
conceived by E. Kummer in the 1800’s as “ideal numbers” (Was −1 a
sort of ideal number at one time? Indeed, would −1 have been considered
“ideal” when first conceived?) Kummer’s ideals were used in order to pro-
vide ideal gcd’s of numbers in certain domains in which it isn’t true that
every pair of members, not both 0, have a gcd. (This is a simplification but
maybe you can get the idea: {6x + 4y : x and y are in Z} = {2x : x is in Z}.
Now, suppose there were no number to play the role of 2 here. You could
still talk about the ideal {6x + 4y : x and y are in Z} and maybe you could
arrange things so as to think of the ideal itself as a gcd of 4 and 6.) It was a
valiant attempt to prove Fermat’s Last Theorem, which would have been
provable at the time if there weren’t some domains which do not “enjoy”
unique factorization into primes. We will have more to say about Fermat’s
Last Theorem later, but we should state it here: if x, y, z, and n are positive
integers and n > 2, then xn + yn 6= zn .
I hope that you have had fun with this new integral domain, the Gaussian
Integers, and that you were particularly impressed by the kinship between
G and Z. Have you thought about how to identify the primes in G? We can
not address that problem efficiently until we return to our study of Z and
develop some helpful tools. We shall do that presently. At this point I think
you deserve to see an integral domain in which the Fundamental Theorem
is not valid and a familiar one in which it is.
Exercise 1.81. The units (divisors of 1, of course) in J are the set U, each
of whose members has norm 1; U = {1, −1}.
Exercise 1.82. If a and b are in J and ab = 2, then one of a and b is a unit.
Thus, 2 is prime in J. So is −2. (You can make your own definition of a
prime in J.)
√
Exercise 1.83. If√a and b are in J and ab = 1√+ 3 i, then one of a and b is
a unit. Thus 1 + 3 i is prime in J. So is 1 − 3 i.
√
Exercise√1.84. The primes 2 and 1 + 3 i are not associates. Neither are 2
and 1 − 3 i. (Remember that if a and b are associates, then one is a unit
times the other.)
Exercise 1.85. The member 4 of J factors into primes in two distinct ways:
√ √
4 = 2 × 2 = (1 + 3 i)(1 − 3 i).
Now we are going to look at an integral domain with which you are familiar,
almost as familiar as you are with Z. You will see it from a new perspec-
tive and be impressed by its kinship with Z and with G. At points in our
discussion we will need the definition of a field:
Definition. A field is an integral domain in which all nonzero members are
units.
Examples: The rational numbers, Q; the real numbers, R; the complex
numbers, C; the set {a + bi : each of a and b is in Q}. (You should check out
that what I’ve said is true.) These are all examples of infinite fields; we will
see later that there are some interesting and useful finite fields with which
you probably are not yet familiar. 2
Definition. Let D be a ring (not necessarily a field). A polynomial (in one
variable) over D is an expression of this type:
a0 + a1 x + a2 x2 + a3 x3 + . . . + an xn ,
where the a’s are members of D and n is a nonnegative integer. The set of
all such polynomials will be denoted by D[x].
Of course you have seen these polynomials since you studied elementary
algebra.
Exercise 1.86. Determine whether each of the following polynomials is a
member of C[x], R[x], Q[x], G[x], and Z[x]:
• 3 + 2x + 4x2 ;
• 1/2 + 3x;
• (1 + 2i)x;
• 5;
• 3 + π x3 ;
2 1 1 3
• + x4 .
3 2 2 5
Definition. Let P(x) denote a polynomial in D[x], where D is a ring. If
P(x) 6= 0 (that is, some ai 6= 0) and P(x) = a0 + a1 x + a2 x2 + a3 x3 + · · · +
an xn , where an 6= 0, then n is the degree of P(x). If P(x) = 0, then P(x) has
no degree.
Exercise 1.87. Give a polynomial over Q having degree 2, give one having
degree 1, give one having degree 0, and give one having no degree.
Exercise 1.88. Let D be a ring. The polynomials over D having degree 0
are precisely the nonzero members of D.
We could make formal definitions of the sum and the product of two
polynomials in D[x]. Let us not do so. You have added and multiplied
polynomials enough so that we can avoid this bit of formalism. (Notice that
we didn’t define addition and multiplication in Z, either.) Again, I think it is
unnecessary for me to tell you what it means that a(x) divides b(x) in D[x].
What does it mean? If polynomials are added or multiplied, what can you
say about the degree of the resulting sum or product?
Exercise 1.89. If D is an integral domain (remember, every field is an inte-
gral domain), then so is D[x], and the units of D[x] (divisors of 1, of course,
where 1 denotes the unity member of D and of D[x]) are precisely the units
of D.
Exercise 1.90. Let P(x) and P1 (x) be in D[x], where D is an integral domain.
What would it mean to say that they are associates in D[x]?
Exercise 1.91. Let P(x) = 1/2 + 3x + 4x2 + 2/3x4 and P1 (x) = 3 + 18x +
24x2 + 4x4 be polynomials in Q[x]. Then P(x) does not belong to Z[x], but
P(x) and P1 (x) are associates in Q[x].
In Chapter 5 you will see how to identify all primes in G, using those in
Z. You are pretty familiar with primes in Z, although you will learn more
about them in Chapter 2. I think that this is probably the point to teach you
some significant facts about primes in Q[x], R[x], and C[x]. First, we need a
theorem:
Exercise 1.97. Let F be a field, f (x) be in F[x], and a in F. Use the divisor
theorem in F[x] to prove that f (a) = 0 (a is a zero of f ) if and only if
(x − a)| f (x) in F[x].
then f factors into n linear factors (possibly times a unit) in C[x]; some of
the factors may be repeated.
Exercise 1.100. The primes in C[x] are precisely the linear members. Don’t
let this slip by you; it is significant.
r0 + r1 x + r2 x2 + · · · + rn xn
in R[x], then so is a. (What does it mean to say that a is a zero of f ?)
Exercise 1.104. Let r, s, and t be real numbers and a be a complex (maybe
real, maybe not). Then g(r + sa + ta2) = r + sa + ta2 .
Exercise 1.105. If a and a are zeros of f (x) in R[x], where a is not real, then
the polynomial (x − a)(x − a) = x2 − (a + a)x + aa is prime in R[x] and is a
factor of f (x) there.
Exercise 1.106. The primes in R[x] are linear or quadratic polynomials, the
quadratic ones having conjugate pairs of complex nonreal zeros.
We see that in C[x] there is no prime with degree greater than 1 and that
in R[x] there is no prime with degree greater than 2. Now we wonder about
Q[x].
Exercise 1.107. Find a prime polynomial with degree 1, one with degree 2,
one with degree 3, and one with degree 4 in Q[x].
16
An Overview of the Primes in Z 17
Now what do you think Q(x) does as x gets big? You have conjectured
the Prime Number Theorem, the proof of which is among the greatest of
all mathematical achievements. It is beyond us at this point. The theorem
was proved independently by J. Hadamard and C.J. de la Vallée-Poussin
in 1896, using important results in complex analysis developed by G.F.B.
Riemann, in particular the Riemann Zeta function, which we will define
later.
Definition. Let n be a positive integer and let τ (n) denote the number of
positive divisors of n while σ (n) denotes the sum of these divisors. (Thus,
for example, τ (9) = 3 and σ (9) = 13.) A perfect number is a positive
integer n such that σ (n) = 2n. (The sum of all divisors which are less than
n is n.)
Exercise 2.22. Find the two least perfect numbers.
Exercise 2.23. Let p be a positive prime and r a positive integer. Then
r+1
τ (pr ) = r + 1 and σ (pr ) = 1 + p + p2 + . . . + pr = p p−1−1 .
Exercise 2.24. Let m and n be relatively prime positive integers, let Dm
denote the set of all positive divisors of m, let Dn denote the set of all positive
divisors of n, and let Dmn denote the set of all positive divisors of mn. Then
Dmn = {ab : a is in Dm and b is in Dn }.
Definition. A function of f from the positive integers to the complex num-
bers is multiplicative if f (mn) = f (m) f (n) for relatively prime positive
integers m and n.
Exercise 2.25. Give examples of multiplicative functions and examples of
functions from the positive integers to the complex numbers that are not
multiplicative. (You realize, of course, that a function from the positive
integers to the integers is a function from the positive integers to the complex
numbers.)
Exercise 2.26. Both τ and σ are multiplicative. (Hint: Exercise 2.24)
Exercise 2.27. Let n be a positive integer expressed (uniquely) as a product
of powers of positive primes. Use Exercise 2.23 and 2.26 to find formulas
for τ (n) and σ (n).
Exercise 2.28. (Euclid) Let M p be a Mersenne prime. Then 2 p−1 M p is a
perfect number.
Exercise 2.29. (Euler) Let n be an even perfect number. Then n = 2 p−1 M p
for some Mersenne prime, M p . (Let us break this exercise down a bit):
A) Let n be even and perfect. Then n = 2r m, where m is odd.
B) (2r+1 − 1)σ (m) = 2r+1 m, so that 2r+1 |σ (m) and (2r+1 − 1)|m.
C) σ (m) = 2r+1 s and m = (2r+1 − 1)t for some integers s and t.
D) (2r+1 − 1)2r+1 s = 2r+1 (2r+1 − 1)t, so that s = t.
E) σ (m) = m + s, where s|m. This implies something special about m.
Proceed.
Exercise 2.30. Use Exercise 2.28 to help you find a third (even) perfect
number.
Exercise 2.31. In the proof of Exercise 2.29, where was it necessary to use
the hypothesis that n is even?
(No one knows whether there exist odd perfect numbers, and since we
don’t know whether there exist infinitely many Mersenne primes, we don’t
know whether there are infinitely many even perfect numbers.)
For an exhaustive discussion of the lore and history of perfect numbers,
see L.E. Dickson’s History of the Theory of Numbers, Vol. 1.
Congruences
21
Congruences 22
1. a is in [a]5,
2. If x is in [b]5, and x is in [a]5, then [a]5 = [b]5,
Exercise 3.52. You are going to think that you are doing Ex.’s 3.21 and 3.23
again. Let G be a group and H a subgroup. Prove
1. If a is in G, then a is in aH.
2. If x is in aH and x is in bH, then aH = bH.
3. If G is finite (so, then, is H), and the order of H is m, then each aH
contains exactly m members.
4. If G has order n and H has order m and there are k distinct aH’s, then
mk = n, and thus m|n. (Lagrange’s Theorem)
Exercise 3.53. Can a 12-member group have a subgroup of order 5? Can a
group of order p (prime) have a subgroup of order other than 1 or p?
Exercise 3.54. Let G be a group of order p (prime). Let a be in G and a 6= e.
What is a’s order? A group of prime order is [fill in the blank]?
Exercise 3.55. Let G be a group of order n and let a be in G. Then an = e.
(Hint: Let m be the order of a. What is am ? Does m|n? What is an ?)
Exercise 3.56. Let p be prime and let [a] be in U p. Then [a] p−1 = [1]. (Hint:
What is the order of the group U p?)
Exercise 3.57. (Fermat’s Little Theorem) Let p be a prime and p not
divide a. Then a p−1 ≡ 1 (mod p).
(The Dirichlet product of two members of A is far more useful than the sum.
We define the sum largely because it is pleasing to have an integral domain.)
We let u, z, and e denote members of A such that for all n, u(n) = 1 and
z(n) = 0, while e(n) = 0 if n 6= 1 and e(1) = 1.
We can get a triple of easy pickings from the definitions and Exercise
3.79:
Exercise 3.81. Show that u ∗ φ = i, that u2 = τ , and that u ∗ i = σ .
We will make use of this inversion formula later in our study. At this
point I think I should show you an example of its use in the inversion (in the
usual sense) of functions whose domains are not the positive integers, but
rather the real or complex numbers.
The Riemann zeta function is defined this way:
∞
1
ζ (z) = ∑ nz ,
n=1
the likely truth of which you can probably convince yourself by writing out
a few terms of ζ (z) and of the other series and multiplying.
µ (n)
It is also true that ∑∞
1 n = 0. You would probably have a hard time
convincing yourself of this because it is equivalent to the prime number
theorem in the sense that each implies the other!
Exercise 3.100. Use your result of Exercise 3.95 as the definition of µ
and prove the inversion formula independently of the algebraic machinery
above.
We will end this discussion here, although you can see that there are
many questions whose answers we could chase. Name some.
I told you earlier that huge primes were central to modern communication
by secret code. Now we have built the machinery (congruences and Euler’s
generalization of Fermat’s Little Theorem) to see how this works. I will give
you the theory only, with no attempt to discuss the computational aspects.
Quadratic Reciprocity
35
Quadratic Reciprocity 36
B) ( ab a b
p ) = ( p )( p )
2
C) ( ap ) = 1 if gcd(a, p) = 1,
D) ( 1p ) = 1.
One can see that Exercise 4.7 implies that ( ap ) can be determined for any
a provided ( qp ) can be determined for primes q. For odd primes q 6= p this
determination is given by the Quadratic Reciprocity Law (QRL): For odd
primes p and q, ( qp ) = ( qp ) if at least one of p and q is congruent mod 4 to 1.
If both are congruent mod 4 to -1, then ( qp ) = −( qp ). To give you a sample
of the efficiency of the law, let us do an exercise assuming the law and also
assuming that ( 2p ) = 1 iff p is congruent mod 8 to ±1. (You will also need
to use the results of Exercise 4.7).
5 27(507)
Exercise 4.9. Find ( 23 ), ( 30 507
89 ), ( 773 ), and ( 773 ). Is there an integer x
such that x2 ≡ 507 (mod 773)? Note: 773 is prime, as you can determine
by trying 3, 5, 7, 11, 13, 17, 19, 23, and 29 for divisors. (Why is this
enough?) Similarly, you can search 507 for divisors. 9
Exercise 4.10. Letp denote an odd prime and let a be an integer not divisi-
ble by p. Then ap ≡ a(p−1)/2 (mod p). Hint: [a](p−1)/2 is a sol’n in Z p [x]
of x2 − [1] = [0]. There are only two sol’ns: [1] and [-1]. Now let a be an
even (odd) power of a generator of U p . Proceed.
Exercise 4.11. Factor x2 − [1] completely into linear factors in Z3 [x]. Factor
x4 − [1] into linear factors in Z5 [x]. Factor x p−1 − [1] into linear factors in
Z p [x]. Hint: See Ex. 3.109.
Exercise 4.12. Wilson’s Theorem: If p is prime, then (p−1)! ≡ −1 (mod p).
Hint: put x = [0] in the factorization above.
Exercise 4.15. Cancel factorials (can you cancel across congruences?). Then
a(p−1)/2 ≡ (−1)n (mod p),
where n is the number of remainders in the above display that exceed p/2.
Exercise 4.16. Continue with the above example. Exercise 4.15, with the
8
help of Exercise 4.10, implies that 13 = (−1)3 = −1. You should check
this directly by listing the squares mod 13.
Now let’s set out to prove the result suggested by the example which
we just saw. We want to let p be an odd prime and a be an integer not
divisible by p. We want to get the products, 1a, 2a, 3a, . . . , ((p − 1)/2)a
and write them as ia = qi p + ri (i = 1, 2, 3, . . ., (p − 1)/2). (Here, qi denotes
a quotient. Do not confuse it with a prime, q). I considered other notations
for the quotient
but
couldn’t (à la Waring) find a suitable one. Then we want
a
to show that p = (−1)n , where n is the number of the ri ’s that exceed
p/2. It will then be necessary to find some way to manage n mod 2, but
that’s down the road a bit.
Exercise 4.17. Let p be an odd prime and p not divide the integer a. Con-
sider the (p − 1)/2 equations:
1a = q1 p + r1
2a = q2 p + r2
... 0 < r < p, for each r.
...
p − 1
a = q(p−1)/2 p + r(p−1)/2 .
2
−1
All the ri ’s are greater than p/2 and = (−1)(p−1)/2 .
p
Exercise 4.19. If p is an odd prime, then −1
p = 1 iff p ≡ 1 (mod 4).
Don’t be misled by the ease with which this result came. This is an
important conclusion, which we used a big gun (Gauss’s lemma) to get.
Everyone interested in numbers commits it to memory. 10
Exercise 4.20. Take a few odd primes andcheck the result in Exercise 4.19.
We can use the lemma directly to get 2p for odd primes, p; this is neces-
sary if we hope to be able to determine ap for any a, because the QRL
helps only if a is another odd prime.
Exercise 4.21. Now let a = 2 while p is an odd prime. Then,
1 × 2 = 0p + 2
2 × 2 = 0p + 2 × 2
etc.
i × 2 = 0p + 2i
etc.
((p − 1)/2) × 2 = 0p + p − 1.
All the q’s are zero and ri = 2i for each i between 1 and (p − 1)/2, inclusive.
Exercise 4.25. If each of a and b is a positive integer and b > a, then the
number of integers between a and b inclusive is b − a + 1.
Exercise 4.26. Refer to Exercise 4.22. Let p = 8k + R; the number n is
(4k) + (R − 1)/2 − (2k + 1) + 1 = 4k + (R − 1)/2 − 2k if R = 1 or 3
and n is
(4k) + (R − 1)/2 − (2k + 2) + 1 = 4k + (R − 1)/2 − 2k − 1 if R = 5 or 7.
Exercise 4.27. Let R take its allowed values and conclude that
2
= 1 iff R = 1 or 7 iff p = ±1 (mod 8).
p
We have gotten quite a bit of mileage from the display of Exercise 4.17
by multiplying by columns. We can get a great deal more if we add by
columns. To move forward without a lot of wheel spinning, we need a
definition. Let x denote a real number. Then the greatest integer in x is the
greatest integer that does not exceed x. We will denote it by ⌊x⌋, which is
standard notation.
Exercise 4.28. Find ⌊7.5⌋, ⌊π ⌋, ⌊−π ⌋, ⌊29/3⌋.
Exercise 4.29. Let a, b, q, and r be in Z+ and let a = bq + r, with 0 ≤ r < b.
Then q = ⌊a/b⌋.
Exercise 4.30. Go back and rework the display of Exercise 4.17. Replace
(p−1)/2
∑i=1
each qi by ⌊(ia)/p⌋. Let S denote i. Add the left column to get
(p−1)/2
Sa. Add the right column to get p × ∑i=1 ⌊(ia)/p⌋ + ∑ ri + np − ∑ sk ,
where the ri ’s are those less than p/2 and the n sk ’s are gotten by subtracting
the ri ’s that are greater than p/2 from p.
Exercise 4.31. Continue with Exercise 4.30. Let N denote the sum in the
parentheses (multiplying p). Then
Sa = N p + np + ∑ ri − ∑ sk .
Exercise 4.32. Now assume a is odd (we know how to handle powers of 2)
and remember that p is odd. Also note that -1 and 1 are congruent mod 2.
Then since the r’s and s’s together make up the set {1, 2, 3, . . ., (p − 1)/2},
S ≡ N + n + S (mod 2).
Then n ≡ N (mod 2) and ap = (−1)N .
3
Exercise 4.33. Find 11 by determining N directly from its definition. It
may seem that we are no closer to our goal (the QRL), since we have merely
transferred our attention from n to N, where n is the number of remainders
exceeding p/2 and N is the sum of the quotients. Let me point out that
we are not trying to determine p directly, but are trying to relate qp to
a
p
q , where both are odd primes. We saw in Exercise 4.9 that if we could
do so, then we could determine ap .
Exercise 4.34. Check this restatement of Exercise 4.32, where a is now the
odd prime, q.
(p−1)/2
If p and q are distinct odd primes and N = ∑i=1 ⌊(iq)/p⌋, then qp =
(−1)N .
(q−1)/2 p
Exercise 4.35. Let M = ∑i=1 ⌊(ip)/q⌋. Then q = (−1)M .
Exercise 4.36. In the notation of Exercises 4.34 and 4.35,
q p
= (−1)N+M .
p q
Now you can see that we have to determine N + M mod 2. We can do so
with some simple geometry.
Exercise 4.37. Sketch the x, y plane and on it draw the lines, x = p/2 and
y = q/2, and the diagonal line, y = qx/p.
Exercise 4.38. Let R denote the rectangle with boundaries x = p/2, y = q/2,
x = 0, and y = 0. There are (p − 1)/2 × (q − 1)/2 lattice points (points with
integer coordinates) in the interior of the rectangle.
Exercise 4.39. There is no lattice point on the diagonal, y = qx/p.
Exercise 4.40. There are N lattice points in R below the diagonal, and there
are M lattice points in R above the diagonal.
Exercise 4.41. N + M = ((p − 1)/2)((q − 1)/2) and
q p
= (−1)((p−1)/2)((q−1)/2) .
p q
Exercise 4.42. Now we have the long-awaited goal, the QRL: If p and q
are odd primes, then
q p
=
p q
if and only if p or q is congruent mod 4 to 1.
Exercise 4.43. Find whether 244 is a quadratic residue mod 5, mod 3, mod
7, mod 11, mod 13, and mod 29.
Exercise 4.44. Exploit the QRL and a bit of ingenuity to determine whether
there exists an integer x such that 3x2 + 6x − 2 ≡ 0 (mod 89).
Exercise 5.1. Check that the following is true: Every odd prime between 1
and 50 is the sum of two squares if and only if it is congruent mod 4 to 1.
Make a conjecture.
Exercise 5.2. If the odd prime p is the sum of two squares, then p ≡ 1
(mod 4). (This is easy: Suppose x2 + y2 = p. Think about x2 , y2 , and
p mod 4.)
(A) 3, 7, 11, 19, 23, and 31 are all prime in G. (Consider norms.)
(B) Neither of 5, 13, 17, and 29 is prime in G.
(C) Each of the numbers in Exercise 5.3 (B) factors into a product of two
distinct primes which are conjugates. By distinct, we mean that they
are not associates. 5 = (1 + 2i)(1 − 2i), for example.
(D) If p is prime in Z and p ≡ 3 (mod 4), then p is prime in G. (Suppose
p factors in G. Then the product of the norms of the factors must be
p2 .)
Exercise 5.4. Prove:
(A) Let p be prime in Z and p ≡ 1 (mod 4). Let [t] be in Z p such that
[t]2 = [−1], where the brackets denote members of Z p . How do we
know that there is such a t? Then t 2 ≡ −1 (mod p). Then p|(t 2 + 1),
42
Sums of Two Squares and Pythagorean Triples 43
so that p divides the product (t + i)(t − i). Does p divide either factor?
Conclude that p is not prime in G.
(B) Let p = 17. Find a t such that t 2 ≡ −1 (mod p). Verify that p divides
(t + i)(t − i) in G. Do the same for p = 29.
(C) Let p be prime in Z and p ≡ 1 (mod 4). Since p is not prime in G, let
p = αβ in G. Then p2 = N(α )N(β ) in Z. If follows that p = N(α ) =
αα in G, so that p is the sum of two squares in Z. Both α and α are
prime in G and they are not associates.
Exercise 5.5. Factor 5, 13, 17, 29, 33, 37, and 41 into primes in G.
Exercise 5.6. In G,
2 = (1 + i)(1 − i),
where both factors are primes. They are associates, so that, in fact, 2 is
(except for a unit) the square of a prime in G.
Now we wonder whether there are other primes in G and hope there aren’t.
Exercise 5.7. Let α be in G and α 6= 0. Then α |N(α ) in G. N(α ) is a
positive member of Z, so that there is a least positive integer divisible by α .
Exercise 5.8. If α is prime in G, then the least positive integer guaranteed
by Exercise 5.7 is a prime in Z. (Remember now: If α |β χ , then α |β or
α |χ .)
Exercise 5.9. Let π be prime in G. Let L denote the (prime) least positive
member of Z divisible by π .
(a2 + b2 )(c2 + d 2 ) = x2 + y2 .
At this point we do a few more exercises in G with no particular goal other
than the fun you are going to have. That’s not quite right; we will need some
of the results, but the main goal is fun.
Exercise 5.17. Show that each of 1+3i, 6, 2+4i, 3+5i, and 3−i is divisible
in G by δ but that neither of 2 + 3i, 5i, 3 + 4i, nor 5 + 6i is divisible by δ .
Exercise 5.18. Let α = a + bi be in G. Then α ≡ 0 (mod δ ) iff a ≡ b
(mod 2), and α ≡ 1 (mod δ ) iff a 6≡ b (mod 2), Gδ = {[0], [1]}, and Gδ
is a field that is isomorphic to Z2 . This means there is a bijection between
the two fields that is an isomorphism between the two additive groups and
between the two multiplicative groups.
(We didn’t define Gδ but we have met it before. To make your definition
maybe you will need to go back and look at Ex. 3.7 to see how it is as
natural to speak of Gδ or G2 as to speak of Zn .)
Exercise 5.19. In Gδ , each [a + bi] is either [0] or [1] by Exercise 5.18.
Take a few members of G and decide to which class each belongs. Make
operation tables for Gδ .
Exercise 5.20. The sum of two even members or of two odd members of G
is even. The sum of an odd and an even member of G is odd. The product
of an even member with any member is even, and the product of two odd
members of G is odd.
Exercise 5.21. Let α = (2 + i). Then Gα has exactly five members. Can
you identify them and make operation tables? Can you show that Gα is a
field?
Exercise 5.22. G3 has nine members. Can you identify them and make
operation tables? Can you show that G3 is a field?
Exercise 5.23. G5 has 25 members. Can you identify them? Can you show
that G5 is not a field?
Exercise 5.24. How many members do you think G9 has? How about
G2+3i ?
Exercise 5.25. What would it mean to say that φG (2 + i) = 4? That φG (3) =
8? Can you find φG (5)? To what is (1 + i)4 congruent mod (2 + i)? State
Fermat’s Little Theorem for G and give Euler’s generalization.
Exercise 5.26. If {x, y, z} is a PPT in Z, then the members of the triple are
relatively prime in pairs, z is odd and exactly one of x and y is odd. (Consider
x2 + y2 = z2 (mod 4).) We arrange the nomenclature so that x is odd and
regard the triple as an ordered triple (x, y, z).
Exercise 5.27. Every Pythagorean Triple can be gotten from a PPT by mul-
tiplying the members through by some positive integer.
Exercise 5.28. Let (x, y, z) be a PPT in Z. Then x2 + y2 = z2 and
(x + iy)(x − iy) = z2 in G.
Exercise 5.29. The factors on the left side are both odd and they are co-
prime. (If π is a prime dividing each, then π divides their sum and their
difference.).
Exercise 5.30. The Fundamental Theorem of Arithmetic in G implies that
each factor on the left in Exercise 5.28 is a unit times a square. Thus, for
some unit u and some odd number a in G, x + iy = ua2 .
Exercise 5.31. Let a = t + si, where of course t and s are in Z, one even and
the other odd. Then
Exercise 5.35. Find a pair (C, D), guaranteed by Ex. 5.34, for each of the
following PPT’s: (3, 4, 5), (5, 12, 13), (7, 24, 25) and (15, 8, 17).
Exercise 5.36. Let M denote the set of all pairs, (C, D), of coprime positive
integers, C odd and D even. Let P denote the set of all PPT’s in Z. The map
(C, D) → (|C2 − D2 |, 2CD,C2 + D2 ),
is a bijection from M to P.
Now you know how to generate all PPT’s, and you know that you won’t
waste time using different generators to get the same PPT.
Exercise 5.37. Generate some PPT’s, using pairs from M. Find an infinite
set of Pythagorean triples, using just one PPT to provide a start.
abelian, 6 integers, 1
algebraically closed, 13 integral domain, 7
arithmetic function, 29 isomorphism, 27
automorphism, 28 Lagrange’s Theorem, 26
casting out nines, 1 lattice point, 41
Chinese Remainder Theorem, 27 least common multiple, 16
commutative, 6 Legendre Symbol, 36
commutative ring, 6 linear combination, 4
composite, 4 Mersenne prime, 18
congruence, 21 Möbius Function, 30
coprime, 4 Möbius Inversion Formula, 31
cyclic group, 24 multiple, 1
degree, 12 multiplicative function, 19
Dirichlet Product, 29 norm, 7
divides, 1 odd Gaussian integer, 45
divisor theorem, 2 order of a group, 24
Euclidean Algorithm, 3 order of a member of a group, 25
Euler φ -function, 24 Perfect Number, 19
Euler’s generalization prime, 4
of Fermat’s Little Theorem, 26 Prime Number Theorem, 18
even Gaussian Integer, 45 Primitive Pythagorean triple, 45
Fermat number, 18 primitive root, 31
Fermat prime, 18 principal ideal, 8
Fermat’s Last Theorem, 10 Pythagorean triple, 45
Fermat’s Little Theorem, 26 Quadratic Reciprocity Law, 36
field, 11 quadratic residue, 35
Fundamental Theorem of Algebra, 13 Rational Root Theorem, 15
Fundamental Theorem of Arithmetic, relatively prime, 4
5 repeating decimals, 33
Gaussian integer, 6 Riemann Zeta Function, 31
greatest common divisor, 2 ring, 1
greatest integer function, 40 ring of integers (mod n), 23
group, 6 ring with unity, 6
Gauss’s Lemma, 38 secret codes, 33
homomorphism, 27 squares (mod p), 35
ideal, 8 subgroup, 8
48
INDEX 49
1 The instructor might choose to talk about the notion of “Euclidean domains” in con-
nection with this failure of unique factorization in J.
2 We shall later, of course, see the finite fields Z p where p is a prime. But it is interesting
to note that at the very end of the Notes we naturally encounter a few finite fields that have
p2 elements in them, as in Ex. 5.22.
3 InEx. 1.98 it might be pointed out that we are here discovering the three cube roots of
unity – something that will be new to some students.
4 InEx. 2.2 one might comment that after replacing each of the integers a and b by an
appropriate product of primes, we see that the equation p(bn ) = an cannot hold, for the
prime p cannot occur the same number of times on both sides of this equation if n > 1.
5 Ex. 2.9 outlines Euclid’s ancient algorithm for finding a new prime, given any finite
set of primes: Just find a prime factor of one plus the product of all the primes in the set. It
might be pointed out, however, that Euclid’s method – though constructive – is hopelessly
inefficient. Anyone who knows the first 25 primes and wants another prime would not want
to multiply the 25 known primes together and attempt to factor the product plus one.
6 In Ex. 2.12 it has been my experience that students generally don’t work hard enough
to find a counterexample to the natural conjecture here. In this connection a problem related
to the famous Euler polynomial n2 − n + 41 might be helpful. This polynomial takes prime
values for n = 1, 2, 3, ..., 40, but this fact doesn’t mean you can’t find a non-prime output
(n = 41).
7 After the work based on the fact that 10 is congruent to 1 mod 9, one might assign a
problem based on the fact that 10 is congruent to - 1 mod 11. Thus, a number in decimal
notation is divisible by 11 iff the alternating sum of its divisors is.
8
Cross gives as an example the message,“I passed my comps.” This refers to his stu-
dents’ passing their comprehensive examination in mathematics.
9 Perhaps the instructor should make up some more complicated quadratic reciprocity
problems for the students to work out, by introducing quadratic equations modulo larger
primes than are considered here.
10 In connection with Exercise 4.19 it might not be a good idea to interrupt the flow
of ideas here, but the result of this exercise quickly shows that there are infinitely many
primes of the form 4n + 1: For any prime factor of [N!]2 + 1 is seen to be such a prime p
by this exercise and it is easy to see that p > N. (An easier argument based upon a simple
50
51
modification of Euclid’s familiar argument shows that there are also infinitely many primes
of the form 4n + 3. Proofs of these relatively simple special cases of Dirichlet’s Theorem
might make good assignments for students.