Problem

Source: Tournament of Towns 2020 oral p6 (15 March 2020)

Tags: combinatorics, winning strategy, game strategy, game



Given an endless supply of white, blue and red cubes. In a circle arrange any $N$ of them. The robot, standing in any place of the circle, goes clockwise and, until one cube remains, constantly repeats this operation: destroys the two closest cubes in front of him and puts a new one behind him a cube of the same color if the destroyed ones are the same, and the third color if the destroyed two are different colors. We will call the arrangement of the cubes good if the color of the cube remaining at the very end does not depends on where the robot started. We call $N$ successful if for any choice of $N$ cubes all their arrangements are good. Find all successful $N$. I. Bogdanov