Euler's criterion decides any single case. For two special numbers, $-1$ and $2$, it gives a rule that depends only on the remainder of $p$ mod 4 or mod 8. These two rules, the supplementary laws, are the base cases of quadratic reciprocity.
Theorem. For an odd prime $p$: $$\left(\frac{-1}{p}\right) = 1 \iff p \equiv 1 \pmod{4}, \qquad \left(\frac{2}{p}\right) = 1 \iff p \equiv \pm 1 \pmod{8}.$$
Why it works
For $2$: multiply the even numbers $2 \cdot 4 \cdot 6 \cdots (p - 1)$. Factoring out a 2 from each gives $2^{(p-1)/2} \cdot \left(\frac{p-1}{2}\right)!$. Now replace each even number bigger than $\frac{p}{2}$ by $-(p - \text{that number})$, a negative odd number below $\frac{p}{2}$. The list becomes $\pm 1, \pm 2, \dots, \pm \frac{p-1}{2}$ with one minus sign for each even number above $\frac{p}{2}$. So $2^{(p-1)/2} \equiv (-1)^{m}$, where $m$ counts the even numbers between $\frac{p}{2}$ and $p$, and checking the four cases of $p \bmod 8$ shows $m$ is even exactly when $p \equiv \pm 1 \pmod{8}$. For $p = 11$: the evens above 5.5 are 6, 8, 10, so $m = 3$ and $\left(\frac{2}{11}\right) = -1$.
| $p \bmod 8$ | 1 | 3 | 5 | 7 |
|---|---|---|---|---|
| $\left(\frac{-1}{p}\right)$ | $1$ | $-1$ | $1$ | $-1$ |
| $\left(\frac{2}{p}\right)$ | $1$ | $-1$ | $-1$ | $1$ |
| $\left(\frac{-2}{p}\right)$ | $1$ | $1$ | $-1$ | $-1$ |
Worked example: Is −1 a square?
- $13 \equiv 1 \pmod{4}$, so $\left(\frac{-1}{13}\right) = 1$.
- Indeed $5^{2} = 25 = 26 - 1 \equiv -1 \pmod{13}$.
Answer: $1$; for example $x = 5$.
Worked example: Is 2 a square?
- $17 \equiv 1 \pmod{8}$, so $\left(\frac{2}{17}\right) = 1$. Check: $6^{2} = 36 = 34 + 2$.
- $11 \equiv 3 \pmod{8}$, so $\left(\frac{2}{11}\right) = -1$, matching the list of squares mod 11 (2 is not on it).
Answer: $1$ and $-1$.
Worked example: Combining the laws
- $\left(\frac{-2}{11}\right) = \left(\frac{-1}{11}\right)\left(\frac{2}{11}\right)$.
- $11 \equiv 3 \pmod{4}$ gives $-1$; $11 \equiv 3 \pmod{8}$ gives $-1$. The product is $1$.
- Check: $3^{2} = 9 \equiv -2 \pmod{11}$.
Answer: $1$.
Common mistake
Key idea