http://math.stackexchange.com/questions/2156764/modular-cycles-of-ak-mod-p-and-fermats-little-theorem
Question about Fermat's Little Theorem in the context of breaking a (bad) modified implementation of RSA where $N = pq$ is replaced by a prime, $P$.