MathLabs

Problem 4

Let Z\mathbb{Z} denote the set of all integers. Find all polynomials P(x)P(x) with integer coefficients that satisfy the following property: for any infinite sequence a1,a2,…a_1,a_2,\ldots of integers in which each integer in Z\mathbb{Z} appears exactly once, there exist indices i<ji<j and an integer kk such that ai+ai+1+⋯+aj=P(k)a_i+a_{i+1}+\cdots+a_j=P(k).
Step 2 of 5: Linear P works: find a block summing to d mod c
si≡sj(modc), i<j  ⟹  ai+1+⋯+aj≡0(modc)s_i\equiv s_j \pmod c,\ i<j \implies a_{i+1}+\cdots+a_j\equiv 0\pmod c
Detailed analysis

Let P(x)=cx+dP(x)=cx+d, c≠0c\ne0, and set s0=0s_0=0, si=a1+⋯+ais_i=a_1+\cdots+a_i. A block sum ai+⋯+aj=sj−si−1a_i+\cdots+a_j=s_j-s_{i-1} equals P(k)=ck+dP(k)=ck+d for some integer kk exactly when sj−si−1≡d(modc)s_j-s_{i-1}\equiv d\pmod c. Since every integer occurs exactly once, infinitely many positions ee have ae≡d(mod∣c∣)a_e\equiv d\pmod{|c|}; pick ∣c∣+1|c|+1 of them, e1<⋯<e∣c∣+1e_1<\cdots<e_{|c|+1}. As ael≡d(modc)a_{e_l}\equiv d\pmod c, the value sel mod cs_{e_l}\bmod c is determined by sel−1 mod cs_{e_l-1}\bmod c, which takes only ∣c∣|c| possible values; by pigeonhole two indices p<qp<q have sep−1≡seq−1(modc)s_{e_p-1}\equiv s_{e_q-1}\pmod c.