Multiplicativity of the Legendre symbol (source code)

= Multiplicativity of the Legendre symbol

For an odd prime $p$,
$$
\left(\frac{ab}{p}\right)=
\left(\frac ap\right)\left(\frac bp\right).
$$
In particular, if $p\nmid a$, then $(a^{-1}/p)=(a/p)$.