nonresidues
In number theory, a nonresidue is an integer that is not a quadratic residue. An integer 'a' is a quadratic residue modulo 'n' if there exists an integer 'x' such that x^2 is congruent to 'a' modulo 'n'. If no such 'x' exists, then 'a' is a quadratic nonresidue modulo 'n'. This definition applies when the greatest common divisor of 'a' and 'n' is 1. If gcd(a, n) is not 1, the concept of quadratic residue is sometimes extended, but the standard definition usually requires coprimality.
The concept of nonresidues is particularly important when working with prime moduli. For a prime modulus 'p',
A common tool for determining whether an integer is a quadratic residue or nonresidue modulo a prime
The study of quadratic residues and nonresidues is fundamental to many areas of number theory, including the