Legendre symbol
From Exampleproblems
The Legendre symbol is used by mathematicians in the area of number theory, particularly in the fields of factorization and quadratic residues. It is named after the French mathematician Adrien-Marie Legendre.
Definition
The Legendre symbol is a special case of the Jacobi symbol. It is defined as follows:
If p is an odd prime number and a is an integer, then the Legendre symbol, denoted by
is:
- 0 if p divides a
- 1 if a is a square modulo p — that is to say there exists an integer k such that k2 ≡ a (mod p), or in other words a is a quadratic residue modulo p
- −1 if a is not a square modulo p, or in other words a is not a quadratic residue modulo p</u>
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 a ≡ b (mod p), then
, i.e. = 1 if p ≡ 1 (mod 4) and = −1 if p ≡ 3 (mod 4)
, i.e. = 1 if p ≡ 1 or 7 (mod 8) and = −1 if p ≡ 3 or 5 (mod 8)
- If q 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 may both be proved from Gauss's lemma.
The Legendre symbol is related to Euler's criterion and Euler proved that
Additionally, the Legendre symbol is a Dirichlet character.
Related functions
The Jacobi symbol is a generalization of the Legendre symbol that allows composite bottom numbers. This generalization provides an efficient way to compute Legendre symbols.de:Legendre-Symbol es:Símbolo de Legendre fr:Symbole de Legendre it:Simbolo di Legendre hu:Legendre-szimbólum pl:Symbol Legendre'a ru:Символ Лежандра sv:Legendresymbolen zh:勒让德符号
