### Fermat's little theorem

How many different substitution ciphers are there? Explain. Fermat's little theorem, which says that if p is a prime number then (n^p) â?' n is always divisible by p is fundamental to many modern methods of cryptography. The important point is that if one restricts attention to possible remainders when divided by p (that