If f=(X−x1)(X−x2), x1,x2∈Z, then take un=n+x1 and get f(un)=n(n+x1−x2), hence n∣f(un), n≥1.
Conversely, assume that f(un)=kn⋅n, for some integer kn, n=1,2,… Then, the quadratic equation
u2+aν+b−kn⋅n=0
has integer zeros, hence its discriminant Δn is a perfect square, that is Δn=tn2, n=1,2,…. This is equivalent to
a2−4(b−kn⋅n)=tn2
hence we have
Δ+4kn⋅n=tn2,n=1,2,…(1)
where Δ=a2−4b is the discriminant of equation f(n)=0. In (1) we take n=Δ2 and obtain
Δ⋅(1+4kΔ2⋅Δ)=tΔ22.(2)
Since Δ and 1+4kΔ2⋅Δ are relatively prime, from (2) it follows that Δ is a perfect square, hence the zeros of f, x1,x2 are rational. We have Δ=a2−4b=c2, c∈Z, and
x1,2=21(−a±c).(3)
It is clear that a and c are of the same parity, and from (3) we get that x1,x2∈Z.