Problem

Source: Iran 2004

Tags: algebra, Integer Polynomial, Integer sequence



Suppose $f$ is a polynomial in $\mathbb{Z}[X]$ and m is integer .Consider the sequence $a_i$ like this $a_1=m$ and $a_{i+1}=f(a_i)$ find all polynomials $f$ and alll integers $m$ that for each $i$: \[ a_i | a_{i+1}\]