Let $f(x)$ be a polynomial with integer coefficients. Define a sequence of integers $\{a_n\}_{n\in\mathbb{N}_0}$ such that $a_0=0$ and $a_{n+1}=f(a_n).$ Prove that if $\exists m\ne 0$ such that $a_m=0\implies a_1$ or $a_2=0.$
$$ f(x)=b_l x^2+b_{l-1} x^{l-1}+\cdots+b_1 x+b_0 $$ If $a_1=b_0=0,$ then $a_n=0\;\forall n \geqslant 2.$ Now, say $\exists m$ such that $a_m=0.$
We see \begin{align} a_{n+1}-a_n=\; b_l&\left[a_n^l-a_{n-1}^l\right]+\\ b_{l-1}&\left[a_n^{l-1}-a_{n-1}^{l-1}\right]+\cdots+\\ b_1&\left[a_n-a_{n-1}\right]. \end{align} So, \begin{align} a_2-a_1 &\mid a_3-a_2 \\ a_3-a_2 &\mid a_4-a_3 \\ &\,\vdots \\ a_m-a_{m-1} &\mid a_{m+1}-a_m \\ \implies a_2-a_1 &\mid a_{m+1}-a_m \\ \implies a_2-b_0 &\mid a_{m+1}\left[\because a_m=0, a_1=b_0\right] \\ a_{m+1}=f\left(a_m\right)\;&\!=f(0)=b_0 \\ a_2-b_0 &\mid b_0 \\ b_0 &\mid a_2. \end{align} I feel like I'm close to solving it, but I have to show $a_2=0$ somehow. Can someone please provide a possible continuation to my solution?