Olympiad Maths Prep

Track / Stage 10 / 39 of 40 #1999 of 2000

Problem 1999

Hardest shortlist tier
Combinatorics Difficulty 9.3 Prove it 51st IMO Shortlisted Problems · IMO

Six stacks S1,,S6S_{1}, \ldots, S_{6} of coins are standing in a row. In the beginning every stack contains a single coin. There are two types of allowed moves:

Move 1: If stack SkS_{k} with 1k51 \leq k \leq 5 contains at least one coin, you may remove one coin from SkS_{k} and add two coins to Sk+1S_{k+1}.

Move 2: If stack SkS_{k} with 1k41 \leq k \leq 4 contains at least one coin, then you may remove one coin from SkS_{k} and exchange stacks Sk+1S_{k+1} and Sk+2S_{k+2}.

Decide whether it is possible to achieve by a sequence of such moves that the first five stacks are empty, whereas the sixth stack S6S_{6} contains exactly 2010201020102010^{2010^{2010}} coins.

This one wants a proof. Work it on paper, read the official solution, then mark yourself honestly — the ladder only means something if the record is true.

Official solution

Denote by (a1,a2,,an)(a1,a2,,an)\left(a_{1}, a_{2}, \ldots, a_{n}\right) \rightarrow\left(a_{1}^{\prime}, a_{2}^{\prime}, \ldots, a_{n}^{\prime}\right) the following: if some consecutive stacks contain a1,,ana_{1}, \ldots, a_{n} coins, then it is possible to perform several allowed moves such that the stacks contain a1,,ana_{1}^{\prime}, \ldots, a_{n}^{\prime} coins respectively, whereas the contents of the other stacks remain unchanged.

Let A=20102010A=2010^{2010} or A=201020102010A=2010^{2010^{2010}}, respectively. Our goal is to show that
(1,1,1,1,1,1)(0,0,0,0,0,A) (1,1,1,1,1,1) \rightarrow(0,0,0,0,0, A)
First we prove two auxiliary observations.

Lemma 1. (a,0,0)(0,2a,0)\quad(a, 0,0) \rightarrow\left(0,2^{a}, 0\right) for every a1a \geq 1.

Proof. We prove by induction that (a,0,0)(ak,2k,0)(a, 0,0) \rightarrow\left(a-k, 2^{k}, 0\right) for every 1ka1 \leq k \leq a. For k=1k=1, apply Move 1 to the first stack:
(a,0,0)(a1,2,0)=(a1,21,0) (a, 0,0) \rightarrow(a-1,2,0)=\left(a-1,2^{1}, 0\right)
Now assume that k<ak<a and the statement holds for some k<ak<a. Starting from (ak,2k,0)\left(a-k, 2^{k}, 0\right), apply Move 1 to the middle stack 2k2^{k} times, until it becomes empty. Then apply Move 2 to the first stack:
(ak,2k,0)(ak,2k1,2)(ak,0,2k+1)(ak1,2k+1,0) \left(a-k, 2^{k}, 0\right) \rightarrow\left(a-k, 2^{k}-1,2\right) \rightarrow \cdots \rightarrow\left(a-k, 0,2^{k+1}\right) \rightarrow\left(a-k-1,2^{k+1}, 0\right)
Hence,
(a,0,0)(ak,2k,0)(ak1,2k+1,0) (a, 0,0) \rightarrow\left(a-k, 2^{k}, 0\right) \rightarrow\left(a-k-1,2^{k+1}, 0\right)

Lemma 2. For every positive integer nn, let Pn=22.2nP_{n}=\underbrace{2^{2^{.2}}}_{n} (e.g. P3=222=16P_{3}=2^{2^{2}}=16 ). Then (a,0,0,0)(0,Pa,0,0)(a, 0,0,0) \rightarrow\left(0, P_{a}, 0,0\right) for every a1a \geq 1.

Proof. Similarly to Lemma 1, we prove that (a,0,0,0)(ak,Pk,0,0)(a, 0,0,0) \rightarrow\left(a-k, P_{k}, 0,0\right) for every 1ka1 \leq k \leq a.
For k=1k=1, apply Move 1 to the first stack:
(a,0,0,0)(a1,2,0,0)=(a1,P1,0,0) (a, 0,0,0) \rightarrow(a-1,2,0,0)=\left(a-1, P_{1}, 0,0\right)
Now assume that the lemma holds for some k<ak<a. Starting from ( ak,Pk,0,0a-k, P_{k}, 0,0 ), apply Lemma 1, then apply Move 1 to the first stack:
(ak,Pk,0,0)(ak,0,2Pk,0)=(ak,0,Pk+1,0)(ak1,Pk+1,0,0) \left(a-k, P_{k}, 0,0\right) \rightarrow\left(a-k, 0,2^{P_{k}}, 0\right)=\left(a-k, 0, P_{k+1}, 0\right) \rightarrow\left(a-k-1, P_{k+1}, 0,0\right)
Therefore,
(a,0,0,0)(ak,Pk,0,0)(ak1,Pk+1,0,0) (a, 0,0,0) \rightarrow\left(a-k, P_{k}, 0,0\right) \rightarrow\left(a-k-1, P_{k+1}, 0,0\right)

Now we prove the statement of the problem.

First apply Move 1 to stack 5, then apply Move 2 to stacks S4,S3,S2S_{4}, S_{3}, S_{2} and S1S_{1} in this order. Then apply Lemma 2 twice:
(1,1,1,1,1,1)(1,1,1,1,0,3)(1,1,1,0,3,0)(1,1,0,3,0,0)(1,0,3,0,0,0)(0,3,0,0,0,0)(0,0,P3,0,0,0)=(0,0,16,0,0,0)(0,0,0,P16,0,0) \begin{gathered} (1,1,1,1,1,1) \rightarrow(1,1,1,1,0,3) \rightarrow(1,1,1,0,3,0) \rightarrow(1,1,0,3,0,0) \rightarrow(1,0,3,0,0,0) \rightarrow \\ \rightarrow(0,3,0,0,0,0) \rightarrow\left(0,0, P_{3}, 0,0,0\right)=(0,0,16,0,0,0) \rightarrow\left(0,0,0, P_{16}, 0,0\right) \end{gathered}
We already have more than AA coins in stack S4S_{4}, since
A201020102010<(211)20102010=21120102010<220102011<2(211)2011=22112011<22215<P16. A \leq 2010^{2010^{2010}}<\left(2^{11}\right)^{2010^{2010}}=2^{11 \cdot 2010^{2010}}<2^{2010^{2011}}<2^{\left(2^{11}\right)^{2011}}=2^{2^{11 \cdot 2011}}<2^{2^{2^{15}}}<P_{16} .
To decrease the number of coins in stack S4S_{4}, apply Move 2 to this stack repeatedly until its size decreases to A/4A / 4. (In every step, we remove a coin from S4S_{4} and exchange the empty stacks S5S_{5} and S6S_{6}.)
(0,0,0,P16,0,0)(0,0,0,P161,0,0)(0,0,0,P162,0,0)(0,0,0,A/4,0,0) \begin{aligned} \left(0,0,0, P_{16}, 0,0\right) \rightarrow & \left(0,0,0, P_{16}-1,0,0\right) \rightarrow\left(0,0,0, P_{16}-2,0,0\right) \rightarrow \\ & \rightarrow \cdots \rightarrow(0,0,0, A / 4,0,0) \end{aligned}
Finally, apply Move 1 repeatedly to empty stacks S4S_{4} and S5S_{5} :
(0,0,0,A/4,0,0)(0,0,0,0,A/2,0)(0,0,0,0,0,A) (0,0,0, A / 4,0,0) \rightarrow \cdots \rightarrow(0,0,0,0, A / 2,0) \rightarrow \cdots \rightarrow(0,0,0,0,0, A)

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.