CH 7 Quadratic reciprocity Flashcards
We have learned how to solve linear congruences:
for instance, 2x ≡ 3 (mod 13).
2x ≡ 3 (mod 13).
Here, since gcd(2, 13) = 1, we have 2a + 13b = 1 for e.g. a = 7, b = −1, hence 2 · 7 ≡ 1
(mod 13), and so 7 · 2x ≡ x ≡ 7 · 3 ≡ 8 (mod 13)
n quadratic equations: can we find a solution of x^2 ≡ 2 (mod 13)?
answer is no (just check all possible values for x!). Only some numbers are congruent to squares modulo 13. Figuring out which ones helps solving other quadratic
congruences too
def 7.1.2
quadratic residue
Fix a, m integers with m >=2
a is a quadratic residue mod m
if there exists x in Z with
x^z≡ a mod m
Otherwise, we call it quadratic
non-residue
e.g quadratic residues mod 8:
0,1,4 mod 8
2,3,5,6 arent QR mod 8
01 QR mod 4
0,1 are always
2 dep on number
example:lecture only
quadratic residues mod 3
mod 5
mod 7
mod 3
0,1 are
2 is not
mod 5 0,1,4 are
2,3 arent
mod 7
0,1,4,2 are
3,5,6 arent
note approx half are
reason
skipped then done
Example 7.1.1. We want to find x such that
2x^2 + x + 1 ≡ 0 (mod 13).
Multiply everything by 7 (because 7x1 congruent to 1 mod 13)
so that the equation becomes
x^2 + 7x + 7 ≡ 0 (mod 13).
Now a trick: replace 7 with 20 (mod 13), so its even and complete the square.
(x+10)^2-100+7 ≡ 0
(x+10)^2-2 ≡ 00 mod 13
problem is that
(2/13)=-1 (legendres) is not a QR
(We find
x^2 + 7x + 7 ≡ x
2 + 20x + 7 = (x + 100)
2 − 100 + 7 ≡ (x + 100)
2 − 2 ≡ 0 (mod 13).
But we have just said that no square is congruent to 2 modulo 13, so the original congruence has no solution.
skipped
Example 7.1.3. Let us compute all possible squares modulo 13 (beyond 0, which is
obviously a quadratic residue):
1^2 ≡ 12^2 ≡ 1, 2^2 ≡ 11^2 ≡ 4, 3^2 ≡ 10^2 ≡ 9,
4^2 ≡ 9^2 ≡ 3, 5^2 ≡ 8^2 ≡ 12, 6^2 ≡ 7^2 ≡ 10.
Hence 1, 3, 4, 9, 10, 12 are quadratic residues modulo 13, and since we have done all
possible squares, 2, 5, 6, 7, 8, 11 are quadratic non-residues
exactly half of them
PROPn
7.1.4
how many quadratic residues?
If p is an odd prime, then half of the numbers in {1, 2, . . . , p − 1} are quadratic residues, and the other half consists of quadratic non-residues.
proof
If p is an odd prime, then half of the numbers in {1, 2, . . . , p − 1} are quadratic residues, and the other half consists of quadratic non-residues.
Proof.
Pick r primitive root of p, Then r^k is a quadratic residue
then r^k congruent to x^2 (due to primitive root)
congruent to (r^l)^2 mod p
this means k congruent to 2l mod p-1
when you use a primitive root, if two powers are congruent mod p then exponents are congruent mod p-1
if p=2 nothing to do
p>2 then k is even
If k is even then
r^k = (r^{k/2})^2 is a quadratic residue
every number between 1 and p-1 is congruent toa power r^k
QR are exactly ones where k is even
so result (p-1_/2
proof
The quadratic residues are the remainders of 1², 2²
, . . . ,(p − 1)² modulo p.
Moreover, each remainder occurs exactly twice, because x
2 ≡ y² (mod p) happens
if and only if
p | (x + y)(x − y)
if and only if
p | (x + y) or p | (x − y), and in the
range {1, 2, . . . , p − 1},
this happens exactly when either x = y or x = p − y (and the
two options are mutually exclusive because p is odd).
Exercise 7.1.5 (⋆⋆, in exercise sheet). Let a, b, c, n be integers with n > 1 and gcd(2a, n) =
1. Show that the congruence ax2 + bx + c ≡ 0 (mod n) has a solution if and only if
b
2 − 4ac is a quadratic residue modulo n.
Verify in particular that all the solutions are of the form e(−b + D), where D2 ≡ b
2 −
4ac (mod n) and 2ae ≡ 1 (mod n) (note the similarity with the usual −b±
√
b
2−4ac
2a
).
sheet
Definition 7.2.1 (The Legendre symbol)
Let p be a prime and a an integer with gcd(a,p)=1
we write
{a}
{_}
{p}
:=
{1 if a is a quadratic residue modulo p,
{1 o/w
keeps track of QR
e.g _ is a primitive root mod 7
3 is
all numbers {1,2,…6} are congruent to the powers of 3
3^1≡3 non QR etc
3^2 ≡2 QR even powers
3^3≡6
3^4≡4 QR
3^5≡5
3^6≡1 QR
Example 7.2.2. Repeating Example 7.1.3, we have
(1)
(-)
(13)
= (1/13) notation here
(1/13)=(3/13)=(4/13)=(9/13)=(10/13)=(12/13)
=1 QR
(2/13)=(5/13)=(6/13)=(7/13)=(8/13)=(11/13)
=-1 NOT
qr mod 7 notation legendres symbol
(1/7) = (4/7) =1
(3/7)=-1 etc not QR
Lemma 7.2.3 for legendres symbols
USING LEGENDRES SYMBOL
Let p be an odd prime and a, b be integers not divisible by p. Then:
(1) if a ≡ b (mod p), then (a/p)=(b/p)
2) (a^2/p)=1
3) (a/p) ≡ a ^ ((p-1)/2) eulers criterion
4) (ab/p)= (a/p)(b/p) multiplicativity
4) product of 2 QR is QR
PROOF 3
USING LEGENDRES SYMBOL
Let p be an odd prime and a, b be integers not divisible by p. Then:
(1) if a ≡ b (mod p), then (a/p)=(b/p)
2) (a^2/p)=1
3) (a/p) ≡ a ^ ((p-1)/2) eulers criterion
4) (ab/p)= (a/p)(b/p) multiplicativity
4) product of 2 QR is QR
1,2 IMMEDIATE
3) Fix r primitive root a≡r^k mpd p for some k
if a quad residue then:
k is even
thus
a ^{(p-1)/2) ≡ (rᵏ)⁽ᵖ⁻¹⁾/²
as k is even
≡ (r⁽ᵖ⁻¹⁾ᵏ/² ≡1
as r⁽ᵖ⁻¹⁾≡1
Flittle thm we dont even use the fact of primitive root
if aᵖ⁻¹⁾ᵏ/² ≡1 1 then (rᵏ)⁽ᵖ⁻¹⁾/² ≡1
then
(p-1)| k (p-1)/2
meaning k is even
so =1 IFF quadratic residue
Final step
Otherwise
(a⁽ᵖ⁻¹⁾/² )² ≡a⁽ᵖ⁻¹⁾≡1
so
a⁽ᵖ⁻¹⁾/²≡+-1
Notes say: fix
Y equal to a ^ ((p-1)/2)
By FLT y^2 congruent to 1 mod p
Thus p divides y^2 -1
So y is congruent to + or -1 mod p
We see which one holds for what scenario :
- if a is a quadratic residue then a congruent to x^2 mod p
Then a^(p-1)/2 congruent to
x^2(p-1)/2 Congruent to
x^(p-1)
Congruent to 1 by FLT
CONVERSELY
suppose
a^(p-1)/2 congruent to 1 mod P
Let r be a primitive root mod p
Then a congruent r^k for some k
So
r^(k(p-1)/2) congruent to 1
Mod p
Thus
P-1 divides k(p-1)/2
So k must be even
But then
a congruent to
r^k
Equals
(r^(k/2) )^2
So is a quadratic residue