MathDB
changing letters around circle if neighbors are the same

Source: IMOC 2020 C2

August 12, 2021
combinatorics

Problem Statement

There are N3N\ge3 letters arranged in a circle, and each letter is one of LL, TT and FF. For a letter, we can do the following operation: if its neighbors are the same, then change it to the same letter too; otherwise, change it so that it is different from both its neighbors. Show that for any initial state, one can perform finitely many operations to achieve a stable state. Here, a stable state means that any operation does not change any of the NN letters. (ltf0501)