Macaulay2 » Documentation
Packages » Macaulay2Doc » elementary arithmetic » legendreSymbol
next | previous | forward | backward | up | index | toc

legendreSymbol -- Legendre symbol

Description

Computes the Legendre symbol of $a$ modulo $p$.

i1 : legendreSymbol(4,7)

o1 = 1
i2 : legendreSymbol(5,7)

o2 = -1
i3 : legendreSymbol(14,7)

o3 = 0

Ways to use legendreSymbol:

  • legendreSymbol(ZZ,ZZ)

For the programmer

The object legendreSymbol is a method function.


The source of this document is in /build/reproducible-path/macaulay2-1.26.11+ds/M2/Macaulay2/packages/Macaulay2Doc/operators.m2:126:0.