Quadratic reciprocity and the Legendre symbol
Do arithmetic on a $13$-hour clock, that is, take remainders on division by $13$. The squares of $1, 2, \ldots, 12$ leave the remainders
$$1,\ 4,\ 9,\ 3,\ 12,\ 10,\ 10,\ 12,\ 3,\ 9,\ 4,\ 1.$$Only six remainders appear: $1, 3, 4, 9, 10, 12$. We say these numbers are quadratic residues modulo $13$, and the other six, $2, 5, 6, 7, 8, 11$, are not. For every odd prime $p$, exactly half of the numbers from $1$ to $p - 1$ are quadratic residues. But which half? Fermat and Euler made hundreds of checks and found strange regularities: whether or not $3$ is a square modulo $p$ seemed to depend only on the remainder of $p$ on division by $12$.