For an odd prime , a nonzero class is a quadratic residue when . These residues form an index-two subgroup of .
The congruence is soluble exactly for or . For odd , Fermat's little theorem applied to a prospective root forces even. Conversely, when , pair opposite factors in and use the Wilson theorem to obtain .
For an odd prime , the least quadratic nonresidue is the smallest positive integer whose nonzero residue class is a quadratic nonresidue modulo .
If, for every , the smooth numbers up to with all prime factors at most have density at least , then for fixed there are only primes with . Apply the variance form of the large sieve to the indicator function of the -smooth numbers up to . For every exceptional prime, all these numbers are nonzero quadratic residues, so half its nonzero residue classes are empty. Their variance contribution is at least one third of the square of the total count. The large sieve bounds the sum of contributions by a constant times times that count. The density assumption with finishes the argument.
For and the Legendre symbol , the quadratic Gauss sum isIt equals for and for with the standard choice of square root.
If and are the nonzero square and nonsquare classes modulo eleven and , thenTheir sum is , and their difference is the Quadratic Gauss sum .
For an odd prime ,
Every odd prime factor of an odd square plus four is one modulo four. The integer is five modulo eight, so at least one prime factor is five modulo eight. Choosing the odd square divisible by any proposed finite list excludes the list and proves infinitude.
For an odd prime ,For , write using a primitive root ; then the left side is , which is one exactly when is even and is a square.
For every odd prime,
If listed all primes congruent to seven modulo eight, then for the odd number is seven modulo eight. Every prime factor is one or seven modulo eight, at least one is seven, and none is among the , a contradiction.
Let count primes at most congruent to modulo eight. Bounding the prime-power divisibility ofabove and its size below gives, for all sufficiently large ,
For an integer matrix and prime , the commuting-matrix binomial theorem and divisibility of for give
For , one has when , and for every .
If , the sum of the least positive quadratic residues below isThe proof uses to compare the sum of all residues with its image under doubling.
For , the congruence has a solution exactly when its discriminant is zero or a quadratic residue modulo .
Articles by others on the same topic
A quadratic residue is a concept from number theory, particularly in the study of modular arithmetic.