Legendre Symbol

Definition (Legendre symbol)

If pp is an odd prime, and a∈Za\in\mathbb{Z}, we define the Legendre Symbol, written as (ap)\left( \frac{a}{p} \right) by (ap)={0if p∣a1if a is a quadratic residue−1if 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  ⟺  x2≡a(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)p−12\left( \frac{-1}{p} \right)=(-1)^{\frac{p-1}{2}}

Proposition (Euler’s criterion)

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

Proposition (3)

For a prime p≡1(mod4)p\equiv1\pmod{4} we have [(p−12)!]2≡−1(modp)\left[ \left( \frac{p-1}{2} \right)! \right]^{2}\equiv-1\pmod{p} giving an explicit solution to the congruence x2≡−1(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)(p−1)(q−1)4(qp)\left( \frac{p}{q} \right)=(-1)^{\frac{(p-1)(q-1)}{4}}\left( \frac{q}{p} \right)

Linked from