Statement of Main Law
For distinct odd primes and , if or then if and only if , alternatively, if and , then if and only if .
Statement of Main Law with Legendre Symbols
For distinct odd primes and ,
- or is
- and are
For distinct odd primes p and q, if p≡1mod4 or q≡1mod4 then p≡□modq if and only if q≡□modp, alternatively, if p≡3mod4 and q≡3mod4, then p≡□modq if and only if −q≡□modp.
For distinct odd primes p and q,