Quadratic residue: Difference between revisions
imported>Richard Pinch (new article, needs more work) |
mNo edit summary |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{subpages}} | |||
In [[modular arithmetic]], a '''quadratic residue''' for the [[modulus]] ''N'' is a number which can be expressed as the residue of ''a''<sup>2</sup> modulo ''N'' for some integer ''a''. A '''quadratic non-residue''' of ''N'' is a number which is not a quadratic residue of ''N''. | In [[modular arithmetic]], a '''quadratic residue''' for the [[modulus]] ''N'' is a number which can be expressed as the residue of ''a''<sup>2</sup> modulo ''N'' for some integer ''a''. A '''quadratic non-residue''' of ''N'' is a number which is not a quadratic residue of ''N''. | ||
Line 11: | Line 12: | ||
:<math>\left(\frac{ab}{p}\right) = \left(\frac{a}{p}\right)\left(\frac{b}{p}\right) . \, </math> | :<math>\left(\frac{ab}{p}\right) = \left(\frac{a}{p}\right)\left(\frac{b}{p}\right) . \, </math> | ||
==Jacobi symbol== | |||
For an odd positive ''n'', the '''Jacobi symbol''' <math>\left(\frac{a}{n}\right)</math> is defined as a product of Legendre symbols | |||
:<math>\left(\frac{a}{n}\right) = \prod_{i=1}^r \left(\frac{a}{p_i}\right)^{e_i} \,</math> | |||
where the prime factorisation of ''n'' is | |||
:<math> n = \prod_{i=1}^r {p_i}^{e_i} . \,</math> | |||
The Jacobi symbol is ''bimultiplicative'', that is, | |||
:<math>\left(\frac{ab}{n}\right) = \left(\frac{a}{n}\right)\left(\frac{b}{n}\right) \, </math> | |||
and | |||
:<math>\left(\frac{a}{mn}\right) = \left(\frac{a}{m}\right)\left(\frac{a}{n}\right) . \, </math> | |||
If ''a'' is a quadratic residue of ''n'' then the Jacobi symbol <math>\left(\frac{a}{n}\right) = +1 </math>, but the converse does not hold. For example, | |||
:<math>\left(\frac{3}{35}\right) = \left(\frac{3}{5}\right)\left(\frac{3}{7}\right) = (-1)(-1) = +1 , \,</math> | |||
but since the Legendre symbol <math>\left(\frac{3}{5}\right) = -1</math>, it follows that 3 is a quadratic non-residue of 5 and hence of 35. | |||
==See also== | |||
* [[Quadratic reciprocity]] | |||
==References== | ==References== | ||
*{{cite book | title= An Introduction to the Theory of Numbers | author=G. H. Hardy | coauthors=E. M. Wright | publisher=Oxford University Press | year=2008 | edition=6th ed | isbn=0-19-921986-9 }} | *{{cite book | title= An Introduction to the Theory of Numbers | author=G. H. Hardy | coauthors=E. M. Wright | publisher=Oxford University Press | year=2008 | edition=6th ed | isbn=0-19-921986-9 }}[[Category:Suggestion Bot Tag]] |
Latest revision as of 16:01, 8 October 2024
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 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,
Jacobi symbol
For an odd positive n, the Jacobi symbol is defined as a product of Legendre symbols
where the prime factorisation of n is
The Jacobi symbol is bimultiplicative, that is,
and
If a is a quadratic residue of n then the Jacobi symbol , but the converse does not hold. For example,
but since the Legendre symbol , it follows that 3 is a quadratic non-residue of 5 and hence of 35.
See also
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.