On a screen formed by () squares, every square displays initially one of the three colors: red, yellow, and blue. Every second, the screen changes the color of each square following the rules below:
* for each square whose current color is red, if there is a yellow square sharing a side with this square, then turns yellow in the next second, otherwise, remains red;
* for each square whose current color is yellow, if there is a blue square sharing a side with this square, then turns blue in the next second, otherwise, remains yellow;
* for each square whose current color is blue, if there is a red square sharing a side with this square, then turns red in the next second, otherwise, remains blue.
Prove that if the screen does not change to a single color after seconds, then it will never change to a single color.
, 2022
Solution
Proof: We first prove the claim: if the screen eventually turns into one color, say blue, then there must be one square which is constantly blue.
Suppose not, namely, suppose that eventually all squares are blue but every square has changed color at some time. We construct an oriented graph as follows: the vertices are all squares, and we link an oriented arrow if and are adjacent and there is some time such that square is not blue at the time and is constantly blue when , and square is blue at the time . In other words, the square is changed to blue last time because of square . Since we assume that every square on the screen has changed color, every vertex of the graph has out-degree . So must contain an oriented loop . Assume that square turns blue for the last time at the time , i.e. is not blue at the time , and is constantly blue when . Without loss of generality, is the largest among . From the arrow , the square is yellow at time ; From the arrow , the square is blue at the time . We must have . But a blue square can only turn red first before turning yellow. So there exists , such that is red at the time . But , is blue at the time , so will force to turn red at the time . But this contradicts the definition of , namely, is constantly blue from the time onward. The claim is proved.
Back to the original problem, assume that all squares are turned blue eventually, we will show that the squares are all turned blue after seconds.
By the claim, there exists a square which is constantly blue. Define the distance between two squares by the sum of their horizontal and vertical distances; then the distance between farthest two squares is . If and have distance 1, then can never be red, this means: if is initially blue, then it is always blue; if is yellow, then
it is turned blue after 1 second and continues to be blue after that. Now, for a point of distant to the point , we may run an induction to prove that will become constantly blue after seconds. Suppose that this statement has been proved for . If has distant to , take a square adjacent to that has distant to . By induction, is constant blue after seconds, then the same argument as above shows that is constantly blue after seconds. From this induction, we deduce that all squares are blue after seconds.