The Legendre Symbol and Euler’s Criterion

The Legendre symbol records whether a residue is a square over an odd prime field. Euler’s exponent test evaluates it using the multiplicative group.

Source
Anbloq
Language
English
Created
Updated
Chapters
1
Reading time
1 min

For \(a\not\equiv0\bmod p\), write \(a=g^k\) using a primitive root. Squareness is equivalent to even \(k\). The element \(g^{(p-1)/2}\) has order two and equals \(-1\), so raising \(a\) to that power gives the sign.

\[\left(\frac ap\right)\equiv a^{(p-1)/2}\pmod p.\]

A square test at \(13\)

For \(a=5\), \(5^2\equiv-1\bmod 13\), so \(5^6\equiv-1\) and \(5\) is not a square. The rule is multiplicative, making the symbol a quadratic character. Quadratic reciprocity relates the signs when the numerator and denominator are both odd primes.[1]

References

  1. Keith Conrad, Expository Papers on Number Theory and Algebra ↩