Problem

Source: IMOC 2018 N6

Tags: algebra, polynomial, number theory



If $f$ is a polynomial sends $\mathbb Z$ to $\mathbb Z$ and for $n\in\mathbb N_{\ge2}$, there exists $x\in\mathbb Z$ so that $n\nmid f(x)$, show that for every $k\in\mathbb Z$, there is a non-negative integer $t$ and $a_1,\ldots,a_t\in\{-1,1\}$ such that $$a_1f(1)+\ldots+a_tf(t)=k.$$