Legendre Symbol

Definition (Legendre symbol)

If pp is an odd prime, and aZa\in\mathbb{Z}, we define the Legendre Symbol, written as (ap)\left( \frac{a}{p} \right) by (ap)={0if pa1if a is a quadratic residue1if a is a non-residue\left( \frac{a}{p} \right)=\begin{cases} 0&\text{if }p|a \\ 1&\text{if }a\text{ is a quadratic residue} \\ -1 & \text{if }a\text{ is a non-residue} \end{cases} There should be no confusion with fractions here. The symbol represents aa over pp.

Remark

Note this equivalence a is a quadratic residue    x2a(modp) is solvablea\text{ is a quadratic residue}\iff x^{2}\equiv a\pmod{p}\text{ is solvable}

Proposition (Properties)

The Legendre Symbol satisfies:

  1. (ap)\left( \frac{a}{p} \right) depends only on the residue of a(modp)a\pmod{p};
  2. (abp)=(ap)(bp)\left( \frac{ab}{p} \right)=\left( \frac{a}{p} \right)\left( \frac{b}{p} \right)
  3. For any bb coprime to pp, we have (ab2p)=(ap)\left( \frac{ab^{2}}{p} \right)=\left( \frac{a}{p} \right)
  4. (1p)=(1)p12\left( \frac{-1}{p} \right)=(-1)^{\frac{p-1}{2}}

Proposition (Euler’s criterion)

ap12(ap)(modp)a^{ \frac{p-1}{2} }\equiv\left( \frac{a}{p} \right)\pmod{p}

Proposition (3)

For a prime p1(mod4)p\equiv1\pmod{4} we have [(p12)!]21(modp)\left[ \left( \frac{p-1}{2} \right)! \right]^{2}\equiv-1\pmod{p} giving an explicit solution to the congruence x21(modp)x^{2}\equiv-1\pmod{p}.

Theorem (Quadratic Reciprocity of Legendre)

If pp and qq are distinct odd primes, then the Legendre Symbol satisfies: (pq)=(1)(p1)(q1)4(qp)\left( \frac{p}{q} \right)=(-1)^{\frac{(p-1)(q-1)}{4}}\left( \frac{q}{p} \right)

Linked from