Quadratic Residue

Definition (Quadratic residue)

The subgroup Fp2\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 Fp2\mathbb{F}_{p}^{*2}. Since gp12≢1(modp)g^{\frac{p-1}{2}}\not\equiv1\pmod{p} and 0gp11(gp121))(gp12+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 gp121(modp)g^{\frac{p-1}{2}}\equiv-1\pmod{p} when gg is a primitive root (modp)\pmod{p} of Fp\mathbb{F}_{p}^{*}. Fp2\mathbb{F}_{p}^{*2} is called the subgroup of squares. We define elements of Fp2\mathbb{F}_{p}^{*2} as quadratic residues.