Quadratic residue
Jump to navigation
Jump to search
In modular arithmetic, a quadratic residue for the modulus N is a number which can be expressed as the residue of a2 modulo N for some integer a. A quadratic non-residue of N is a number which is not a quadratic residue of N.
Legendre symbol
When the modulus is a prime p, the Legendre symbol Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left(\frac{a}{p}\right)} expresses the quadratic nature of a modulo p. We write
- if p divides a;
- if a is a quadratic residue of p;
- if a is a quadratic non-residue of p.
The Legendre symbol is multiplicative, that is,
References
- G. H. Hardy; E. M. Wright (2008). An Introduction to the Theory of Numbers, 6th ed. Oxford University Press. ISBN 0-19-921986-9.