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 1 of 4: Preserve the positive sum
In plain words

The move redistributes the three selected entries but does not change their sum, so the global sum remains a positive invariant.

S=x1+x2+x3+x4+x5>0S=x_1+x_2+x_3+x_4+x_5>0
Detailed analysis

Write the five values cyclically as (x1,x2,x3,x4,x5)(x_1,x_2,x_3,x_4,x_5). Each move replaces x,y,zx,y,z by x+y,−y,z+yx+y,-y,z+y, whose sum is still x+y+zx+y+z. Thus S=∑i=15xiS=\sum_{i=1}^5x_i is unchanged and positive.