Maths Olympiad Prep

Library / /86 of 106

, 2022

Combinatorics Difficulty 8.4 Shortlist Prove it China

On a screen formed by n×nn \times n (n2n \ge 2) 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 AA whose current color is red, if there is a yellow square sharing a side with this square, then AA turns yellow in the next second, otherwise, AA remains red;
* for each square BB whose current color is yellow, if there is a blue square sharing a side with this square, then BB turns blue in the next second, otherwise, BB remains yellow;
* for each square CC whose current color is blue, if there is a red square sharing a side with this square, then CC turns red in the next second, otherwise, CC remains blue.
Prove that if the screen does not change to a single color after 2n22n - 2 seconds, then it will never change to a single color.

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 GG as follows: the vertices are all squares, and we link an oriented arrow ABA \to B if AA and BB are adjacent and there is some time t0t_0 such that square AA is not blue at the time t01t_0 - 1 and is constantly blue when tt0t \ge t_0, and square BB is blue at the time t01t_0 - 1. In other words, the square AA is changed to blue last time because of square BB. Since we assume that every square on the screen has changed color, every vertex of the graph has out-degree 1\ge 1. So GG must contain an oriented loop A1A2AkA1A_1 \to A_2 \to \dots \to A_k \to A_1. Assume that square AiA_i turns blue for the last time at the time tit_i, i.e. AiA_i is not blue at the time ti1t_i - 1, and is constantly blue when ttit \ge t_i. Without loss of generality, t1t_1 is the largest among t1,,tkt_1, \dots, t_k. From the arrow A1A2A_1 \to A_2, the square AiA_i is yellow at time t11t_1 - 1; From the arrow AkA1A_k \to A_1, the square A1A_1 is blue at the time tk1t_k - 1. We must have tk<t1t_k < t_1. But a blue square can only turn red first before turning yellow. So there exists tk<t<t1t_k < t' < t_1, such that A1A_1 is red at the time t1t' - 1. But t1tkt' - 1 \ge t_k, AkA_k is blue at the time t1t' - 1, so A1A_1 will force AkA_k to turn red at the time tt'. But this contradicts the definition of tkt_k, namely, AkA_k is constantly blue from the time tkt_k 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 2n22n - 2 seconds.
By the claim, there exists a square AA 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 2n22n - 2. If BB and AA have distance 1, then BB can never be red, this means: if BB is initially blue, then it is always blue; if BB is yellow, then

it is turned blue after 1 second and continues to be blue after that. Now, for a point BB of distant kk to the point AA, we may run an induction to prove that BB will become constantly blue after kk seconds. Suppose that this statement has been proved for k1k-1. If BB has distant kk to AA, take a square BB' adjacent to BB that has distant k1k-1 to AA. By induction, BB' is constant blue after k1k-1 seconds, then the same argument as above shows that BB is constantly blue after kk seconds. From this induction, we deduce that all squares are blue after 2n22n-2 seconds.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.