MathDB
game with sequence of 2008 non-negative integers (a,b,c)->(a-1,b+7,c-1)

Source: Dutch MO 2008 p5

September 1, 2019
combinatoricsgameSequence

Problem Statement

We’re playing a game with a sequence of 20082008 non-negative integers. A move consists of picking a integer bb from that sequence, of which the neighbours aa and cc are positive. We then replace a,ba, b and cc by a1,b+7a - 1, b + 7 and c1c - 1 respectively. It is not allowed to pick the first or the last integer in the sequence, since they only have one neighbour. If there is no integer left such that both of its neighbours are positive, then there is no move left, and the game ends. Prove that the game always ends, regardless of the sequence of integers we begin with, and regardless of the moves we make.