Notes On Quadratic Residues
Notes On Quadratic Residues
Theorem. Let p be an odd prime. Then every reduced residue system mod p contains
exactly ( p 1) / 2 quadratic residues and exactly ( p 1) / 2 quadratic
nonresidues mod p. The quadratic residues belong to the residue classes
containing the numbers
p 1 2
12 , 2 2 ,, ( ) .
2
n
Definition. Let p be an odd prime. We define Legendre’s symbol as follows:
p
n
If n is quadratic residue mod p, 1 .
p
n
If n is quadratic nonresidue mod p, 1 .
p
n
If n 0 (mod p) , 0 .
p
n
Remark: Some authors write (n | p) instead of .
p
1
1 for any odd prime p.
p
a b
if a b (mod p ).
p p
Page 1 of 4
(Euler Criterion) Let p be odd prime. Then for all n we have
n
p1
n 2
(mod p) .
p
p 1
1 1, p 1 (mod 4)
In particular, we have (1) 2
p 1, p 3 (mod 4)
n
Legendre’s symbol is a completely multiplicative function of n. That
p
means for any integers a, b we have
ab a b
.
p p p
( p 1)( q 1)
p q
Equivalently, (1) 4
for all distinct odd primes p and q.
q p
2
83 103 20 2 5 5 83 3
Solution: 1 .
103 83 83 83 83 83 5 5
Page 2 of 4
Jacobi symbol and its properties
r
Definition. If P is a positive odd integer with prime factorization P piai . The
i 1
n
Jacobi symbol is defined for all integers n by the equation
P
ai
n r
n
,
P i 1 pi
n
where is the Legendre symbol.
pi
n
We also define 1 .
1
n
If the congruence x 2 n (mod P) has a solution, we have 1 . However,
P
n
the converse is not true since can be 1 if an even number of factors –1
P
appears.
a2n n
4. whenever (a, P) 1
P P
P P
Page 3 of 4
(Reciprocity law for Jacobi symbol) If P and Q are positive odd integers with
( P, Q) 1, then
P Q
Q P
except when P Q 3 (mod 4) , in which case
P Q
Q P
( P 1)( Q 1)
P Q
Equivalently, (1) 4
.
Q P
P
Remark: for integer P and positive odd integer Q, ( P, Q) 1 0 .
Q
4m 2 1
However, 1 because p 1 (mod 4 ), a contradiction.
p p
Page 4 of 4