I'm trying to solve this excercise:
If $f(x)$ is a polynomial in $\mathbb{Z}$ and $f(a)\equiv k\pmod{n}$ . Prove that for all integer m
$f(a+mn)\equiv k\pmod{n}$.
I know that if $f(a)\equiv k\pmod{n}$ then there exist some $p\in\mathbb{Z}$ such that $f(a)-k=np$
But after this I don't know what to do. Any suggestion? Thanks!
Edit: I only can use basic properties of congruence.
Let $f(x)=c_0+c_1x+c_2x^2+\cdots+c_dx^d$.
Note that from binomial expansion $(a+mn)^k\equiv a^k\bmod n.$
Therefore $f(a+mn)=a_0+c_1(a+mn)+c_2(a+mn)^2+\cdots+c_d(a+mn)^d$
$\equiv a_0+c_1a+c_2a^2+\cdots+c_da^d=f(a)\bmod n$.