For an odd prime , a nonzero class is a quadratic residue when . These residues form an index-two subgroup of .
A quadratic residue is a concept from number theory, particularly in the study of modular arithmetic.
New to topics? Read the docs here!