a. By assumption P(0)=a0∈Z, P(−1)=a0−a1+a2∈Z and P(1)=a0+a1+a2∈Z. This implies that a1+a2 and a2−a1 are integers, hence also 2a1 and 2a2. From P(n)=a0+a1n+a2n2=a0+a1(n+n2)+(a2−a1)n2 we see now that P(n)∈Z, as n+n2=n(n+1) is always even.
b. For integers k≥0 we define polynomials Qk as follows:
Q0(x)=Q(x)andQk+1(x)=Qk(x+1)−Qk(x)
for all k≥0. Because for any polynomial f, the leading terms of f(x+1) and f(x) coincide, it follows that the degree of Qk+1 is smaller than the degree of Qk. As Q0 was of degree three, it follows that Q3 is a constant. The polynomials Q1, Q2, Q3 can easily be determined, but their explicit form is not needed below.
The assumption that Q(i), Q(i+1), Q(i+2) and Q(i+3) are integers implies that Q1(i), Q1(i+1) and Q1(i+2) are integers. In turn we get that Q2(i) and Q2(i+1) are integers, which finally yields that Q3(i)∈Z. As Q3 is constant, this shows that Q3(n)∈Z for all n∈Z.
We show next that Qk+1(n)∈Z for all n∈Z implies that Qk(n)∈Z for all n∈Z, provided that Qk(i)∈Z for at least one i∈Z. For n≥i this follows by induction from the equation Qk(n+1)=Qk+1(n)+Qk(n). For n≤i we use induction and the equality Qk(n−1)=Qk(n)−Qk+1(n−1).
Because we have seen that Q3(n)∈Z and that Q2(i), Q1(i) and Q0(i) are integers, it follows now that Q0(n) is an integer for all n∈Z.