Definition (Quadratic residue)
The subgroup Fp∗2 of Fp∗ (finite field with p prime) has index 2 and consists of squares. If g is a primitive root of Fp∗, then g2 is a generator of Fp∗2. Since g2p−1≡1(modp) and 0≡gp−1−1≡(g2p−1−1))(g2p−1+1)(modp) we see that g2p−1≡−1(modp) when g is a primitive root (modp) of Fp∗. Fp∗2 is called the subgroup of squares. We define elements of Fp∗2 as quadratic residues.