Let $a, b, n \in \mathbb N$. Prove that if $b - k$ divides $a - k^n$ for all $k \in \mathbb N$ such that $k \ne b$, then $a = b^n$.
My approach inspired by this problem and this answer goes somewhat like:
In order to take care of the exponential $k^n$, let's use the Fermat Little Theorem, so let's pick a prime $p$ and consider $k = a^p$.
Then taking $$b - k | a - k^n$$ modulo $p$ implies: $$b - a^p | a - a^{pn} \mod p$$ $$b - a | a - a^n \mod p$$
And here I got stuck. I understand that we have much freedom in our choice of $p$, so we can take it as large as we want, which would also imply that it's not a divisor of $b - a$ nor $a - a^n$, but still I don't understand how I can deduce the equality of values from their divisibility modulo $p$.