Currently there may be errors shown on top of a page, because of a missing Wiki update (PHP version and extension DPL3). |
Navigation
Topics | Help • Register • News • History • How to • Sequences statistics • Template prototypes |
Legendre symbol
The Legendre symbol, named after the French mathematician Adrien-Marie Legendre, is used in connection with factorization and quadratic residues.
Definition
If
is:
- 0 if
divides ; - 1 if
is a square modulo — that is to say there exists an integer such that , or in other words is a quadratic residue modulo ; - −1 if
is not a square modulo , or in other words is not a quadratic residue modulo .
Properties of the Legendre symbol
There are a number of useful properties of the Legendre symbol which can be used to speed up calculations. They include:
(it is a completely multiplicative function in its top argument)- If
, then - If
is an odd prime then
The last property is known as the law of quadratic reciprocity. The properties 4 and 5 are traditionally known as the supplements to quadratic reciprocity.
The Legendre symbol is related to Euler's criterion and Euler proved that