Is it true that for $$ f(x) = x^e\:mod\:m$$
$f$ is bijective and not the identify function if and only if
- $m$ is the product of unique primes
- For each prime factor of $m$ called $p$, $e$ is coprime to $p-1$
- Given $l=lcm(\{p_i-1\})$ (the smallest number which is a multiple of each factor of m) $e \neq 1\:mod\:l$
I've tried it for all combinations of e and m up to 500 and it appears to hold in those cases.