This site is supported by donations to The OEIS Foundation.

Legendre symbol

From OeisWiki
Jump to navigationJump to search


This article page is a stub, please help by expanding it.


The Legendre symbol (ap), introduced by Adrien-Marie Legendre in 1798, is a multiplicative arithmetic function that gives 0 if a is divisible by the odd prime p, otherwise gives –1 if a is a quadratic nonresidue modulo p and +1 if a is a quadratic residue modulo p.

(ap)={1 if a is a quadratic nonresidue modulo p,0 if a0(modp),1 if a is a quadratic residue modulo p and a≢0(modp).

Two examples:

(47)=1
(57)=1

See also