Problem

Source: Problem 5, Brazilian MO 2015

Tags: algebra proposed, algebra, polynomial



Is that true that there exist a polynomial $f(x)$ with rational coefficients, not all integers, with degree $n>0$, a polynomial $g(x)$, with integer coefficients, and a set $S$ with $n+1$ integers such that $f(t)=g(t)$ for all $t \in S$?