Theorem. Fermat's Little Theorem [00I8]

If p is prime and a is any integer such that p \nmid a, then a^{p-1} \equiv _p 1.