Let $f$ a polynomial with real coefficients. There exists a constant $ c $ such that $f(x)=c $ for infinitely many numbers $x$. Prove $f$ is constant.
I have no idea how to do this. I started by denoting $f=a_n x^n+...+a_0$ but I have no idea how to continue.