Maths Olympiad Prep

Library / IMO Shortlist /296 of 365

IMO Shortlist

Combinatorics Difficulty 8.9 Shortlist Prove it IMO

Let nn be a positive integer. We arrange 1+2+⋯+n1+2+\cdots+n circles in a triangle with nn rows, such that the ithi^{\text{th}} row contains exactly ii circles. The following figure shows the case n=6n=6.
Figure 1
In this triangle, a ninja-path is a sequence of circles obtained by repeatedly going from a circle to one of the two circles directly below it. In terms of nn, find the largest value of kk such that if one circle from every row is coloured red, we can always find a ninja-path in which at least kk of the circles are red.

Solutions — 3

Solution 1

Answer: The maximum value is k=1+⌊log⁡2n⌋k=1+\left\lfloor\log_{2} n\right\rfloor.

Solution 1. Write N=⌊log⁡2n⌋N=\left\lfloor\log_{2} n\right\rfloor so that we have 2N⩽n⩽2N+1−12^{N} \leqslant n \leqslant 2^{N+1}-1.
We first provide a construction where every ninja-path passes through at most N+1N+1 red circles. For the row i=2a+bi=2^{a}+b for 0⩽a⩽N0 \leqslant a \leqslant N and 0⩽b<2a0 \leqslant b<2^{a}, we colour the (2b+1)th(2b+1)^{\text{th}} circle.
Figure 2
Then every ninja-path passes through at most one red circle in each of the rows 2a,2a+1,…,2a+1−12^{a}, 2^{a}+ 1, \ldots, 2^{a+1}-1 for each 0⩽a⩽N0 \leqslant a \leqslant N. It follows that every ninja-path passes through at most N+1N+1 red circles.

We now prove that for every colouring, there exists a ninja-path going through at least N+1N+1 red circles. For each circle CC, we assign the maximum number of red circles in a ninja-path that starts at the top of the triangle and ends at CC.
Figure 3
Note that
- if CC is not red, then the number assigned to CC is the maximum of the number assigned to the one or two circles above CC, and
- if CC is red, then the number assigned to CC is one plus the above maximum.

Write v1,…,viv_{1}, \ldots, v_{i} for the numbers in row ii, and let vmv_{m} be the maximum among these numbers. Then the numbers in row i+1i+1 will be at least
v1,…,vm−1,vm,vm,vm+1,…,vi, v_{1}, \ldots, v_{m-1}, v_{m}, v_{m}, v_{m+1}, \ldots, v_{i},
not taking into account the fact that one of the circles in row i+1i+1 is red. On the other hand, for the red circle in row i+1i+1, the lower bound on the assigned number can be increased by 1. Therefore the sum of the numbers in row i+1i+1 is at least
(v1+⋯+vi)+vm+1. \left(v_{1}+\cdots+v_{i}\right)+v_{m}+1.
Using this observation, we prove the following claim.

Claim 1. Let σk\sigma_{k} be the sum of the numbers assigned to circles in row kk. Then for 0⩽j⩽N0 \leqslant j \leqslant N, we have σ2j⩾j⋅2j+1\sigma_{2^{j}} \geqslant j \cdot 2^{j}+1.

Proof. We use induction on jj. This is clear for j=0j=0, since the number in the first row is always 1. For the induction step, suppose that σ2j⩾j⋅2j+1\sigma_{2^{j}} \geqslant j \cdot 2^{j}+1. Then the maximum value assigned to a circle in row 2j2^{j} is at least j+1j+1. As a consequence, for every k⩾2jk \geqslant 2^{j}, there is a circle on row kk with number at least j+1j+1. Then by our observation above, we have
σk+1⩾σk+(j+1)+1=σk+(j+2). \sigma_{k+1} \geqslant \sigma_{k}+(j+1)+1=\sigma_{k}+(j+2).
Then we get
σ2j+1⩾σ2j+2j(j+2)⩾j⋅2j+1+2j(j+2)=(j+j+2)2j+1=(j+1)2j+1+1. \sigma_{2^{j+1}} \geqslant \sigma_{2^{j}}+2^{j}(j+2) \geqslant j \cdot 2^{j}+1+2^{j}(j+2)=(j+j+2) 2^{j}+1=(j+1) 2^{j+1}+1.
This completes the inductive step. □\square

For j=Nj=N, this immediately implies that some circle in row 2N2^{N} has number at least N+1N+1. This shows that there is a ninja-path passing through at least N+1N+1 red circles.

Solution 2

Solution 2. We give an alternative proof that there exists a ninja-path passing through at least N+1N+1 red circles. Assign numbers to circles as in the previous solution, but we only focus on the numbers assigned to red circles.

For each positive integer ii, denote by eie_{i} the number of red circles with number ii.

Claim 2. If the red circle on row ll has number ii, then ei⩽le_{i} \leqslant l.

Proof. Note that if two circles CC and C′C^{\prime} are both assigned the same number ii, then there cannot be a ninja-path joining the two circles. We partition the triangle into a smaller triangle with the red circle in row ll at its top along with l−1l-1 lines that together cover all other circles.
Figure 4
In each set, there can be at most one red circle with number ii, and therefore ei⩽le_{i} \leqslant l. □\square

We observe that if there exists a red circle CC with number i⩾2i \geqslant 2, then there also exists a red circle with number i−1i-1 in some row that is above the row containing CC. This is because the second last red circle in the ninja-path ending at CC has number i−1i-1.

Claim 3. We have ei⩽2i−1e_{i} \leqslant 2^{i-1} for every positive integer ii.

Proof. We prove by induction on ii. The base case i=1i=1 is clear, since the only red circle with number 1 is the one at the top of the triangle. We now assume that the statement is true for 1⩽i⩽j−11 \leqslant i \leqslant j-1 and prove the statement for i=ji=j. If ej=0e_{j}=0, there is nothing to prove. Otherwise, let ll be minimal such that the red circle on row ll has number jj. Then all the red circles on row 1,…,l−11, \ldots, l-1 must have number less than jj. This shows that
l−1⩽e1+e2+⋯+ej−1⩽1+2+⋯+2j−2=2j−1−1. l-1 \leqslant e_{1}+e_{2}+\cdots+e_{j-1} \leqslant 1+2+\cdots+2^{j-2}=2^{j-1}-1.
This proves that l⩽2j−1l \leqslant 2^{j-1}, and by Claim 2, we also have ej⩽le_{j} \leqslant l. Therefore ej⩽2j−1e_{j} \leqslant 2^{j-1}. □\square

We now see that
e1+e2+⋯+eN⩽1+⋯+2N−1=2N−1<n. e_{1}+e_{2}+\cdots+e_{N} \leqslant 1+\cdots+2^{N-1}=2^{N}-1<n.
Therefore there exists a red circle with number at least N+1N+1, which means that there exists a ninja-path passing through at least N+1N+1 red circles.

Solution 3

Solution 3. We provide yet another proof that there exists a ninja-path passing through at least N+1N+1 red circles. In this solution, we assign to a circle CC the maximum number of red circles on a ninja-path starting at CC (including CC itself).
Figure 5
Denote by fif_{i} the number of red circles with number ii. Note that if a red circle CC has number ii, and there is a ninja-path from CC to another red circle C′C^{\prime}, then the number assigned to C′C^{\prime} must be less than ii.

Claim 4. If the red circle on row ll has number less than or equal to ii, then fi⩽lf_{i} \leqslant l.

Proof. This proof is same as the proof of Claim 2. The additional input is that if the red circle on row ll has number strictly less than ii, then the smaller triangle cannot have a red circle with number ii. □\square

Claim 5. We have
f1+f2+⋯+fi⩽n−⌊n2i⌋ f_{1}+f_{2}+\cdots+f_{i} \leqslant n-\left\lfloor\frac{n}{2^{i}}\right\rfloor
for all 0⩽i⩽N0 \leqslant i \leqslant N.

Proof. We use induction on ii. The base case i=0i=0 is clear as the left hand side is the empty sum and the right hand side is zero. For the induction step, we assume that i⩾1i \geqslant 1 and that the statement is true for i−1i-1. Let ll be minimal such that the red circle on row ll has number less than or equal to ii. Then all the red circles with number less than or equal to ii lie on rows l,l+1,…,nl, l+1, \ldots, n, and therefore
f1+f2+⋯+fi⩽n−l+1. f_{1}+f_{2}+\cdots+f_{i} \leqslant n-l+1.
On the other hand, the induction hypothesis together with the fact that fi⩽lf_{i} \leqslant l shows that
f1+⋯+fi−1+fi⩽n−⌊n2i−1⌋+l. f_{1}+\cdots+f_{i-1}+f_{i} \leqslant n-\left\lfloor\frac{n}{2^{i-1}}\right\rfloor+l.
Averaging the two inequalities gives
f1+⋯+fi⩽n−12⌊n2i−1⌋+12. f_{1}+\cdots+f_{i} \leqslant n-\frac{1}{2}\left\lfloor\frac{n}{2^{i-1}}\right\rfloor+\frac{1}{2}.
Since the left hand side is an integer, we conclude that
f1+⋯+fi⩽n−⌊12⌊n2i−1⌋⌋=n−⌊n2i⌋ f_{1}+\cdots+f_{i} \leqslant n-\left\lfloor\frac{1}{2}\left\lfloor\frac{n}{2^{i-1}}\right\rfloor\right\rfloor=n-\left\lfloor\frac{n}{2^{i}}\right\rfloor
This completes the induction step.

Taking i=Ni=N, we obtain
f1+f2+⋯+fN⩽n−⌊n2N⌋<n f_{1}+f_{2}+\cdots+f_{N} \leqslant n-\left\lfloor\frac{n}{2^{N}}\right\rfloor<n
This implies that there exists a ninja-path passing through at least N+1N+1 red circles.

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.