Let $f(x)\in \mathbb{Z}[x]$ and let $\frac{r}{s} \in \mathbb{Q}$ be a root of $f(x)$ with $(r,s) =1$. Show that $r-ms$ is a divisor of $f(m)$ for any integer $m$.
The book’s suggestion is: Write $f(x)$ in the form $\sum a_r(x-m)^r$. Show that every $a_r$ is an integer. Then, evaluate $f(x)$ in $r/s$.
I don’t see how $f(x)$ could be written in that form so without the book’s suggestion I have $$f(x)=(x-r/s)(g(x))$$ for some $g(x)\in\mathbb{Z}$ which implies $g(x)=(-1/s)(h(x))$ if $(r-ms)\mid f(m)$. I also tried by dividing $\frac{f(x)}{(x-r/s)}$ but still get no proof of this assumption. Thanks in advance.
Note: $f(x)=a_nx^n+\cdots a_1x + a_0$, $s\mid a_n$ and $r\mid a_0$