Hint $\rm\ mod\ 5\!:\ n \not\equiv 0\ \Rightarrow\ n\equiv \pm1,\pm2\ \Rightarrow\ n^2\equiv \pm1\ \Rightarrow\ n^4\equiv 1\ \Rightarrow\ n^5\equiv n$
This is a special case of the following global-form of Fermat's little theorem.$\: $ For naturals $\rm\: a,k,n$
$\ $ if $\rm\ a,k > 1\ $ then $\rm\ a\ |\ n^k\! -\! n\ $ for all $\rm\:n \iff a\:$ is squarefree, and $\rm\ p\!-\!1\: |\: k\!-\!1\ \ \:\forall$ primes $\rm\:p\:|\:a$
Hence for $\rm\: a = 30\: = 2\cdot 3\cdot 5\ $ we deduce: $\rm\ \ 30\ |\ n^k-n\ $ for all $\rm\:n\ \iff\ 4\ |\ k-1$
For the simple proof and further discussion see my 2009/04/10 sci.math post - which also presents the analogous generalization of Euler's $\phi$ function, and Korselt's criterion for Carmichael numbers.
Note: to fix rotted Google Groups links in the cited sci.math post it may be necessary to change $\ $ http://google.com/... $\ $ to$\ $ http://groups.google.com/... i.e. insert "groups." before "google.com".