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 4 of 4: Force termination
In plain words

Every legal operation strictly lowers a nonnegative integer, so only finitely many operations can occur.

2Sx4<02Sx_4<0
Detailed analysis

Because S>0S>0 and a legal move has x4<0x_4<0, we have fnew−fold=2Sx4<0f_{\rm new}-f_{\rm old}=2Sx_4<0. An infinite run would create an infinite strictly decreasing sequence of nonnegative integers, impossible. Therefore the procedure always stops.