Maths Olympiad Prep

Library / /23 of 23

, 2003

Combinatorics Difficulty 9.1 IMO level Prove it United States

At the vertices of a regular hexagon are written six nonnegative integers whose sum is 20032003. Bert is allowed to make moves of the following form: he may pick a vertex and replace the number written there by the absolute value of the difference between the numbers written at the two neighboring vertices. Prove that Bert can make a sequence of moves, after which the number 00 appears at all six vertices.

Solutions — 3

Solution 1

Define the sum and maximum of a position to be the sum and maximum of the six numbers at the vertices. We will show that from any position in which the sum is odd, it is possible to reach the all-zero position.
Our strategy alternates between two steps:

a) from a position with odd sum, move to a position with exactly one odd number;
b) from a position with exactly one odd number, move to a position with odd sum and strictly smaller maximum, or to the all-zero position.

Note that no move will ever increase the maximum, so this strategy is guaranteed to terminate, because each step of type (b) decreases the maximum by at least one, and it can only terminate at the all-zero position. It suffices to show how each step can be carried out.

First, consider a position
ABCFED A \begin{smallmatrix} B & C \\ F & E \end{smallmatrix} D
with odd sum. Then either A+C+EA + C + E or B+D+FB + D + F is odd; assume without loss of generality that A+C+EA + C + E is odd. If exactly one of A,CA, C and EE is odd, say AA is odd, we can make the sequence of moves
1B0F0D110100010100010000(mod2), 1 \begin{smallmatrix} B & 0 \\ F & 0 \end{smallmatrix} D \rightarrow 1 \begin{smallmatrix} 1 & 0 \\ 1 & 0 \end{smallmatrix} \mathbf{0} \rightarrow \mathbf{0} \begin{smallmatrix} 1 & 0 \\ 1 & 0 \end{smallmatrix} 0 \rightarrow 0 \begin{smallmatrix} 1 & 0 \\ \mathbf{0} & 0 \end{smallmatrix} 0 \pmod{2},
where a letter or number in boldface represents a move at that vertex, and moves that do not affect each other have been written as a single move for brevity. Hence we can reach a position with exactly one odd number. Similarly, if A,C,EA, C, E are all odd, then the sequence of moves
1B1F1D101010100000(mod2), 1 \begin{smallmatrix} B & 1 \\ F & 1 \end{smallmatrix} D \rightarrow 1 \begin{smallmatrix} \mathbf{0} & 1 \\ \mathbf{0} & 1 \end{smallmatrix} \mathbf{0} \rightarrow 1 \begin{smallmatrix} 0 & \mathbf{0} \\ 0 & \mathbf{0} \end{smallmatrix} 0 \pmod{2},
brings us to a position with exactly one odd number. Thus we have shown how to carry out step (a).

Now assume that we have a position
ABCFED A \begin{smallmatrix} B & C \\ F & E \end{smallmatrix} D
with AA odd and all other numbers even. We want to reach a position with smaller maximum. Let MM be the maximum. There are two cases, depending on the parity of MM.

* In this case, MM is even, so one of B,C,D,E,FB, C, D, E, F is the maximum. In particular, A<MA < M.
We claim after making moves at B,C,D,EB, C, D, E, and FF in that order, the sum is odd and the maximum is less than MM. Indeed, the following
\begin{array}{r@{\;}c@{\;}l@{\quad}l@{\quad}l} \begin{array}{cccc} & & \mathbf{1} & \\ & \mathbf{0} & \mathbf{0} & \\ \mathbf{1} & \mathbf{0} & \mathbf{0} & \\ \mathbf{0} & \mathbf{0} & \mathbf{0} & \end{array} & \rightarrow & \begin{array}{c} \mathbf{1} \\ \mathbf{0} \\ \mathbf{1} \\ \mathbf{0} \\ \mathbf{0} \end{array} & \rightarrow & \begin{array}{cccc} \mathbf{1} & \mathbf{1} & \mathbf{0} & \\ \mathbf{0} & \mathbf{0} & \mathbf{0} & \\ \mathbf{1} & \mathbf{0} & \mathbf{1} & \\ \mathbf{0} & \mathbf{1} & \mathbf{1} & \\ \mathbf{0} & \mathbf{0} & \mathbf{1} & \end{array} & \rightarrow \\ & & \begin{array}{cccc} \mathbf{1} & \mathbf{1} & \mathbf{1} & \\ \mathbf{0} & \mathbf{1} & \mathbf{1} & \\ \mathbf{1} & \mathbf{1} & \mathbf{1} & \\ \mathbf{0} & \mathbf{1} & \mathbf{1} & \\ \mathbf{1} & \mathbf{1} & \mathbf{1} & \end{array} & \rightarrow & \begin{array}{c} \mathbf{1} \\ \mathbf{0} \\ \mathbf{1} \\ \mathbf{0} \\ \mathbf{1} \end{array} & \pmod{2}. \end{array}
shows how the numbers change in parity with each move. Call this new position
ABFCCED. A' \begin{matrix} B' \\ F' \end{matrix} C' \begin{matrix} C' \\ E' \end{matrix} D'.
The sum is odd, since there are five odd numbers. The numbers AA', BB', CC', DD', EE' are all less than MM, since they are odd and MM is even, and the maximum can never increase. Also, F=AEmax{A,E}<MF' = |A' - E'| \le \max\{A', E'\} < M. So the maximum has been decreased.

* In this case, MM is odd, so M=AM = A and the other numbers are all less than MM.
If C>0C > 0, then we make moves at BB, FF, AA, and FF, in that order. The sequence of positions is
\begin{array}{r@{\;}c@{\;}l} \begin{array}{cccc} & & \mathbf{1} & \\ & \mathbf{0} & \mathbf{0} & \\ \mathbf{1} & \mathbf{0} & \mathbf{0} & \\ \mathbf{0} & \mathbf{0} & \mathbf{0} & \end{array} & \rightarrow & \begin{array}{c} \mathbf{1} \\ \mathbf{0} \\ \mathbf{1} \\ \mathbf{0} \end{array} & \rightarrow \\ & & \begin{array}{cccc} \mathbf{1} & \mathbf{0} & \mathbf{0} & \\ \mathbf{0} & \mathbf{0} & \mathbf{1} & \\ \mathbf{0} & \mathbf{0} & \mathbf{0} & \end{array} & \rightarrow \\ & & \begin{array}{cccc} \mathbf{0} & \mathbf{1} & \mathbf{0} & \\ \mathbf{1} & \mathbf{0} & \mathbf{0} & \\ \mathbf{0} & \mathbf{0} & \mathbf{0} & \end{array} & \pmod{2}. \end{array}
Call this new position
ABFCCED. A' \begin{matrix} B' \\ F' \end{matrix} C' \begin{matrix} C' \\ E' \end{matrix} D'.
The sum is odd, since there is exactly one odd number. As before, the only way the maximum could not decrease is if B=AB' = A; but this is impossible, since B=AC<AB' = |A - C| < A because 0<C<M=A0 < C < M = A. Hence we have reached a position with odd sum and lower maximum.
If E>0E > 0, then we apply a similar argument, interchanging BB with FF and CC with EE.
If C=E=0C = E = 0, then we can reach the all-zero position by the following sequence of moves:
ABF0DAAA0000AA0000000000. A \begin{matrix} B \\ F \end{matrix} \mathbf{0} \mathbf{D} \rightarrow A \begin{matrix} A \\ A \end{matrix} \mathbf{0} \mathbf{0} \mathbf{0} \rightarrow \mathbf{0} \begin{matrix} A \\ A \end{matrix} \mathbf{0} \mathbf{0} \mathbf{0} \rightarrow \mathbf{0} \begin{matrix} \mathbf{0} \\ \mathbf{0} \end{matrix} \mathbf{0} \mathbf{0} \mathbf{0} \mathbf{0} .
(Here 00 represents zero, not any even number.)
Hence we have shown how to carry out a step of type (b), proving the desired result. The problem statement follows since 20032003 is odd.

Solution 2

(By Richard Stong) We will show that if there is a pair of opposite vertices with odd sum (which of course is true if the sum of all the vertices is odd), then we can reduce to a position of all zeros.
Focus on such a pair {a,d}\{a, d\} with smallest possible max{a,d}\max\{a, d\}. We will show we can always reduce this smallest maximum of a pair of opposite vertices with odd sum or reduce to the all-zero position. Because the smallest maximum takes nonnegative integer values, we must be able to achieve the all-zero position.
To see this assume without loss of generality that ada \ge d and consider an arc (a,x,y,d)(a, x, y, d) of the position
a^{x \ y}^{* *}d
Consider updating xx and yy alternately, starting with xx. If max{x,y}>a\max\{x, y\} > a, then in at most two updates we reduce max{x,y}\max\{x, y\}. Thus, we can repeat this alternate updating process and we must eventually reach a point when max{x,y}a\max\{x, y\} \le a, and hence this will be true from then on.
Under this alternate updating process, the arc of the hexagon will eventually enter a unique cycle of length four modulo 22 in at most one update. Indeed, we have
(000)(100)(110)(010)(000)(mod2) \begin{pmatrix} 0 & 0 \\ * * & 0 \end{pmatrix} \to \begin{pmatrix} 1 & 0 \\ * * & 0 \end{pmatrix} \to \begin{pmatrix} 1 & 1 \\ * * & 0 \end{pmatrix} \to \begin{pmatrix} 0 & 1 \\ * * & 0 \end{pmatrix} \to \begin{pmatrix} 0 & 0 \\ * * & 0 \end{pmatrix} \pmod{2}
and
10001000(mod2);11001100(mod2) 1^{\begin{smallmatrix} 0 & 0 \\ * & * \end{smallmatrix}} 0 \to 1^{\begin{smallmatrix} 0 & 0 \\ * & * \end{smallmatrix}} 0 \pmod{2}; \quad 1^{\begin{smallmatrix} 1 & 0 \\ * & * \end{smallmatrix}} 0 \to 1^{\begin{smallmatrix} 1 & 0 \\ * & * \end{smallmatrix}} 0 \pmod{2}
11101110(mod2);10101010(mod2), 1^{\begin{smallmatrix} 1 & 1 \\ * & * \end{smallmatrix}} 0 \to 1^{\begin{smallmatrix} 1 & 1 \\ * & * \end{smallmatrix}} 0 \pmod{2}; \quad 1^{\begin{smallmatrix} 0 & 1 \\ * & * \end{smallmatrix}} 0 \to 1^{\begin{smallmatrix} 0 & 1 \\ * & * \end{smallmatrix}} 0 \pmod{2},
or
00110111010100010011(mod2) 0^{\begin{smallmatrix} 0 & 1 \\ * & * \end{smallmatrix}} 1 \to 0^{\begin{smallmatrix} 1 & 1 \\ * & * \end{smallmatrix}} 1 \to 0^{\begin{smallmatrix} 1 & 0 \\ * & * \end{smallmatrix}} 1 \to 0^{\begin{smallmatrix} 0 & 0 \\ * & * \end{smallmatrix}} 1 \to 0^{\begin{smallmatrix} 0 & 1 \\ * & * \end{smallmatrix}} 1 \pmod{2}
and
00010001(mod2);00110011(mod2) 0^{\begin{smallmatrix} 0 & 0 \\ * & * \end{smallmatrix}} 1 \to 0^{\begin{smallmatrix} 0 & 0 \\ * & * \end{smallmatrix}} 1 \pmod{2}; \quad 0^{\begin{smallmatrix} 0 & 1 \\ * & * \end{smallmatrix}} 1 \to 0^{\begin{smallmatrix} 0 & 1 \\ * & * \end{smallmatrix}} 1 \pmod{2}
01110101(mod2);01010101(mod2). 0^{\begin{smallmatrix} 1 & 1 \\ * & * \end{smallmatrix}} 1 \to 0^{\begin{smallmatrix} 1 & 0 \\ * & * \end{smallmatrix}} 1 \pmod{2}; \quad 0^{\begin{smallmatrix} 1 & 0 \\ * & * \end{smallmatrix}} 1 \to 0^{\begin{smallmatrix} 1 & 0 \\ * & * \end{smallmatrix}} 1 \pmod{2}.
Further note that each possible parity for xx and yy will occur equally often.
Applying this alternate updating process to both arcs (a,b,c,d)(a, b, c, d) and (a,e,f,d)(a, e, f, d) of
abccd, a^b c^c d,
we can make the other four entries be at most aa and control their parity. Thus we can create a position
ax1x2dx5x4 a^{x_1} x_2 d^{x_5} x_4
with xi+xi+3x_i + x_{i+3} (i=1,2)(i = 1, 2) odd and Mi=max{xi,xi+3}aM_i = \max\{x_i, x_{i+3}\} \le a. In fact, we can have m=min{M1,M2}<am = \min\{M_1, M_2\} < a, as claimed, unless both arcs enter a cycle modulo 22 where the values congruent to aa modulo 22 are always exactly aa. More precisely, because the sum of xix_i and xi+3x_{i+3} is odd, one of them is not congruent to aa and so has its value strictly less than aa. Thus both arcs must pass through the state (a,a,a,d)(a, a, a, d) (modulo 22, this is either (0,0,0,1)(0, 0, 0, 1) or (1,1,1,0)(1, 1, 1, 0)) in a cycle of length four. It is easy to check that for this to happen, d=0d = 0. Therefore, we can achieve the position
aaaa0. a^a a^a 0.
From this position, the sequence of moves
aaaa0a0a0a000000 a^a a^a 0 \to a^{\begin{smallmatrix} 0 & a \\ 0 & a \end{smallmatrix}} 0 \to \begin{smallmatrix} 0 & 0 \\ 0 & 0 \end{smallmatrix} 0
completes the task.

Solution 3

(By Tiankai Liu) In the beginning, because A+B+C+D+E+FA+B+C+D+E+F is odd, either A+C+EA+C+E or B+D+FB+D+F is odd; assume without loss of generality it is the former. Perform the following steps repeatedly.

a. In this case we assume that A,C,EA, C, E are all nonzero. Suppose without loss of generality that ACEA \ge C \ge E. Perform the sequence of moves
ACFBDAC(AE)(AC)E(CE)C(AE)(AC)(AC)C(CE), A \overset{B}{\underset{F}{C}} D \to A \overset{(\mathbf{A}-\mathbf{C})}{\underset{(\mathbf{A}-\mathbf{E})}{C}} E \overset{(\mathbf{C}-\mathbf{E})}{\to} \mathbf{C} \overset{(A-C)}{(A-E)} \overset{C}{\underset{(\mathbf{A}-\mathbf{C})}{\to}} (C-E),
which decreases the sum of the numbers in positions A,C,EA, C, E while keeping that sum odd.

b. In this case we assume that exactly one among A,C,EA, C, E is zero. Assume without loss of generality that AC>E=0A \ge C > E = 0. Then, because A+C+EA+C+E is odd, AA must be strictly greater than CC. Therefore, A<A2C<A-A < A - 2C < A, and the sequence of moves
ACFB0DACA(AC)0CCA(AC)(AC)A2CC, A \overset{B}{\underset{F}{C}} 0 D \to A \overset{(\mathbf{A}-\mathbf{C})}{\underset{\mathbf{A}}{C}} 0 \overset{\mathbf{C}}{\to} \mathbf{C} \overset{(A-C)}{\underset{A}{\to}} (A-C) |\mathbf{A}-2\mathbf{C}| \mathbf{C},
decreases the sum of the numbers in positions A,C,EA, C, E while keeping that sum odd.

c. In this case we assume that exactly two among A,C,EA, C, E are zero. Assume without loss of generality that A>C=E=0A > C = E = 0. Then perform the sequence of moves
ACFB0DA0AA0000A0A0000000. A \overset{B}{\underset{F}{C}} 0 D \to A \overset{\mathbf{A}}{\underset{\mathbf{A}}{0}} 0 \overset{\mathbf{0}}{\to} \mathbf{0} \overset{A 0}{\underset{A 0}{0}} \overset{\mathbf{0}}{\to} \mathbf{0} \overset{\mathbf{0}}{\underset{\mathbf{0}}{0}} 0.
By repeatedly applying step (a) as long as it applies, then doing the same for step (b) if necessary, and finally applying step (c) if necessary,
(000000) \begin{pmatrix} 0 & 0 & 0 \\ 0 & 0 & 0 \end{pmatrix}
can eventually be achieved.

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.