Quadratic Residue

Definition (Quadratic residue)

The subgroup Fp∗2\mathbb{F}_{p}^{*2} of Fp∗\mathbb{F}_{p}^{*} (finite field with pp prime) has index 22 and consists of squares. If gg is a primitive root of Fp∗\mathbb{F}_{p}^{*}, then g2g^{2} is a generator of Fp∗2\mathbb{F}_{p}^{*2}. Since gp−12≢1(modp)g^{\frac{p-1}{2}}\not\equiv1\pmod{p} and 0≡gp−1−1≡(gp−12−1))(gp−12+1)(modp)0\equiv g^{p-1}-1\equiv(g^{\frac{p-1}{2}}-1))(g^{\frac{p-1}{2}}+1)\pmod{p} we see that gp−12≡−1(modp)g^{\frac{p-1}{2}}\equiv-1\pmod{p} when gg is a primitive root (modp)\pmod{p} of Fp∗\mathbb{F}_{p}^{*}. Fp∗2\mathbb{F}_{p}^{*2} is called the subgroup of squares. We define elements of Fp∗2\mathbb{F}_{p}^{*2} as quadratic residues.