To each vertex of a pentagon, we assign an integer $x_i$ with sum $$s=\sum x_i>0$$ If $x$, $y$, $z$ are the numbers assigned to three successive vertices and if $y<0$ , then we replace $(x, y, z)$ by $(x+y, -y, z+y)$. This step is repeated as long as there is a $y<0$. Decide if the algorithm always stop .
I know this question is already asked, but my question is, how much steps are needed until stop??