Wilson's Theorem

Theorem (Wilson)

If pp is prime then (p1)!1(modp)(p-1)!\equiv-1 \pmod{p}