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

From Prime-Wiki
Jump to: navigation, search

The Legendre symbol, named after the French mathematician Adrien-Marie Legendre, is used in connection with factorization and quadratic residues.

Definition

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

(ap)

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 k2a(modp), 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.

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. (abp)=(ap)(bp) (it is a completely multiplicative function in its top argument)
  2. If ab(modp), then (ap)=(bp)
  3. (1p)=1
  4. (1p)=(1)(p1)/2={1if p1(mod4)1if p3(mod4)
  5. (2p)=(1)(p21)/8={1if p1 or 7(mod8)1if p3 or 5(mod8)
  6. If q is an odd prime then (qp)=(pq)(1)((p1)/2)((q1)/2)

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

(ap)a(p1)/2(modp)

External links