MathLabs

Problem 1

We call a 55-tuple of integers arrangeable if its elements can be labeled a,b,c,d,ea,b,c,d,e in some order so that a−b+c−d+e=29a-b+c-d+e=29. Determine all 20172017-tuples of integers n1,n2,…,n2017n_1,n_2,\ldots,n_{2017} such that if we place them in a circle in clockwise order, then any 55-tuple of numbers in consecutive positions on the circle is arrangeable.
Step 3 of 4: The common parity is even
m1+m2+m3+m4+m5≡0(mod2)  ⟹  common parity is evenm_1+m_2+m_3+m_4+m_5\equiv0\pmod2 \implies \text{common parity is even}
Detailed analysis

Any five consecutive mim_i's sum to an even number modulo 22, in particular m1+m2+m3+m4+m5≡0(mod2)m_1+m_2+m_3+m_4+m_5\equiv0\pmod2. Since all mim_i share one common parity, this sum of five terms of that parity is even only if the common parity itself is even. Hence every mim_i is even.