MathLabs

Problem 3

To each vertex of a regular pentagon an integer is assigned, with positive total sum. If three consecutive vertices carry x,y,zx,y,z and y<0y<0, replace them by x+y,−y,z+yx+y,-y,z+y. This operation is repeated whenever some number is negative. Must the procedure always end after finitely many steps?
Step 2 of 4: Define a nonnegative integer potential
In plain words

The potential measures squared differences between vertices two positions apart. It is always a nonnegative integer, so it cannot decrease forever.

f(x1,…,x5)=∑i=15(xi−xi+2)2,x6=x1, x7=x2f(x_1,\ldots,x_5)=\sum_{i=1}^5(x_i-x_{i+2})^2,\quad x_6=x_1,\ x_7=x_2
Detailed analysis

Define f(x1,…,x5)=∑i=15(xi−xi+2)2f(x_1,\ldots,x_5)=\sum_{i=1}^5(x_i-x_{i+2})^2 with cyclic indices. Clearly f≥0f\ge0 and ff is integer-valued.