Let $m \in \mathbb{N}$. Define $$ d_m = \gcd(n^m - n : n \in \mathbb{N}, n \ge 2). $$ For which values of $m>1$ is $d_m > 2$?
Context: This question arose while I was working through an exercise from An Introduction to the Theory of Numbers by Niven, Zuckerman, and Montgomery, which includes the following:
Prove that $n^2 - n$ is divisible by 2 for all integers $n$;
$n^3 - n$ is divisible by 6;
$n^5 - n$ is divisible by 30.
These suggest that $n^m - n$ is divisible by a fixed integer greater than 2 for some small values of $m$ (in these examples it is $2^m-2$). This led me to wonder for which values of $m$ the expression $n^m - n$ is divisible by a common integer greater than 2 for all $n \ge 2$.
After testing computationally, it seems that $d_m > 2$ only occurs for $m = 2, 3, 5$. For larger $m$, the gcd appears to drop to 2 ( but I think this is mostly due to an overflow in the code).