Corollary. Fermat’s Little Theorem for integers [01FC]

For all integers k and primes p, we have the following:

  1. k^p\equiv k \mod p
  2. k^{p-1}\equiv 1 \mod p unless k is a multiple of p.