Science  People  Locations  Timeline
Index: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Home > Legendre symbol


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.

1 Definition

The Legendre symbol is a special case of the Jacobi symbol. It is defined as follows:

If p is a prime number and a is an integer, then the Legendre symbol is:

2 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:

  1. (it is a completely multiplicative function in its top argument)
  2. If ab (mod p), then
  3. = 1 if p ≡ 1 (mod 4) and −1 if p ≡ 3 (mod 4)
  4. = 1 if p ≡ 1 or 7 (mod 8) and −1 if p ≡ 3 or 5 (mod 8)
  5. = 1 for all odd a and 0 for all even a
  6. If q is an odd prime then

The last property is known as the law of quadratic reciprocity.

The Legendre symbol is related to Euler's criterion and Euler proved that

Additionally, the Legendre symbol is a Dirichlet character.

3 Related functions

The Jacobi symbol is a generalization of the Legendre symbol that allows composite bottom numbers.

Modular arithmetic

Read more »

Non User