Professional Documents
Culture Documents
Ireland Rosen Chapters 4 5 6 PDF
Ireland Rosen Chapters 4 5 6 PDF
Ireland Rosen Chapters 4 5 6 PDF
Chapter 4
Proof. Let p = 29 : p − 1 = 22 × 7.
24 = 16 6≡ 1[29]
214 = 47 = 4 × 163 = 64 × 256 ≡ 6 × (−34) = −204 ≡ 86 = 3 × 29 − 1 ≡ −1[29]
228 ≡ 1[29] and 2d 6≡ 1 if d | 28, d < 28, hence 2 is a primitive element modulo 29.
Ex. 4.2 Compute all primitive roots for p = 11, 13, 17, and 19.
Ex. 4.3 Suppose that a is a primitive root modulo pn , p an odd prime. Show that a is
a primitive root modulo p.
Proof. Suppose that a is a primitive root modulo pn : then a is a generator of U (Z/pn Z).
If a was not a primitive root modulo p, a is not a generator of U (Z/pZ), so there
exists b ∈ Z, b∧p = 1 such that ak 6≡ b (mod p) for all k ∈ Z. A fortiori ak 6≡ b (mod pn ),
and b ∧ pn = 1, so b ∈ U (Z/pn Z) and b 6∈ hai in U (Z/pn Z), in contradiction with the
hypothesis. So a is a primitive root modulo p.
(the reasoning on the orders of a, modulo p and modulo pn , is possible, but not so
easy.)
1
Ex. 4.4 Consider a prime p of the form 4t + 1. Show that a is a primitive root modulo
p iff −a is a primitive root modulo p.
Proof. Solution 1.
Suppose that a is a primitive root modulo p. As p − 1 is even, (−a)p−1 = ap−1 ≡ 1
(mod p).
If (−a)n ≡ 1 (mod p), with n ∈ N, then an ≡ (−1)n (mod p).
Therefore a2n ≡ 1 (mod p). As a is a primitive root modulo p, p − 1 | 2n, 2t | n, so
n is even.
Hence an ≡ 1 (mod p), and p − 1 | n. So the least n ∈ N∗ such that (−a)n ≡ 1
(mod p) is p − 1 : the order of −a modulo p is p − 1, −a is a primitive root modulo p.
Conversely, if −a is a primitive root modulo p, we apply the previous result at −a to
to obtain that −(−a) = a is a primitive root.
Solution 2.
Let p − 1 = 2a0 pa11 · · · pakk the decomposition of p − 1 in prime factors.
As pi is odd for i = 1, 2, · · · k, (p − 1)/pi is even, and a is primitive, so
Ex. 4.5 Consider a prime p of the form 4t + 3. Show that a is a primitive root modulo
p iff −a has order (p − 1)/2.
n
Ex. 4.6 If p = 22 + 1 is a Fermat prime, show that 3 is a primitive root modulo p.
2
k−1
k−1 2
3 has order 2k modulo p iff 32 6≡ 1 (mod p). As 32 ≡ 1 (mod p), where p is
k−1
prime, this is equivalent to 32 ≡ −1 (mod p), which remains to prove.
2k−1 (p−1)/2 3
3 =3 ≡ p (mod p).
As the result is true for p = 5, we can suppose n ≥ 2. From the law of quadratic
reciprocity :
3 p k−1
= (−1)(p−1)/2 = (−1)2 = 1.
p 3
So p3 = p3
n n
p = 22 + 1 ≡ (−1)2 + 1 (mod 3)
≡ 2 ≡ −1 (mod 3),
3
p
so p = 3 = −1, that is to say
k−1
32 ≡ −1 (mod p).
n n
The order of 3 modulo p = 22 + 1 is p − 1 = 22 : 3 is a primitive root modulo p.
(On the other hand, if 3 is of order p − 1 modulo p, then p is prime, so
n 2n −1
Fn = 22 + 1 is prime ⇐⇒ 3(Fn −1)/2 = 32 ≡ −1 (mod Fn ).)
Ex. 4.7 Suppose that p is a prime of the form 8t + 3 and that q = (p − 1)/2 is also a
prime. Show that 2 is a primitive root modulo p.
Proof. The first examples of such couples (q, p) are (5, 11), (29, 59), (41, 83), (53, 107), (89, 179).
p = 2q + 1 = 8t + 3 and p, q are prime numbers.
From Fermat’s little theorem, 2p−1 ≡ 1 (mod p), so 22q ≡ 1 (mod p).
The order of 2 modulo p divides 2q : to prove that the order of 2 is 2q = p − 1, it is
suffisant to prove
22 6≡ 1 (mod p), 2q 6≡ 1 (mod p).
3
If 22 ≡ 1 (mod p), then p | 3, p = 3 and q = 1 : q is not a prime, so 22 6≡ 1 (mod p).
If 2q = 2(p−1)/2 ≡ 1 (mod p), then 2 is a square modulo p (prop. 4.2.1) : there exists
a ∈ Z such that 2 ≡ a2 (mod p).
From the complementary case of the law of quadratic reciprocity (see next chapter,
prop. 5.1.3), 2 is a square modulo p iff
2 2
1= = (−1)(p −1)/8 .
p
2
Yet p ≡ 3 (mod 8), so p2 ≡ 9 (mod 16), p2 = (−1)(p −1)/8 = −1, so 2 is not a square
Ex. 4.8 Let p be an odd prime. Show that a is a primitive root modulo p iff a(p−1)/q 6≡ 1
(mod p) for all prime divisors q of p − 1.
Proof. • If a is a primitive root, then ak 6≡ 1 for all k, 1 ≤ k < p − 1, so a(p−1)/q 6≡ 1
(mod p) for all prime divisors q of p − 1.
• In the other direction, suppose a(p−1)/q 6≡ 1 (mod p) for all prime divisors q of p−1.
Let δ the order of a, and p − 1 = q1a1 q2a2 · · · qkak the decomposition of p − 1 in prime
factors. As δ | p − 1, δ = q1b1 pb22 · · · qkbk , with bi ≤ ai , i = 1, 2, . . . , k. If bi < ai for some
index i, then δ | (p − 1)/qi , so a(p−1)/qi ≡ 1 (mod p), which is in contradiction with the
hypothesis. Thus bi = ai for all i, and δ = q − 1 : a is a primitive root modulo p.
Ex. 4.9 Show that the product of all the primitive roots modulo p is congruent to
(−1)φ(p−1) modulo p.
Proof. Here we suppose p prime, p > 2. Let g a primitive root modulo p. U (Z/pZ) is
cyclic, generated by g:
U (Z/pZ) = {1, g, g 2 , . . . , g p−2 }, g p−1 = 1.
g k is a primitive element iff k ∧ (p − 1) = 1, so the product of primitive elements in
U (Z/pZ) is Y
P = gk .
k∧(p−1)=1
1≤k<p−1
gS ,
P
so P = where S = k.
k∧(p−1)=1
1≤k<p−1
From Ex. 2.22, we know that for n ≥ 2,
X 1
k = nφ(n).
2
k∧n=1
1≤k<n
k = 12 (p − 1)φ(p − 1).
P
So S =
k∧(p−1)=1
1≤k<p−1
As p > 2, p − 1 is even. (g (p−1)/2 )2 = g p−1 = 1, and g (p−1)/2 6= 1. As Z/pZ is a field,
g (p−1)/2 = −1.
Thus P = (−1)φ(p−1) : so the product P of all the primitive roots modulo p is such
that
P ≡ (−1)φ(p−1) (mod p).
4
Ex. 4.10 Show that the sum of all the primitive roots modulo p is congruent to µ(p−1)
modulo p.
Proof. Notation : Fp = Z/pZ is the field with p elements, |x| the multiplicative order of
an element x ∈ F∗p , N∗ = {1, 2, 3, . . .}.
Let
N∗ → Fp P
ψ: n 7→ ψ(n) = d
d∈F∗ ,|d|=n
p
f (n) is the sum of elements whose order divides n, in other worlds the sum of the
roots of xn − 1. This sum is, up to the sign, the coefficient of xn−1 , so is null, except in
the case n = 1, where the sum of the unique root 1 of x − 1 is 1. So
Conclusion : X
S= d = µ(p − 1) :
d∈F∗p ,|d|=p−1
the sum of all the primitive roots modulo p is congruent to µ(p − 1) modulo p.
since p − 1 | k ⇐⇒ g k = 1.
Conclusion :
1k + 2k + · · · + (p − 1)k ≡ 0 (mod p) if p − 1 - k
k k k
1 + 2 + · · · + (p − 1) ≡ −1 (mod p) if p − 1 | k
5
Ex. 4.12 Use the existence of a primitive root to give another proof of Wilson’s theorem
(p − 1)! ≡ −1 (mod p).
= g (p−2)(p−1)/2
p−2
= g (p−1)/2
= (−1)p−2
= −1.
Ex. 4.13 Let G be a finite cyclic group and g ∈ G a generator. Show that all the other
generators are of the form g k , where (k, n) = 1, n being the order of G.
Ex. 4.14 Let A be a finite abelian group and a, b ∈ A elements of order m and n,
respectively. If (m, n) = 1, prove that ab has order mn.
∀k ∈ Z, (ab)k = e ⇐⇒ nm | k.
So |ab| = nm.
Ex. 4.15 Let K be a field and G ⊂ K ∗ a finite subgroup of the multiplicative group of
K. Extend the arguments used in the proof of Theorem 4.1 to show that G is cyclic.
Solution 1.
6
Proof. Let n = |G|. From Lagrange’s theorem, an = 1 for all a ∈ G, so the polynomial
xn − 1 ∈ K[x] has exactly n roots in G, and so
∀x ∈ K, x ∈ G ⇐⇒ xn = 1.
Solution 2.
Proof. Let n = |G| = pa11 · · · pakk . From Lagrange’s theorem, y n = 1 for all y ∈ G.
p(x) = xn/p1 − 1 ∈ K[x] has at most n/p1 < n roots in K ∗ , a fortiori in G, so there
exists a ∈ G such that an/p1 6= 1.
a1 a2 ak a1 a1 −1
p p
Let c1 = an/p1 = ap2 ···pk . Then c11 = 1 and c11 = an/p1 6= 1, so |c1 | = pa11 .
Similarly, there exist c2 , . . . , ck with respective orders |ci | = pai i .
From exercise 4.14, we obtain by induction that c = c1 · · · ck has order pa11 · · · pakk = n,
so G is cyclic.
Ex. 4.16 Calculate the solutions to x3 ≡ 1 (mod 19) and x4 ≡ 1 (mod 17).
a3 − 1 = 0 ⇐⇒ a − 1 = 0 or a2 + a + 1 = 0.
a2 + a + 1 = 0 ⇐⇒ (a + 10) − 99 = 0
⇐⇒ (a + 10)2 − 4 = 0
⇐⇒ (a + 8)(a + 12) = 0
Let a ∈ F17 .
a4 = 1 ⇐⇒ a2 = 1 or a2 = −1 = 42
⇐⇒ a = ±1 or a = ±4
7
Alternatively, we can take primitives roots modulo 19 and 17.
2 is a primitive root modulo 19, Let a = 2k ∈ F19 .
a3 = 1 ⇐⇒ 23k = 1
⇐⇒ 18 | 3k
⇐⇒ 6 | k
⇐⇒ a = 1, 26 = 7, 212 = 11
a4 = 1 ⇐⇒ 34k = 1
⇐⇒ 16 | 4k
⇐⇒ 4 | k
⇐⇒ a = 1, 34 = −4, 38 = −1, 312 = 4
Ex. 4.17 Use the fact that 2 is a primitive root modulo 29 to find the seven solutions
to x7 ≡ 1 (mod 29).
Proof. As (1 + x + · · · + x6 )(1 − x) = 1 − x7 ,
x7 ≡ 1
6 (mod 29)
1 + x + ··· + x ≡ 0 (mod 29) ⇐⇒
x 6≡ 1 (mod 29)
From Ex. 4.17, the solutions are congruent to 24 , 28 , 212 , 216 , 220 , 224 modulo 29.
Ex. 4.19 Determine the numbers a such that x3 ≡ a (mod p) is solvable for p =
7, 11, 13.
8
(b) If p = 11, then d = 3 ∧ (p − 1) = 1. With the same proposition,
f is a bijection. Indeed,
• f is a group homomorphism,
• x3 = 1 ⇒ (x3 )7 = 1 ⇒ x = 1 so ker(f ) = {1},
• f : F∗11 → F∗11 is injective and F∗11 is finite, so f is bijective.
In F11 , 0 = 03 , 1 = 13 , 2 = 73 , 3 = 93 , 4 = 53 , 5 = 33 , 6 = 83 , 7 = 63 , 8 = 23 , 9 =
43 , 10 = 103 .
(5 ≡ 83 (mod 13).)
Ex. 4.20 Let p be a prime, and d a divisor of p − 1. Show that dth powers form a
subgroup of U (Z/pZ) of order (p − 1)/d. Calculate this subgroup for p = 11, d = 5, for
p = 17, d = 4, and for p = 19, d = 6.
Then f is a group homomorphism, and im(f ) is the set of dth powers, and consequently
is a subgroup of U (Fp ) = F∗p . ker(f ) is the group of the roots of xd − 1. As d | p − 1, the
polynomial xd − 1 has exactly d roots (Prop. 4.1.2), so | ker(f )| = d.
As im(f ) ' F∗p / ker(f ),
x ∈ im(f ) ⇐⇒ x(p−1)/d = 1.
So the group of dth powers is the group of the roots of x(p−1)/d − 1.
• If p = 11, d = 5, im(f ) = {1, −1}.
• If p = 17, d = 4, x ∈ im(f ) ⇐⇒ x4 = 1 : im(f ) = {1, −1, 4, −4}.
• If p = 19, d = 6, x ∈ im(f ) ⇐⇒ x3 = 1 : im(f ) = {1, 7, 72 = 11},
where 7 ≡ 26 (mod 19).
9
Ex. 4.21 If g is a primitive root modulo p, and d|p − 1, show that g (p−1)/d has order
d. Show also that a is a dth power iff a ≡ g kd (mod p) for some k. Do Exercises 16-20
making use of those observations.
Proof. Let x = g (p−1)/d ∈ F∗p , where g is a primitive root modulo p. For all k ∈ Z,
p−1
xk = 1 ⇐⇒ g k =1
d
p−1
⇐⇒ p − 1 | k
d
⇐⇒ d | k
(1 + a)3 ≡ 1 + 3a + 3a2 + a3
≡ 1 + 3a + 3(−1 − a) + 1
≡ −1 (mod p)
Ex. 4.23 Show that x2 ≡ −1 (mod p) has a solution iff p ≡ 1 (mod 4), and that
x4 ≡ −1 (mod p) has a solution iff p ≡ 1 (mod 8).
Proof. If x2 ≡ −1 (mod p), then x has order 4 in F∗p , hence from Lagrange’s theorem,
4 | p − 1.
Conversely, suppose 4 | p − 1, so p = 4k + 1, k ∈ N∗ . From proposition 4.2.1, as
2 | p − 1, −1 is a square modulo p iff (−1)(p−1)/2 ≡ 1 (mod p), which is true because
(−1)(p−1)/2 = (−1)2k = 1.
If x4 ≡ −1 (mod p), then x8 = 1 ∈ F∗p , and x4 6= 1, so x has order 8 in F∗p , so 8 | p − 1.
Conversely, if p ≡ 1 (mod 8), p = 8K + 1, K ∈ N∗ . From Prop.4.2.1, as 4 | p − 1,
there exists x ∈ Z such that −1 = x4 iff (−1)(p−1)/4 ≡ 1 (mod 8), which is true because
(−1)(p−1)/4 = (−1)2K = 1.
Conclusion :
10
Ex. 4.24 Show that axm + by n ≡ c (mod p) has the same number of solutions as
0 0
axm + by n ≡ c (mod p), where m0 = (m, p − 1) and n0 = (n, p − 1).
Proof. If a∧b - c, the two equations have no solution. So we can suppose a∧b | c, and after
division by δ = a ∧ b, we obtain an equation a0 xm + b0 y n = c0 , a0 = a/δ, b0 = bδ, c0 = cδ,
and a0 ∧ b0 = 1. So it remains to prove that axm + by n ≡ c (mod p) has the same number
0 0
of solutions as axm + by n ≡ c (mod p) when a ∧ b = 1.
In this case the equation au + bv = c has solutions. Let N the number of solutions
(x, y) of the equation a xm + b y n = c,N 0 the number of solutions (x, y) of the equation
0 0
a xm + b y n = c. Then
N = Card{(x, y) ∈ Fp × Fp | a xm + b y n = c}
X
= Card{(x, y) ∈ Fp × Fp | xm = u, y n = v}
au+bv=c
X
= Card{x ∈ Fp |xm = u} × Card{y ∈ Fp |y n = v}.
au+bv=c
∃x ∈ Fp , xm = u ⇐⇒ ∃k ∈ Z, g mk = g r
⇐⇒ ∃k ∈ Z, p − 1 | mk − r
⇐⇒ ∃k ∈ Z, ∃l ∈ Z, r = mk + l(p − 1)
⇐⇒ m ∧ (p − 1) | r
So
{x ∈ Fp | xm = u} =
6 ∅ ⇐⇒ m ∧ (p − 1) | r,
and similarly
0
6 ∅ ⇐⇒ m0 ∧ (p − 1) | r.
{x ∈ Fp | xm = u} =
Since m0 ∧ (p − 1) = (m ∧ (p − 1)) ∧ (p − 1) = m ∧ (p − 1), these two conditions are
equivalent, so these two sets are empty for the same values of u.
Let u is such that {x ∈ Fp | xm = u} = 6 ∅, and x0 a fixed solution of xm = u.
Write x = g , x0 = g 0 . Let d = m ∧ (p − 1)(= m0 ).
k k
xm = u ⇐⇒ xm = x0 m
⇐⇒ g mk = g mk0
⇐⇒ p − 1 | m(k − k0 )
p−1 m
⇐⇒ | (k − k0 )
d d
p−1
⇐⇒ | k − k0
d
p−1
⇐⇒ ∃j ∈ Z, k = k0 + j
d
11
p−1 p−1 p−1
As g is a primitive root modulo p, the distinct solutions are x0 , x0 g d , . . . , x0 g k d , . . . x0 g (d−1) d ,
so in this case
Card{x ∈ Fp | xm = u} = d = m ∧ (p − 1).
As m0 ∧ (p − 1) = m ∧ (p − 1),
0
Card{x ∈ Fp | xm = u} = Card{x ∈ Fp | xm = u}.
0 0
So N = N 0 : axm + by n ≡ c (mod p) has the same number of solutions as axm + by n ≡ c
(mod p), where m0 = (m, p − 1) and n0 = (n, p − 1).
For all x ∈ Z,
Then (−1)ny ≡ (−1)s (mod 4), ny ≡ s (mod 2), (−1)ny = (−1)s , so 5nz ≡ 5t (mod 2e ).
Conversely, if ny ≡ s (mod 2) and 5nz ≡ 5t (mod 2e ), then xn ≡ a (mod 2e ), so
ny ≡ s (mod 2) ny ≡ s (mod 2)
xn ≡ a (mod 2e ) ⇐⇒ ⇐⇒
5nz ≡ 5t (mod 2e ) nz ≡ t (mod 2e−2 )
12
(
a ≡ 1 (mod 4),
Conversely, suppose that 2e−2
a ≡ 1 (mod 2e ).
d
Proof. We suppose that a is odd, and that xn ≡ a (mod 22l+1 ) is solvable. l is such that
n = 2l n0 , where n0 is an odd integer.
13
Let the induction hypothesis be, for a fixed integer m ≥ 2l + 1,
∃x0 ∈ Z, xn0 ≡ a (mod 2m ).
Let x1 = x0 + b2m−l : we show that for an appropriate choice of b ∈ {0, 1}, xn1 ≡ a
(mod 2m+1 ).
xn1 = xn0 + nb2m−l xn−1
0 + 22m−2l A, A ∈ Z.
Since m ≥ 2l + 1, 2m − 2l ≥ m + 1, so
xn1 ≡ xn0 + nb2m−l xn−1
0 (mod 2m+1 ).
From the Proposition 4.2.2., with the hypothesis e ≥ 3, we know that the number of
solutions of the solvable equation xn ≡ a (mod 2e ), e ≥ 2l + 1, is 1 if n is odd, 2(n ∧ 2e−2 )
if n is even.
If n is even, l ≥ 1, e ≥ 2l + 1 ≥ 3. Since e ≥ 2l + 1, and n = 2l n0 for an odd n0 ,
l ≤ e−1 e−2 = n0 2l ∧ 2e−2 = 2l , and the number of solutions is 2l+1 ,
2 ≤ e − 2, so n ∧ 2
independent of e ≥ 2l + 1.
Conclusion : under the hypothesis xn ≡ a (mod 22l+1 ), where l = ord2 (n), then
x ≡ a (mod 2e ) is solvable for all e ≥ 1, and all these congruences have the same
n
Chapter 5
5 3 6 −1
Ex. 5.1 Use Gauss’ lemma to determine 7 , 11 , 13 , p .
Proof. • a = 5, p = 7.
The array of values of the least residues modulo p = 7, for 1 ≤ k ≤ (p − 1)/2.
k mod 7 1 2 3
5k mod 7 −2 3 1
So the number of negative least residues is µ = 1, and 57 = (−1)µ = −1.
• a = 3, p = 11.
k mod 11 1 2 3 4 5
3k mod 11 3 −5 −2 1 4
3
= (−1)µ = 1.
So µ = 2, 11
• a = 6, p = 13.
k mod 13 1 2 3 4 5 6
6k mod 13 6 −1 5 −2 4 −3
6
= (−1)µ = −1.
So µ = 3, 13
• If a = −1, and p is an odd prime, the values of the least residues of −k modulo p
for k = 1, 2, . . . , (p − 1)/2are −k, all negative. So the number of negative least residues
is µ = (p − 1)/2, and −1 p = (−1)
(p−1)/2 .
14
Ex. 5.2 Show that the number of solutions to x2 ≡ a (mod p) is equal to 1 + (a/p).
• If ap = −1, then N = 0 = 1 + ap .
Ex. 5.3 Suppose p 6 | a. Show that the number of solutions to ax2 + bx + c ≡ 0 (mod p)
is equal to 1 + ((b2 − 4ac)/p).
Proof. Here p is an odd prime number, and p - a. Let N be the number of solutions of
ax2 + bx + c ≡ 0 (mod p)
For x ∈ Fp = Z/pZ,
2 2 b c
ax + bx + c = a x + x +
a a
2 2
!
b b − 4ac
=a x+ −
2a 4a2
2
b ∆
Let ∆ = b2 − 4ac. Then N is the number of solutions of x + 2a − 4a2
= 0 in Fp . As
in Ex.5.2, N = 1 if ∆ = 0, N = 0 if ∆ is not a square in F∗p , otherwise ∆ = δ 2 , δ ∈ F∗p ,
and the solutions are x = (−b ± δ)/2a, so N = 2. In the three cases, N = 1 + ∆
p .
Pp−1
Ex. 5.4 Prove that a=1 (a/p) = 0.
Proof. Here p is an odd prime (the result is false if p = 2). In the interval [1, p − 1],
there exist (p − 1)/2 residues, and (p − 1)/2 nonresidues (Prop. 5.1.2., Corollary 1), so
P p−1
a=1 (a/p) = 0.
p−1
a b
P
Proof. As an alternative proof, let S = p , and b a nonresidue modulo p : p = −1
a=1
(such a b exists if p 6= 2). As a 7→ ab is a bijection from F∗p to itself,
p−1 p−1
b X ab X c
S= = = S,
p p p
a=1 c=1
so −S = S, S = 0.
15
0
Proof. From exercise 5.3, as p = 0, we know that
X x Xp−1 p−1
x X x
= = = 0.
p p p
x∈Fp x=0 x=1
x0
(This sum is well defined, since xp depends only of x : x ≡ x0 (mod p) ⇒ x
p = p .)
Fp → Fp
As a 6= 0 in Fp , f : is a bijection. Thus
x 7→ ax + b
p−1 X f (x)
X ax + b
=
p p
x=0 x∈Fp
X y
= (y = f (x))
p
y∈Fp
=0
Ex. 5.6 Show that the number of solutions to x2 − y 2 ≡ a (mod p) is given by:
p−1 2
X y +a
1+ .
p
y=0
Proof. Let S = {(x, y) ∈ F2p | x2 − y 2 = a}, and T = {(u, v) ∈ F2p | u v = a}. Then
S → T
f : is well defined (if (x, y) ∈ S, (x − y)(x + y) = a, so
(x, y) 7→ (x + y, x − y)
(x + y, x − y) ∈ T ). Moreover f is a bijection, with inverse (u, v) 7→ ((u + v)/2, (u − v)/2),
so |S| = |T |.
We compute |T |.
• Suppose that p - a, so a 6= 0. For v = 0, there is no solution, and for each v 6= 0,
we obtain the unique solution (a v −1 , v), so there exist p − 1 solutions.
• Suppose that p | a. The solutions of uv = 0 are (0, 0), (0, v) for each v 6= 0, (u, 0)
for each v = 0, that is to say N = 1 + (p − 1) + (p − 1) = 2p − 1 solutions.
16
Conclusion :
Card {(x, y) ∈ F2p | x2 − y 2 = a} = p − 1 if p - a
= 2p − 1 if p | a
Ex. 5.8 Combining the results of Ex. 5.6 and 5.7 show that:
p−1 2 (
X y +a −1 if p - a
=
p p − 1 if p | a
y=0
Ex. 5.9 Prove that 12 32 · · · (p − 2)2 ≡ (−1)(p+1)/2 (mod p) using Wilson’s theorem.
17
Thus 2
p−1
12 32 · · · (p − 2)2 ! ≡1 (mod p),
2
which gives
12 32 · · · (p − 2)2 ≡ (−1)(p+1)/2 (mod p).
Ex. 5.10 Let r1 , r2 , . . . , r(p−1)/2 be the quadratic residues between 1 and p. Show that
their product is congruent to 1 (mod p) if p ≡ 3 (mod 4), and to −1 if p ≡ 1 (mod 4).
(p−1)/2 2
Y p−1
ri ≡ ! (mod p),
2
i=1
so
(p−1)/2
Y
ri ≡ (−1)(p+1)/2 (mod p).
i=1
That is to say, the product of the quadratic residues between 1 and p is congruent to 1
(mod p) if p ≡ 3 (mod 4), and to −1 if p ≡ 1 (mod 4).
Ex. 5.11 Suppose that p ≡ 3 (mod 4), and that q = 2p + 1 is also prime. Prove that
2p − 1 is not prime. (Hint : Use the quadratic character of 2 to show that q | 2p − 1)
One must assume that p > 3.
18
Ex. 5.12 Let f (x) ∈ Z[x]. We say that a prime p divides f (x) if there’s an integer n
such that p | f (n). Describe the prime divisors of x2 + 1 and x2 − 2.
2 2
p divides x + 1 iff there exists a ∈ Z such that −1 ≡ a (mod p), iff p = 2 or
Proof.
−1
p = 1 iff p = 2 or p ≡ 1 (mod 4).
p divides x2 − 2 iff there exists a ∈ Z such that 2 ≡ a2 (mod p), iff p = 2 or p2 = 1
Ex. 5.13 Show that any prime divisor of x4 − x2 + 1 is congruent to 1 modulo 12.
Ex. 5.14 Use the fact that U (Z/pZ) is cyclic to give a direct proof that (−3/p) = 1
when p ≡ 1 (mod 3).[Hint : There is a ρ in U (Z/pZ) of order 3. Show that (2ρ + 1)2 =
−3.]
Proof. Suppose that p ≡ 1 (mod 3). Let g a generator of F∗p . Then g has order p − 1,
thus ρ = g (p−1)/3 has order 3. As ρ3 = 1, ρ 6= 1, then ρ2 + ρ + 1 = 0.
−1 + a −1 − a
1 + ρ + ρ2 = 1 + +
2 2
=0
Ex. 5.15 If p ≡ 1 (mod 5), show directly that (5/p) = 1 by the method of Ex. 5.14.
[Hint : Let ρ be an element of U (Z/pZ)) of order 5. Show that (ρ+ρ4 )2 +(ρ+ρ4 )−1 = 0,
etc.]
19
Proof. Let g a generator of F∗p . g has order p − 1, thus ρ = g (p−1)/5 has order 5.
Let
α = ρ + ρ4
β = ρ2 + ρ3
As 0 = ρ5 − 1 = (ρ − 1)(1 + ρ + ρ2 + ρ3 + ρ4 ) and ρ 6= 1, then 1 + ρ + ρ2 + ρ3 + ρ4 = 0,
thus
α + β = −1
αβ = ρ3 + ρ4 + ρ + ρ2 = −1
Ex. 5.16 Using quadratic reciprocity find the primes for which 7 is quadratic residue.
Do the same for 15.
Proof. 7 is a quadratic residue for 2 and for the odd primes such that p7 = 1.
In the first case , p ≡ 1 (mod 4), p ≡ 1, 4, 2 (mod 7), which gives p ≡ 1, −3, 9
(mod 28).
In the second case, p ≡ −1 (mod 4), p ≡ −1, −4, −2 (mod 7), which gives p ≡
−1, 3, −9 (mod 28).
Conclusion : the primes for which 7 is a quadratic residue are 2 and the odd primes
p such that
7
= 1 ⇐⇒ p ≡ ±1, ±3, ±9 (mod 28).
p
15
15 is a quadratic residue for 2 and for the odd primes such that p = 1.
15 3 5 3 5
= 1 ⇐⇒ = = 1 or = = −1
p p p p p
From the examples of theorem 2, we know that
3 3
= 1 ⇐⇒ p ≡ 1, −1 (mod 12), = −1 ⇐⇒ p ≡ 5, −5 (mod 12),
p p
5 5
= 1 ⇐⇒ p ≡ 1, −1 (mod 5), = −1 ⇐⇒ p ≡ 2, −2 (mod 5).
p p
As 5 ∧ 12 = 1, there exist 8 cases, all possible, which give
15
= 1 ⇐⇒ p ≡ ±1, ±7, ±11, ±17 (mod 60).
p
For instance, the primes 2, 7, 11, 17, 43, 53, 59, 61, 67, 137, . . . are suitable.
20
Ex. 5.17 Supply the details to the proof of Proposition 5.2.1 and to the corollary to
the lemma following it.
Proposition 5.2.1
Then P(1) ⇐⇒ (r1 − 1)/2 ≡ (r1 − 1)/2 (mod 2) is true, and P(2) is part (a) of the
lemma. If we make the induction hypothesis P(m), then
m+1
X m
X
(ri − 1)/2 = (ri − 1)/2 + (rm+1 − 1)/2
i=1 i=1
≡ (r1 r2 · · · rm − 1)/2 + (rm+1 − 1)/2 (mod 2)
≡ (r1 r2 · · · rm rm+1 − 1)/2 (mod 2),
where the last congruence is a consequence of the part (a) of the Lemma : the induction
is completed, and P(m) is true for all m ≥ 1.
The proof of part (b) is similar.
21
Ex. 5.18 Let D be a square-free integer that is also odd and positive. Show that there
is an integer b prime to D such that (b/D) = −1.
P
Ex. 5.19 Let D be as in Exercise 18. Show that (a/D) = 0, where the sum is over
a reduced residue system modulo D. Conclude that exactly one half of the elements in
U (Z/DZ) satisfy (a/D) = 1.
Proof. Let b such that (b/D) = −1 and b ∧ D = 1 : the existence of b comes from Ex
5.18. P
Let S = a∈A (a/D), where A is reduced residue system modulo D. As two reduced
system modulo D represent the same elements in U (Z/DZ), the sum is independent of
the reduced residue system A : we can write
X
S= (a/D).
a∈U (Z/DZ)
As (b/D) = −1, −S = S, so S = 0.
Since (a/D) = ±1, one half of the elements in U (Z/DZ) satisfy (a/D) = 1, and one
half of the elements in U (Z/DZ) satisfy (a/D) = −1.
Ex. 5.20 (continuation) Let a1 , a2 , . . . , aφ(D)/2 be integers between 1 and D such that
(ai , D) = 1 and (ai /D) = 1. Prove that D is a quadratic residue modulo a prime p 6 | D,
p ≡ 1 (mod 4) iff p ≡ ai (mod D) for some i.
Proof. From Ex. 5.19 we know that there exist exactly φ(D)/2 integers ai between 1
and D such that ai ∧ D = 1 and (ai /D) = 1. So {a1 , . . . , aφ(D)/2 } is the set of all
a ∈ U (Z/DZ) such that (a/D) = 1.
Let D = p1 p2 · · · pk , with distinct pi , and p a prime number, p ≡ 1 (mod 4), p 6∈
{p1 , . . . , pk } (so p = 4k + 1, k ∈ N).
22
(⇐) Suppose that p ≡ ai for some i, 1 ≤ i ≤ φ(D)/2, then (p/D) = (ai /D) = 1, so
(Prop. 5.2.2)
D p−1 D−1 p 2k( D−1 ) p p
= (−1) 2 2 = (−1) 2 = = 1.
p D D D
(⇒) Suppose that D is a quadratic residue modulo p. Then (D/p) = 1, so
p p−1 D−1 D
= (−1) 2 2 = 1.
D p
Thus p ∈ {a1 , . . . , aφ(D)/2 } since {a1 , . . . , aφ(D)/2 } is the set of all a ∈ U (Z/DZ) such
that (a/D) = 1. Consequently p ≡ ai (mod D) for some i.
Ex. 5.21 Apply the method of Ex. 5.19 and 5.20 to find those primes for which 21 is
a quadratic residue.
Ex. 5.22 Use the Jacobi symbol to determine (113/997), (215/761), (514/1093), and
(401/757).
23
Ex. 5.23 Suppose that p ≡ 1 (mod 4). Show that there exist integers s and t such
that pt = 1 + s2 . Conclude that p is not a prime in Z[i]. Remember that Z[i] has unique
factorization.
p−1
Proof. As p ≡ 1 (mod 4), then −1
p = (−1)
2 = 1 : −1 is a square modulo p.
So −1 ≡ s (mod p), s ∈ Z : there exist s ∈ Z, t ∈ Z such that pt = 1 + s2 .
2
Ex. 5.24 If p ≡ 1 (mod 4), show that p is a sum of two squares, i.e. p = a2 + b2 with
a, b ∈ Z.(Hint : p = αβ, with α and β being non units in Z[i]. Remember that Z[i] has
unique factorisation.)
Proof. Z[i] is a principal ideal domain, thus p prime is in Z[i] iff p is irreducible in Z[i].
If p ≡ 1 (mod 4), p is not a prime from Ex.5.23, so it is not irreducible :
p = αβ, α, β ∈ Z[i], N (α) > 1, N (β) > 1 (where N (a + bi) = a2 + b2 is the complex
norm).
N (p) = p2 = N (u)N (v), 1 < N (u) < p2
Thus N (u) = p, that is p = a2 + b2 , where u = a + bi.
Conclusion : if p is prime in N, p ≡ 1 (mod 4), then p = a2 + b2 , a, b ∈ Z, p is a sum
of two squares.
Proof. x4 + 4 = (x4 + 4x2 + 4) − 4x2 = (x2 + 2)2 − 4x2 = (x2 + 2 − 2x)(x2 + 2 + 2x), so
Ex. 5.26 This exercise and Ex. 5.27 and 5.28 give Dirichlet’s beautiful proof that 2
is a biquadratic residue modulo p iff p can be written in the form A2 + 64B 2 , where
A, B ∈ Z. Suppose that p ≡ 1 (mod 4). Then p = a2 + b2 by Ex. 5.24. Take a to be odd.
Prove the following statements:
(a) (a/p) = 1.
2 −1)/8
(b) ((a + b)/p) = (−1)((a+b) .
24
(c) (a + b)2 ≡ 2ab (mod p)
a p
= = 1.
p a
25
Ex. 5.27 Suppose that f is such that b ≡ af (mod p). Show that f 2 ≡ −1 (mod p),
and that 2(p−1)/4 ≡ f ab/2 (mod p).
(a+b)2 −1
≡ (f 2 ) 8
p−1 ab
≡f 4 f 2 (mod p)
p−1
a
Since a 2 = p = 1 from Ex. 5.26(a)), then
p−1 p−1 p−1 p−1 p−1
(ab) 4 ≡ (a2 f ) 4 ≡a 2 f 4 ≡f 4 [p],
Ex. 5.28 Show that x4 ≡ 2 (mod p) has a solution for p ≡ 1 (mod 4) iff p is of the
form A2 + 64B 2 .
26
∃A ∈ Z, ∃B ∈ Z , p = A2 + 64B 2 ⇐⇒ (p ≡ 1 [4] and ∃x ∈ Z, x4 ≡ 2 [p]).
Ex. 5.29 Let (RR) be the number of pairs (n, n + 1) in the set 1, 2, 3, . . . , p − 1 such
that n and n + 1 are both quadratic residues modulo p. Let (N R) be the number of pairs
(n, n + 1) in the set 1, 2, 3, . . . , p − 1 such that n is a quadratic nonresidue and n + 1 is a
quadratic residue. Similarly, define (RN ) and (N N ). Determine the sums (RR)+(RN ),
(N R) + (N N ), (RR) + (N R), and (RN ) + (N N ).
1 p−1
(N R) + (N N ) = (p − 2 + (−1) 2 )
2
(the sum of these two results is indeed p − 2 = |E|).
• As 1 is a residue, (RR) + (N R) is the number of residues in [1, p − 1], minus 1 :
p−1
(RR) + (N R) = − 1.
2
• (RN ) + (N N ) is the number of nonresidues in [2, p − 1], equal to the number of
residues in [1, p − 1] :
p−1
(RN ) + (N N ) = .
2
27
Ex. 5.30 Show that (RR) + (N N ) − (RN ) − (N R) = p−1
P
n=1 (n(n + 1)/p). Evaluate
this sum and show that it is equal to −1. (Hint : The result of Exercise 8 is useful.)
This sum can be written S = n∈F∗p ((2n + 1)2 − 1)/p) = n∈Fp ((2n + 1)2 − 1)/p), since
P P
X (2n + 1)2 − 1 X y 2 − 1
= (y = 2n + 1).
p p
n∈Fp y∈Fp
Ex. 5.31 Use the results of Exercises 29 and 30 to show that (RR) = 14 (p − 4 − ε),
where ε = (−1)(p−1)/2
28
Proof. To summarize the results of the Ex. 5.29 and 5.30,
(a)(RR) + (RN ) + (N R) + (N N ) = p − 2
(b)(RR) + (N N ) − (RN ) − (N R) = −1
and
1 p−1
(c)(RR) + (RN ) = p − 2 − (−1) 2
2
p−1
(d)(RR) + (N R) = −1
2
Q(p−1)/2
Ex. 5.32 If p is an odd prime, show that (2/p) = j=1 2 cos(2πj/p). Use this to
give another proof to Proposition 5.1.3.
p−1
Y
P = ζ 0 ζ −1 · · · ζ −(p−1) (ζ 2j + 1)
j=0
p−1
Y
= (ζ p )−(p−1)/2 (ζ 2j + 1)
j=0
p−1
Y
= (ζ 2j + 1)
j=0
29
since f : Fp → Fp , x 7→ 2x is a bijection. So
p−1
Y
P = (ζ k + 1).
k=0
p−1
Y p−1
Y
P = 2 cos(2πj/p) = (ζ k + 1) = 2,
j=0 k=0
so
p−1
Y
2 cos(2πj/p) = 1.
j=1
p−1
Y
1= 2 cos(2πj/p)
j=1
(p−1)/2 p−1
Y Y
= 2 cos(2πj/p) 2 cos(2πj/p)
j=1 j=(p+1)/2
(p−1)/2 (p−1)/2
Y Y
= 2 cos(2πj/p) 2 cos(2π − 2πk/p) (k = p − j)
j=1 k=1
As cos(2π − α) = cos(α),
2
(p−1)/2 (p−1)/2
Y Y
1= 2 cos(2πj/p) , so 2 cos(2πj/p) = ±1
j=1 j=1
30
If p ≡ −1 [8], p = 8q − 1, q ∈ N∗ .
Ex. 5.33 Use Proposition 5.3.2 to derive the quadratic character of −1.
Proof. Let f (z) = e2πiz − e−2πiz . If p is an odd prime, a ∈ Z, and p - a, we know from
Prop. 5.3.2 that
(p−1)/2 (p−1)/2
Y la a Y l
f = f .
p p p
l=1 l=1
31
Proof. Let p an odd prime number, p 6= 3 and ζ = e2iπ/p .
2
ζ j − ζ −j
2 2πj
3 − 4 sin =3−4
p 2i
= 3 + ζ 2j + ζ −2j − 2
= 1 + ζ 2j + ζ −2j
4πj
= 1 + 2 cos
p
Then
Y
1 + ζ 2j + ζ −2j
P =
j∈F∗p
Y
= 1 + ζ k + ζ −k (k = 2j)
k∈F∗p
p−1
Y
P = ζ −k 1 + ζ k + ζ 2k
k=1
p−1 Qp−1
Y
−k (1 − ζ 3k )
= ζ Qk=1
p−1 k
k=1 k=1 (1 − ζ )
p−1
Y
2 2πj
1= 3 − 4 sin
p
j=1
(p−1)/2 p−1
Y
2 2πj Y
2 2πj
= 3 − 4 sin 3 − 4 sin
p p
j=1 j=(p+1)/2
(p−1)/2 (p−1)/2
Y
2πj 2 2π(k − j)
Y
2
= 3 − 4 sin 3 − 4 sin (k = p − j)
p p
j=1 k=1
2
(p−1)/2
Y 2πj
= 3 − 4 sin2
p
j=1
Q(p−1)/2
So j=1 3 − 4 sin2 2πj
p = ±1.
Let ν the number of negative factors in this product.
32
If 1 ≤ j ≤ (p − 1)/2, then 0 < 4πj/p < 2π.
4πj 4πj 2π
1 + 2 cos < 0 ⇐⇒ cos < cos
p p 3
2π 4πj 4π
⇐⇒ < <
3 p 3
p p
⇐⇒ <j<
6 3
p
⇐⇒ < 3j < p
2
Let µ the number of integers j, 1 ≤ j ≤ (p − 1)/2 such that their least remainder is
negative. Since 3 ≤ 3j ≤ 3(p − 1)/2 and 3j 6= p/2, these j are such that p2 < 3j < p, so
µ = ν. Therefore
(p−1)/2
Y
2 2πj ν µ 3
3 − 4 sin = (−1) = (−1) = .
p p
j=1
Ex. 5.35 Use the preceding exercise to show that 3 is a square modulo p iff p is
congruent to 1 or −1 modulo 12.
Proof. We know from Ex. 5.34 that ν = Card {j ∈ [1, (p − 1)/2] | p/2 ≤ 3j < p} = µ.
Therefore ν is the number of j such that p/6 ≤ j < p/3, so ν = bp/3c − bp/6c.
If p = 12k + 1, ν = bp/3c − bp/6c = 4k − 2k = 2k : (3/p) = (−1)ν = 1
If p = 12k + 5, ν = bp/3c − bp/6c = 4k + 1 − 2k = 2k + 1 : (3/p) = (−1)ν = −1
If p = 12k − 5, ν = bp/3c − bp/6c = 4k − 2 − (2k − 1) = 2k − 1 : (3/p) = (−1)ν = −1
If p = 12k − 1, ν = bp/3c − bp/6c = 4k − 1 − (2k − 1) = 2k : (3/p) = (−1)ν = −1
3 is a square modulo p (p 6= 2, p 6= 3) iff p is congruent to 1 or −1 modulo 12.
Ex. 5.36 Show that part (c) of Proposition 5.2.2 is true if a is negative and b is positive
(both still odd).
As said by Adam Michalik, the Jacobi symbol ab only defined for positive b, so the
To give sense to this question, we must substitute the Kronecker symbol to the Jacobi
symbol. The Kronecker symbol (not defined in Ireland-Rosen) is the usual extension
of Jacobi symbol (see for instance [Henri Cohen] A course in computational algebraic
number theory, [Henri Cohen] Number theory (vol. 1), or [Harvey Cohn] Advanced
number theory).
We define Kronecker (or Kronecker-Jacobi) symbol ab for any a and b in Z in the
following way.
Q
(2) For b 6= 0, write b = p, where the p are not necessarily distinct primes (including
2), or p = −1 to take care of the sign. Then we set
Y
a a
= ,
b p
33
a
where p is the Legendre symbol defined above for p > 2, and where we define
(
a 0 if a is even
= 2
2 (−1)(a −1)/8 if a is odd,
and also (
a 1 if a ≥ 0
=
−1 −1 if a < 0
Proof. Suppose a < 0, b > 0, both odd. Let a = −A, A > 0, A = p1 p2 · · · pk , where the
pi are not necessarily distinct primes. Then
a b −A b
=
b a b −A
−A −1 A (b−1)/2 A
= = (−1)
b b b b
b b b b b
= ··· =
−A −1 p1 pk A
b−1
[1+ −a−1 ]
= (−1) 2 2
b−1 1−a
= (−1) 2 2
b−1 a−1
= (−1) 2 2
So the law of quadratic reciprocity remains valid for the Kronecker symbol when a is
negative (b > 0, a, b both odd).
Ex. 5.37 Show that if a is negative, then p ≡ q (mod 4a), p - a implies (a/p) = (a/q).
Proof. Write a = −A, A > 0. As p ≡ q (mod 4a), we know from Prop. 5.3.3. (b) that
(A/p) = (A/q).
Moreover,
a −A (p−1)/2 A
= = (−1)
p p p
a −A A
= = (−1(q−1)/2
q q q
so (a/p) = (a/q).
34
Ex. 5.38 Let p be an odd prime. Derive the quadratic character of 2 modulo p by
verifying the following steps, involving the Jacobi symbol:
2 8−p p 8 2
= = = = .
p p p−8 p−8 p−8
Generalize the argument to show that
a a
= , a > 0, p - a.
p p − 4a
As p and 8 − p are odd numbers and p > 0, from the extension of the law of quadratic
reciprocity to a < 0 proved in Ex. 5.36, we obtain
8−p 7−p p−1 p
= (−1) 2 2 .
p 8−p
Moreover
As p = 2k + 1 is odd, p2 = 4k 2 + 4k + 1 = 8 k(k+1)
2 + 1 ≡ 1 (mod 8), so (7 − p)(p − 1) ≡ 0
(mod 8) and 7−p 2
p−1
2 is even, so
8−p p
= .
p 8−p
p p p p p
As p > 0, −1 = 1, thus 8−p = −1 p−8 = p−8 (with the same argument, this is
also true for the 3 odd primes such that 8 − p > 0), so
8−p p
= .
p p−8
p 8 8 2
, and since 8 = 22 × 2, p−8
As p ≡ 8 (mod p − 8), p−8 = p−8 = p−8 . We have
proved for all odd primes p that
2 8−p p 8 2
= = = = .
p p p−8 p−8 p−8
The preceding arguments remain valid if we replace the odd prime p by any odd
positive integer. So with an immediate induction, we see that for all k ∈ N,
2 2
= .
p p − 8k
35
So the quadratic character
of 2 modulo p depends only of the class of p modulo 8.
If p ≡ 1 (mod 8), p2 = 21 = 1.
If p ≡ −1 (mod 8), p2 = −1 2
= 1.
2 2
If p ≡ ±3 (mod 8), p = ±3 = −1.
Generalization : let a > 0 and p an odd positive integer such that p ∧ a = 1 (not
necessarily prime).
a 4ap 4a − p 4a−p−1 p−1 p
= = = (−1) 2 2 .
p p p 4a − p
(4a − p − 1)(p − 1) = 4a(p − 1) + 1 − p2 ≡ 0 (mod 8), so
a p
= .
p 4a − p
p
As −1 = 1,
p p
= .
4a − p p − 4a
Since p ≡ 4a (mod p) − 4a, and 4 is a square,
p 4a a
≡ = .
p − 4a p − 4a p − 4a
We have proved
a 4a − p p 4a a
= = = = .
p p p − 4a p − 4a p − 4a
4a.
Chapter 6
√ √
Ex. 6.1 Show that 2 + 3 is an algebraic integer.
√ √ √
Proof. Let x = 2√+ 3. Then x2 = 5 + 2 6.
(x2 − 5)2 = (2 6)2 = 24, so x4 − 10x2 + 1 = 0 : x is an algebraic integer.
Ex. 6.2 Let α be an algebraic number. Show that there’s an integer n such that nα is
an algebraic integer.
(0 is a valid answer to this sentence ! More seriously, we search a positive integer n.)
ann αn + an−1
n an−1 α
n−1
+ · · · + ann−1 ak αk + · · · + ann−1 a0 = 0.
36
So
(an α)n + an−1 (an α)n−1 + · · · + ann−k−1 ak (an α)k + · · · + an−1
n a0 = 0.
n−1
Soit p(x) = xn + an−k−1 ak xk . Then p(x) ∈ Z[x], p(x) is monic, and p(an α) = 0.
P
n
k=0
So an α is an algebraic integer, with m = an ∈ N∗ .
Conclusion : if α is an algebraic number, there exists an integer m > 0 such that mα
is an algebraic integer.
Ex. 6.3 If α and β are algebraic integers, prove that any solution to f (x) = x2 + αx +
β = 0 is an algebraic integer. Generalize this result.
αn + r1 αn−1 + · · · + rn = 0, ri ∈ Z,
β m + s1 β m−1 + · · · + sm = 0, sj ∈ Z.
Let V the set of linear combinations with integer coefficients of
γ(αi β j ) = αi β j γ ∈ V
γ(αi β j γ) = αi β j γ 2 = αi β j (−αγ − β) = −αi+1 β j γ − αi β j+1 ∈ V.
n−1
(if i + 1 = n, we replace αi+1 = αn by − rk αn−k , and a similar replacement if if
P
k=1
j + 1 = m.)
As for each x ∈ V , where V if a finitely generated Z-module, xγ ∈ V , so γ is an
algebraic integer (Proposition 6.1.4).
More generally, if γ n + α1 γ n−1 + · · · + αn = 0, where the αi are algebraic integers,
then x is an algebraic integer.
Ex. 6.4 A polynomial f (x) ∈ Z[x] is said to be primitive if the greatest common divisor
of its coefficients is 1. Prove that product of primitive polynomials is also primitive.
Solution 1
Pn+m
ck xk . Then ck =
P
Let p(x)q(x) = k=0 ai bj , k = 0, . . . n + m. Then
i+j=k
X
ci0 +j0 = ai bj .
i+j=i0 +j0
37
• If i < i0 , then ai ≡ 0 (mod p).
• If i > i0 , then j < j0 and bj ≡ 0 (mod p).
In the two cases ai bj ≡ 0 (mod p), so ci0 +j0 ≡ ai0 bj0 (mod p), so cj0 6≡ 0 (mod p) :
as it’s true for all primes p, the polynomial p(x)q(x) is primitive.
Solution 2
Proof. Let
Z[x] → Fp [x]
ϕ:
p(x) = a0 + · · · + an xn 7→ p(x) = a0 + · · · + an xn ,
Ex. 6.5 Let α be an algebraic integer and f (x) ∈ Q[x] be the monic polynomial of least
degree such that f (α) = 0. Use Exercise 6.4 to show that f (x) ∈ Z[x].
Proof. As α is an algebraic integer, there exists a monic polynomial h(x) ∈ Z[x] such
that h(α) = 0. As f (x) ∈ Q[x] is the minimal polynomial of α, and h(α) = 0, f (x)
divides h(x) in Q[x].
(quick reminder : h(x) = q(x)f (x) + r(x), q(x), r(x) ∈ Q[x], deg(r(x)) < deg(f (x))
or r(x) = 0. As r(α) = 0 and f (x) ∈ Q[x] is the monic polynomial of least degree such
that f (α) = 0, r = 0 so f (x) | h(x)).
So there exists g(x) ∈ Q[x] such that h(x) = f (x)g(x). As h(x), f (x) are both monic,
g(x) is also monic.
Let d ∈ Z, d 6= 0 such that df (x) = m i
P
i=0 ai x ∈ Z[x], and c = a1 ∧ a2 ∧ · · · ∧ am ,
c
ai = cbi , with b1 ∧ b2 ∧ · · · ∧ bm = 1, so f (x) = d f1 (x), with f1 is primitive. Similarly
g(x) = st g1 (x), s, t ∈ Z, g1 (x) primitive.
Pr So h(x) = cs u
dt f1 (x)f2 (x) = v f1 (x)f2 (x), where u∧v = 1. The polynomial f1 (x)f2 (x) =
k
k=0 ck x is primitive (Ex. 6.4). As vh(x)(x) = uf1 (x)f2 (x), v | uck , and u ∧ v = 1,
thus v | ck , k = 0, 1, . . . , r. As c1 ∧ · · · ck = 1, v | 1, so v = ±1. h(x) = uf1 (x)f2 (x)
is monic, thus u = 1, and f1 , f2 are monic. From f (x) = dc f1 (x) we deduce dc = 1 and
f (x) = f1 (x) ∈ Z[x].
Conclusion : if f (x) is the minimal polynomial of an algebraic integer α, f ∈ Z[x].
Ex. 6.6 Let x2 + mx + n ∈ Z[x] be irreducible, and α be a root. Show that Q[α] =
{r + sα : r, s ∈ Q} is a ring (in√fact, it is a field). Let m2 − 4n = D02 D, where D is
square-free. Show that Q[α] = Q[ D].
Q[α] = {z ∈ C | ∃r ∈ Q, ∃s ∈ Q, z = r + sα}.
38
• Q[α] ⊂ C, where (C, +, ×) is a field. 1 ∈ Q[α] (1 = P0 (α), where P0 is the constant
polynomial 1).
• Let β, γ ∈ Q[α] : β = P (α), γ = Q(α), where P, Q are in Q[x]. Then α − β =
P (α) − Q(α) = R(α), where R = P − Q ∈ Q[x], and αβ = P (α)Q(α) = S(α), where
S = P Q ∈ Q[x]. So α − β ∈ Q[α], αβ ∈ Q[α]. So Q[α] is a subring of (C, +, ×).
• Let β = P (α) ∈ Q[α], P ∈ Q[x] and β 6= 0. As β 6= 0, Q = x2 + mx + n - P .
Let D ∈ Q[x] such that D | P, D | Q. As Q is irreducible by hypothesis, D = λ or
D = λQ, λ ∈ C∗ (D is an associate of 1 or Q). If D = λQ, then Q | D, and D | P , so
Q | P . Since Q(α) = 0, this implies β = P (α) = 0, in contradiction with the definition
of β. So D = λ | 1. Therefore P ∧ Q = 1.
From Bézout’s theorem, there exist polynomials U, V ∈ Q[x] such that U P +V Q = 1.
As Q(α) = 0, U (α)P (α) = 1 and γ = U (α) ∈ Q[α] is such that γβ = 1. Therefore Q[α]
is a subfield of (C, +, ×) (and Q(α) = Q[α]).
As x2 + mx + n is irreducible, ∆ = m2 − 4n 6= 0 (if not, x2 + mx + n = (x +
m/2)2 − (m2 − 4n)/4 = (x + m/2)2 is not irreducible). So ∆ ∈ Z \ {0} can be written
∆ = m2 − 4n =√D02 D, where D is square-free (positive or negative), D 6= 0, D0 6= 0.
√ √ √
α = −m + ε ∆
, ε = ±1, so α = − m
+ εD 0 2
D
, thus α ∈ Q[ D] and Q[α] ⊂ Q[ D].
2 √2 2 √
As D0 6= 0, D = ε 2α+m D0 ∈ Q[α], so Q[ D] ⊂ Q[α)] :
√
Q[α] = Q[ D].
Ex.√ 6.7 (continuation) If√D ≡ 2, 3 (mod 4), show that all the algebraic integers in
Q[ D] have the form a√+ b D, where a, b ∈ Z. If D √ ≡ 1 (mod 4), show that all the
algebraic integers in Q[ D] have the form a + b((−1 + D)/2), where a, b ∈ Z.
Proof. (We write Z the ring of algebraic integers in C, and OK (or ZK ) the ring of
algebraic integers√in the field K.) √
If D = 1, Q[ D] = Q. If D 6= 1, as D is square-free, D is not a square, so D is
irrational. √ √ √
Let γ = r + s D ∈ Q[ D] (r, s ∈ Q) an algebraic integer of Q[ D] (D ∈ Z, D
square-free). (γ − r)2 = s2 D, so γ 2 − 2rγ + r2 − Ds2 = 0. γ is a root of
2r ∈ Z, r2 − Ds2 ∈ Z.
39
Then
2a a2 − Db2
n= ∈ Z, m= ∈ Z.
d d2
As D is square-free, D ≡
6 0 (mod 4).
Ex. 6.8 Let ω = e2πi/3 , ω satisfies x3 − 1 = 0. Show that (2ω + 1)2 = −3, and use this
to determine (−3/p) by the method of section 2.
40
From Prop. 6.1.6,
αp = (2ω + 1)p
≡ 2p ω p + 1 (mod p)
p
≡ 2ω + 1 (mod p)
−3
• If p ≡ 0 (mod 3), p = 0.
• If p ≡ −1 (mod 3),
αp ≡ 2ω p + 1 (mod p)
2
≡ 2ω + 1 = 2(−1 − ω) + 1 = −2ω − 1 = −α (mod p).
−3
α ≡ −α (mod p), thus −3 α ≡ −α2 (mod p), −3
2
p p p 3 ≡ −3 (mod p). As
−3 −3 −3
p ∧ 3 = 1, p ≡ −1 (mod p). Since p = ±1, p = −1.
Conclusion :
−3
p ≡ 0[3] ⇐⇒ =0
p
−3
p ≡ 1[3] ⇐⇒ =1
p
−3
p ≡ −1[3] ⇐⇒ = −1
p
p
In other words, −3
p = 3 .
Note : α = 2ω + 1 = ω − ω 2 = g, the quadratic Gauss sum for p = 3.
Ex. 6.9 Verify Proposition 6.3.2 explicitly for p = 3, 5, i.e., write out the Gauss sum
longhand and square.
• p=3. Let ω = e2iπ/3 . Let g = 2t=0 (t/3)ω t the quadratic Gauss sum. Then
P
Proof.
g = ω − ω2.
As 1 + ω + ω 2 = 0, g 2 = (ω − ω 2 )2 = ω 2 − 2ω 3 + ω 4 = ω 2 − 2 + ω = −3 :
g 2 = −3.
Then g = α − β, where α = ζ + ζ 4 , β = ζ 2 + ζ 3 .
α + β = ζ + ζ 4 + ζ 2 + ζ 3 = −1.
αβ = ζ 3 + ζ 4 + ζ 6 + ζ 7 = ζ 3 + ζ 4 + ζ + ζ 2 = −1
41
So α, β are the two roots of x2 + x − 1.
g 2 = (α − β)2
= α2 + β 2 − 2αβ
= (α + β)2 − 4αβ
= (−1)2 − 4(−1)
= 5.
Pp−1
Ex. 6.10 What is a=1 ga ?
42
Ex. 6.12 Write ψa (t) = ζ at . Show that
ψa (t) = ζ at = ζ −at
= ζ a(−t) = ζ (−a)t
= ψa (−t) = ψ−a (t)
1X
ψa (t − s) = δ(t, s).
p a
Ex. 6.13 Let f be a function from Z to the complex numbers. Suppose that p is a
prime and that f (n + p) = f (n) for all n ∈ Z. Let fˆ(a) = p−1 t f (t)ψ−a (t). Prove that
P
f (t) = a fˆ(a)ψa (t). This result is directly analogous to a result in the theory of Fourier
P
series.
p−1
X p−1
X p−1
X
−1
fˆ(a)ψa (t) = p f (s)ψ−a (s)ψa (t)
a=0 a=0 s=0
p−1
X p−1
X
−1
=p f (s) ψ−a (s)ψa (t)
s=0 a=0
p−1
X p−1
X
= p−1 f (s) ψa (t − s)
s=0 a=0
p−1
X
= f (s)δ(s, t)
s=0
= f (t)
Ex. 6.14 In Ex. 13 take f to be the Legendre symbol and show that fˆ(a) = p−1 g−a .
Pp−1 t −at
Proof. Here f (a) = ap . Then fˆ(a) = p−1 t=0 = p−1 g−a .
p ζ
43
Ex. 6.15 Show that
m
X t √
< p log p.
p
t=n
The inequality holds for the sum over any range.
Lemma. If 0 ≤ x ≤ π2 , sin x ≥ π2 x.
Proof. As − sin is a convex function on [0, π/2], the graph of sin is above any chord, and
the chord between the points (0, 0) and (π/2, 1) has equation y = (2/π)x, we conclude
that sin x ≥ π2 x for 0 ≤ x ≤ π/2.
m √ Pm
t t
P
Proof. Let S = p g with n ≤ m. Then |S| = p p . As (t/p)g = gt ,
t=n t=n
n
X
S= gt
t=m
n Xp−1
X s ts
= ζ
t=m s=0
p
p−1 n
X s ms X (t−m)s
= ζ ζ
p t=m
s=0
p−1 n−m
X s ms X us
= ζ ζ (u = t − m)
p
s=0 u=0
p−1
X s ms ζ (n−m+1)s − 1
= ζ
p ζs − 1
s=1
Pn−m s
ζ us = n − m + 1 and
(since for s = 0, the sum u=0 p = 0). So
p−1 (n+1)s
X s ζ − ζ ms
S=
p ζs − 1
s=1
p−1 n+m+1 n−m+1 −n+m−1
X s ζ 2 s ζ 2 s−ζ 2 s
= s s −s
p ζ2 ζ2 −ζ 2
s=1
p−1 π
X s n+m sin (n − m + 1)s p
= ζ 2 s
p sin s π
s=1 p
Since ps ζ ts depends only of the class of s, we can replace in the preceding calculation
44
As sin is an odd function,
(p−1)/2 π (p−1)/2 π
X
s n+m s sin (n − m + 1)s p X
−s − n+m s sin (n − m + 1)s p
S= ζ 2 + ζ 2 .
p sin s πp p sin s πp
s=1 s=1
Thus
(p−1)/2 (p−1)/2
X p X 1
|S| ≤ 2 =p .
2s s
s=1 s=1
m √
t
P
As S = p g and |g| = p,
t=n
(p−1)/2
m
X t √ X 1
≤ p .
p s
t=n s=1
It remains to do a sufficient estimation of the harmonic sum. We prove by induction
that for all n ≥ 1,
1 1
1 + + · · · + ≤ log(2n + 1).
2 n
As 1 ≤ log(3), this proposition is true for n = 1. Suppose that is it true for n − 1 :
1 1
1 + + ··· + ≤ log(2n − 1).
2 n−1
Then
1 1 1
1 + + · · · + ≤ + log(2n − 1).
2 n n
If we prove that n1 + log(2n − 1) ≤ log(2n + 1), the induction is done.
Let u(x) = log(2x + 1) − log(2x − 1) − x1 , x > 12 .
2 2 1
u0 (x) = − + 2
2x + 1 2x − 1 x
−4 1
= 2 +
4x − 1 x2
−1
= <0
(4x − 1)x2
2
2x+1
As u(x) = log 2x−1 − x1 , lim u(x) = 0. Moreover u is a decreasing function, so for
x→+∞
all x > 1/2, u(x) > 0, and for all n ∈ N, n ≥ 1,
1
+ log(2n − 1) ≤ log(2n + 1).
n
We have proved by induction that for all n ≥ 1,
1 1
1 + + · · · + ≤ log(2n + 1).
2 n
If n = (p − 1)/2, where p is an odd prime (p ≥ 3),
(p−1)/2
X 1
≤ log p.
s
s=1
Conclusion :
m
X t √
< p log p.
p
t=n
45
Ex. 6.16 Let α be an algebraic number with minimal polynomial f (x). Show that f (x)
does not have repeated roots in C.
Ex. 6.18 Show that there exist algebraic numbers of arbitrarily high degree.
αβ = ζ 3 + ζ 4 + ζ 6 + ζ 7 = ζ 3 + ζ 4 + ζ + ζ 2 = −1
So α, β are the two roots of x2 + x − 1 :
α2 + α − 1 = 0, so 4(α/2)2 + 2(α/2) − 1 = 0 : γ = α/2 is a root of
f (x) = 4x2 + 2x − 1.
46
Ex. 6.21 Let f (x) = ∞
P n
P∞ n
n=0 an x /n! and g(x) = n=0 bn x /n! be power series with
an and bn integers. If p is a prime such Pthat p|ani for i = 0, . . . , p − 1, show that each
coefficient ct of the product f (x)g(x) = ∞ n=0 cn x for t = 0, . . . , p − 1 may be written in
the form p(A/B), p 6 |B.
Proof. Let k ∈ N, 0 ≤ k ≤ p − 1.
X ai bj
ck =
i! j!
i+j=k
k
X ai bk−i
=
i! (k − i)!
i=0
k
1 X k
= ai bk−i
k! i
i=0
ck = p(A/B), p ∧ B = 1.
Ex. 6.22 Show that the relation ε ≡ 1 (mod p) in Proposition 6.4.4 can also be
achieved by replacing x by 1 + t instead of ez .
Then f (0) = 0 and f (ζ) = 0, so (xp − 1) divides f (x). As f (x) ∈ Z[x] and xp − 1 ∈ Z[x]
is monic, f (x) = (xp − 1)h(x), h(x) ∈ Z[x]. If we replace x by 1 + t, we obtain
p−1 (p−1)/2
X Y
j
f (1 + t) = χ(j)(1 + t) − ε (1 + t)2k−1 − (1 + t)p−(2k−1) .
j=1 k=1
47
p−1 p−1
j
So the coefficient of t(p−1)/2 in χ(j)(1 + t)j is
P P
χ(j) (p−1)/2 .
j=1 j=(p−1)/2
(p−1)/2 (p−1)/2
Y Y
2k−1 p−(2k−1)
(1 + (2k − 1)t) − (1 + (p − (2k − 1))t + t2 u(t)
((1 + t) − (1 + t) )=
k=1 k=1
(p−1)/2
Y
(4k − 2 − p)t + t2 v(t)
=
k=1
(p−1)/2
Y
= t(p−1)/2 (4k − 2 − p) + t(p+1)/2 w(t),
k=1
p−1 (p−1)/2
X j Y
c(p−1)/2 = χ(j) −ε (4k − 2 − p).
(p − 1)/2
j=(p−1)/2 k=1
Furthermore,
p p!
where a0 = 0, ai = i! = (p−i)!
i , so p | ai , i = 0, . . . , p − 1 : the conditions of Ex.21 are
Pp−1 i
verified, so f (1 + t) = i=0 ci t is such that c(p−1)/2 = p(A/B), p - B. Equating these
two evaluations of c(p−1)/2 , we obtain
p−1 (p−1)/2
X j Y A
χ(j) −ε (4k − 2 − p) = p , p - B.
(p − 1)/2 B
j=(p−1)/2 k=1
p−1 (p−1)/2
(p − 1)! X j (p − 1)! Y
χ(j) ≡ε (4k − 2)
2 (p − 1)/2 2
j=(p−1)/2 k=1
(p−1)/2
Y
≡ ε(2 · 4 · 6 · · · (p − 1)) (2k − 1) ≡ ε(p − 1)!
k=1
≡ −ε (mod p)
48
To prove that ε = +1, it remains to prove
p−1
(p − 1) X j
! χ(j) ≡ −1 (mod p)
2 (p − 1)/2
j=(p−1)/2
j
The factor of ((p − 1)/2)! cancels the denominator of (p−1)/2 , which leaves
p−1
X p−1
χ(j) · j(j − 1) · · · (j − + 1)
2
j=(p−1)/2
p−1
X p−1
= χ(j) · j(j − 1) · · · (j − + 1).
2
j=1
The equality is justified because all terms for j < p−1 2 are zero. Collecting powers of j,
this is
p−1 (p−1)/2 (p−1)/2 p−1
X X X X p−1
χ(j) ak j k ≡ ak j k+ 2 (mod p)
j=1 k=0 k=0 j=1
Congruence holds because gj also runs over a complete system of nonzero residues mod
p. If g n 6≡ 1, then S ≡ 0. If g n ≡ 1, then j n ≡ 1 for all j, hence S ≡ p − 1 ≡ −1.
Returning to the previous sum, the only nonzero term modulo p is k = p−1 2 , so
(p−1)/2 p−1
X X p−1
≡ ak j k+ 2 ≡ a(p−1)/2 · (−1) = −1 (mod p)
k=0 j=1
as desired.
49
Let g(x) = εup(x), h(x) = q(x).Then g, h ∈ Z[x], deg(g) ≥ 1, deg(h) ≥ 1, and f = gh
is the product of two non constant polynomials in Z[x].
50