Is there a proof which shows that for all primes p, n^p-n is divisible by p?

I've shown that for all positive integers n that n^5-5 is divisible by 5.

I've also found that this seems to be the case for p|(n^p-n), given that p is one of the first five primes. And that it is not true that p divides n^p-n when p is a composite positive integer.

2017-11-08T18:50:14Z

Excuse me,

I've shown that for all positive integers n that n^5-n is divisible by 5. Typo above.

?2017-11-08T21:41:02Z

Favorite Answer

Factor n^p - n into n(n^[ p-1 ] - 1).

Then, according to Fermat's "little" theorem,

p | n^(p-1) - 1

DWRead2017-11-08T20:35:48Z

n^5-5 is not divisible by 5 for n = 1.