Let $f,g \in \mathbb{Z}[x]$ be monic polynomials such that $f(n)$ divides $g(n)$ for infinitely many values of positive integers $n.$ Prove that $f$ divides $g$ in $\mathbb{Z}[x].$
I first wrote out $f(x) = a_0 + a_1x + \cdots + a_{n+1} x^n$ and $g(x) = b_0 + b_1x + \cdots + b_{m+1} x^m.$ However, I am unsure where to go from here.