Let be a positive integer. We arrange circles in a triangle with rows, such that the row contains exactly circles. The following figure shows the case .
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 , find the largest value of such that if one circle from every row is coloured red, we can always find a ninja-path in which at least of the circles are red.
Solutions — 3
Solution 1
Answer: The maximum value is .
Solution 1. Write so that we have .
We first provide a construction where every ninja-path passes through at most red circles. For the row for and , we colour the circle.
Then every ninja-path passes through at most one red circle in each of the rows for each . It follows that every ninja-path passes through at most red circles.
We now prove that for every colouring, there exists a ninja-path going through at least red circles. For each circle , we assign the maximum number of red circles in a ninja-path that starts at the top of the triangle and ends at .
Note that
- if is not red, then the number assigned to is the maximum of the number assigned to the one or two circles above , and
- if is red, then the number assigned to is one plus the above maximum.
Write for the numbers in row , and let be the maximum among these numbers. Then the numbers in row will be at least
not taking into account the fact that one of the circles in row is red. On the other hand, for the red circle in row , the lower bound on the assigned number can be increased by 1. Therefore the sum of the numbers in row is at least
Using this observation, we prove the following claim.
Claim 1. Let be the sum of the numbers assigned to circles in row . Then for , we have .
Proof. We use induction on . This is clear for , since the number in the first row is always 1. For the induction step, suppose that . Then the maximum value assigned to a circle in row is at least . As a consequence, for every , there is a circle on row with number at least . Then by our observation above, we have
Then we get
This completes the inductive step.
For , this immediately implies that some circle in row has number at least . This shows that there is a ninja-path passing through at least red circles.
Solution 2
Solution 2. We give an alternative proof that there exists a ninja-path passing through at least 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 , denote by the number of red circles with number .
Claim 2. If the red circle on row has number , then .
Proof. Note that if two circles and are both assigned the same number , 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 at its top along with lines that together cover all other circles.
In each set, there can be at most one red circle with number , and therefore .
We observe that if there exists a red circle with number , then there also exists a red circle with number in some row that is above the row containing . This is because the second last red circle in the ninja-path ending at has number .
Claim 3. We have for every positive integer .
Proof. We prove by induction on . The base case 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 and prove the statement for . If , there is nothing to prove. Otherwise, let be minimal such that the red circle on row has number . Then all the red circles on row must have number less than . This shows that
This proves that , and by Claim 2, we also have . Therefore .
We now see that
Therefore there exists a red circle with number at least , which means that there exists a ninja-path passing through at least red circles.
Solution 3
Solution 3. We provide yet another proof that there exists a ninja-path passing through at least red circles. In this solution, we assign to a circle the maximum number of red circles on a ninja-path starting at (including itself).
Denote by the number of red circles with number . Note that if a red circle has number , and there is a ninja-path from to another red circle , then the number assigned to must be less than .
Claim 4. If the red circle on row has number less than or equal to , then .
Proof. This proof is same as the proof of Claim 2. The additional input is that if the red circle on row has number strictly less than , then the smaller triangle cannot have a red circle with number .
Claim 5. We have
for all .
Proof. We use induction on . The base case 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 and that the statement is true for . Let be minimal such that the red circle on row has number less than or equal to . Then all the red circles with number less than or equal to lie on rows , and therefore
On the other hand, the induction hypothesis together with the fact that shows that
Averaging the two inequalities gives
Since the left hand side is an integer, we conclude that
This completes the induction step.
Taking , we obtain
This implies that there exists a ninja-path passing through at least red circles.