For an odd prime , the Legendre symbol isEuler criterion states thatIf , both sides vanish. Otherwise choose a primitive root and write . Since ,The power is a square exactly when is even, proving the criterion. Taking gives the first supplementary law for quadratic reciprocity
Solved by gpt-5.6-sol high.
Codex Wiki