Maths Olympiad Prep

Library / Croatian Mathematical Competitions /108 of 114

Croatian Mathematical Competitions

Combinatorics Difficulty 7.3 National Olympiad, round 2 Prove it Croatia

We are placing red and blue balls on the circle. In the beginning there are exactly two red balls on the circle. We are allowed to perform the following operations:
i) add one red ball and change the colour of its neighbouring two balls (red to blue and vice versa);
ii) remove one red ball and change the colour of its neighbouring balls.
Is it possible that after a finite number of operations we obtain

a) 20132013 red and 20132013 blue balls;
b) exactly two blue balls? (Kvant 8/1981)

Solution

a. We consider three different cases of adding a red ball depending on the colours of its neighbours.
If we add the ball between two blue balls, then we have the case PP→CCCPP \rightarrow CCC in which the number of blue balls decreases by two. If we add the ball between two red balls, we have CC→PCPCC \rightarrow PCP and the number of blue balls increases by two. In the third case, we add the ball between one blue and one red ball (CP→PCCCP \rightarrow PCC) and the number of blue balls stays the same. We conclude that adding a red ball does not change the parity of the number of blue balls. Also removing a red ball does not change the parity of the number of blue balls.

In the beginning there is no blue balls, so after each operation the number of blue balls is even. Hence it is not possible that we obtain exactly 20132013 blue balls.

b. In a given configuration of balls, we label the blue balls clockwise P1,P2,…,P2kP_1, P_2, \dots, P_{2k} starting with an arbitrary blue ball. Let mim_i (i∈{1,2,…,2k}i \in \{1, 2, \dots, 2k\}) be the number of red balls between balls PiP_i and Pi+1P_{i+1} (Pn+1=P1P_{n+1} = P_1). For example, in the following picture we have m1=2,m2=3,m3=1,m4=0,m5=4,m6=1m_1 = 2, m_2 = 3, m_3 = 1, m_4 = 0, m_5 = 4, m_6 = 1.

Figure 1

Furthermore, let us denote S=m1−m2+m3−⋯+m2k−1−m2kS = m_1 - m_2 + m_3 - \dots + m_{2k-1} - m_{2k}. If the configuration consists of nn red balls and no blue balls we denote S=nS = n. Let us prove that either SS is divisible by three for all configurations or SS is not divisible by three for all configurations. We again consider three cases:

1. We add a red ball between two blue balls, PiP_i and Pi+1P_{i+1}:
Pi−1…Pi⏟mi−1…Pi+1⏟mi=0→Pi−1′…CC⏞↓…Pi′⏟mi′ P_{i-1} \underbrace{\dots P_i}_{m_{i-1}} \underbrace{\dots P_{i+1}}_{m_i=0} \rightarrow P_{i-1}' \underbrace{\dots \overbrace{CC}^{\downarrow} \dots P_i'}_{m_i'}

2. We add a red ball between two red balls:
Pi…CC…⏟miPi+1→Pi…Pi+1⏟mi′C⏞↓⏟mi+1′=1Pi+1…Pi+3⏟mi+2′ P_i \underbrace{\dots CC \dots}_{m_i} P_{i+1} \rightarrow P_i \underbrace{\dots P_{i+1}}_{m_i'} \underbrace{\overbrace{C}^{\downarrow}}_{m_{i+1}'=1} P_{i+1} \underbrace{\dots P_{i+3}}_{m_{i+2}'}
Similiarly as before, S=S0+miS = S_0 + m_i, a S′=S0+mi′−1+mi+2S' = S_0 + m_i' - 1 + m_{i+2}. But now mi=mi′+mi+2′+2m_i = m_i' + m_{i+2}' + 2, so S′=S−3S' = S - 3.

(Analogous statement holds in the case if there is no blue balls on the circle.)

3. We add a red ball between one red and one blue ball (to the right of the blue ball PiP_i):
Pi−1Pi⏞mi−1C…Pi+1⏞mi⏟→Pi−1…C⏞mi−1′C⏞↓Pi⏟mi′…Pi P_{i-1} \underbrace{\overbrace{P_i}^{m_{i-1}} \overbrace{C \dots P_{i+1}}^{m_i}} \rightarrow P_{i-1} \underbrace{\overbrace{\dots \overbrace{C}^{m'_{i-1}} C}^{\downarrow} P_i}_{m'_i} \dots P_i
In this case S=S0+mi−1−miS = S_0 + m_{i-1} - m_i and S′=S0+mi−1′−mi′S' = S_0 + m'_{i-1} - m'_i. Since mi−1′=mi−1+2m'_{i-1} = m_{i-1} + 2 and mi′=mi−1m'_i = m_i - 1, we have S′=S+3S' = S + 3.

In any case, SS either decreases or increases by 33. In the beginning number SS is 22 and hence SS can never be divisible by three. We cannot obtain exactly two blue balls since SS would be 00.

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

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