Maths Olympiad Prep

Library / /36 of 36

, 2023

Combinatorics Difficulty 9.2 IMO level Prove it Baltic Way

Some points are marked on a circle. Each marked point is coloured red, green or blue. In one step, one can erase two marked points of different colours that have no marked points between them and mark a new point between the locations of the erased points with the third colour. In a final state, all marked points have the same colour which is called the colour of the final state. Find all positive integers nn for which there exists an initial state of nn marked points with one missing colour, from which one can reach a final state of any of the three colours by applying a suitable sequence of steps.

Solutions — 2

Solution 1

Answer: All even numbers nn greater than 2.

If n=2n = 2 then the colour of the final state is uniquely determined. We show now that required initial states are impossible for odd nn. Note that if one colour is missing then the numbers of marked points of existing two colours have different parities, i.e., the difference of these numbers is odd. Each step keeps the parity of the difference of the numbers of marked points of these two colours unchanged. Hence in every intermediate state and also in the final state, one of these two colours is represented. Consequently, a final state of the third colour is impossible.

For every even number n>2n > 2, an initial state with 2 consecutive points marked with one colour and n2n-2 points marked with another colour satisfies the conditions of the problem. Indeed, if n>4n > 4 then with two symmetric steps, one can reach a similar state where the number of points marked with the more popular colour is 2 less. Hence it suffices to solve the case n=4n = 4. In this case, making one step leads to a state with 3 marked points, all with different colours. In order to obtain a final state of any given colour, one can replace points of the other two colours with a new point of the given colour. This completes the solution.

Solution 2

Definition: Call a configuration *colourful*, if the final state may have any of the three colours.

The cases n=2n = 2 and nn odd are excluded as in the first solution, so let n>2n > 2 be even. To construct *colourful* configurations, we consider linear configurations, i.e. one where the points are placed on a line instead of a circle. There is only difference to the circular situation: We may not choose the two end points for the replacement step. So it suffices to construct linear *colourful* configurations.

We start by providing explicit examples for n=4n = 4 and n=6n = 6 (with the bold letters being replaced):
RGRGBRGBBRGRGRBGRRRGRGRBGGGRGRRGRBRRGRBRRBBRGBBRGRRGRRBRGRRBBRGBRRRRGRRGRRBRGRRBBRGBRGG. \begin{align*} \mathbf{RGRG} &\rightarrow \mathbf{BRG} \rightarrow \mathbf{BB} \\ \mathbf{RGRG} &\rightarrow \mathbf{RBG} \rightarrow \mathbf{RR} \\ \mathbf{RGRG} &\rightarrow \mathbf{RBG} \rightarrow \mathbf{GG} \\ \mathbf{RGRRGR} &\rightarrow \mathbf{BRRGR} \rightarrow \mathbf{BRRB} \rightarrow \mathbf{BRG} \rightarrow \mathbf{BB} \\ \mathbf{RGRRGR} &\rightarrow \mathbf{RBRGR} \rightarrow \mathbf{RBBR} \rightarrow \mathbf{GBR} \rightarrow \mathbf{RR} \\ \mathbf{RGRRGR} &\rightarrow \mathbf{RBRGR} \rightarrow \mathbf{RBBR} \rightarrow \mathbf{GBR} \rightarrow \mathbf{GG}. \end{align*}

Next observe that the concatenation of several linear *colourful* configurations is again *colourful*: Indeed, each part can be transformed

RGB(mod2) |R| \equiv |G| \equiv |B| \pmod{2}
and it contains at least two colours.

*Proof.* We have already seen in the solution above that RG(mod2)|R| - |G| \pmod 2, GB(mod2)|G| - |B| \pmod 2 and BR(mod2)|B| - |R| \pmod 2 are invariants. Moreover it is obvious that we need at least two colours to be able to do anything. So the conditions are necessary.

We prove that they are sufficient: For n=1n = 1 and n=2n = 2 there is nothing to do. For n=3n = 3 the conditions require R=G=B=1|R| = |G| = |B| = 1 and the configuration indeed *colourful*. We continue by induction for n>3n > 3: As n>3n > 3, there is at least one colour with more than one point, so assume wlog. R>1|R| > 1. Having at least two colours, we can find a pair of two different colours, one of which is red. Assume w.l.o.g. that the other is green. As a first step replace these two points. The resulting configuration has R1|R| - 1 red, G1|G| - 1 green and B+1|B| + 1 blue points, so it satisfies R1=G1=B+1(mod2)|R| - 1 = |G| - 1 = |B| + 1 \pmod 2. Moreover due to R>1|R| > 1 is has at least one red and one blue point. So by induction the configuration is *colourful*, and hence so was our original state. □

*Proof.* Immediate.

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 and solution reproduced as published; topic and difficulty added by this site.