Exercise: Let $a,b\in\Bbb{N}$, show that if for all $n\in\Bbb{N}, \quad a^n-n$ divides $b^n-n$, then $a=b$.
I don't have lot of knowledge on this subject, I am aware about some elementary result but here I am stuck. Any hint to start this problem will be great.
Let $p$ be a prime number and let $n=k(p-1)+1$. Then by Fermat, $a^n -n \equiv a - n \equiv a + k - 1 \mod p$ and similarly $b^n - n \equiv b+k-1 \mod p$. It follows that if $p \mid a+k-1$, then $p \mid b+k-1$. In other words, for any $i>0$ any prime divisor of $a+i$ is also a divisor of $b+i$. If $a+i$ is prime, this implies that $a+i=b+i$ $($and hence $a=b)$ or $b+i \geq 2(a+i) \iff b \geq 2a + i$. Now take $i$ large to conclude that the first must apply.