Problem 5.
Let be a positive integer. A Japanese triangle consists of circles arranged in an equilateral triangular shape such that for each , the row contains exactly circles, exactly one of which is coloured red. A ninja path in a Japanese triangle is a sequence of circles obtained by starting in the top row, then repeatedly going from a circle to one of the two circles immediately below it and finishing in the bottom row. Here is an example of a Japanese triangle with , along with a ninja path in that triangle containing two red circles.
In terms of , find the greatest such that in each Japanese triangle there is a ninja path containing at least red circles. proposed by Merlijn Staps, Netherlands Solution 1 The answer is . To prove that one can't do better, note that it suffices to find a construction for that has no path with more than circles. This is doable by placing the red cells "diagonally" such that no path intersects more than one red cell in rows , , through , ..., to . An example with is shown below:
Now we show that is always achievable. To do this, for , let be the maximum number of red circles in any path starting from the th circle in the th row and going to the bottom of the triangle. We have the recurrence and we wish to show that . To do this, our main claim is that for all . This will finish, since we can compute that , and chaining together these inequalities shows that . To prove the inequality, pick a specific . For a given , the number of with is strictly greater than the number of with , unless the former quantity is zero. Therefore On the other hand, if is the location of the colored circle in row , Subtracting these two inequalities yields the claim. Solution 2 The answer is .
Proof that is achievable. Consider the following process. Start with an array composed of zeroes. At any point, if the current array is , replace it with the element array Finally, if the row with circles has a red circle at position , increase by one. It is straightforward to verify that at any point our -element array gives, for each circle in the row with circles, the maximum number of red circles that can be visited starting from said circle. For any array consider the quantity . Main claim. . Proof. Let be such that . Then we have So before adding to any element, the value of is at least . After adding to say, , the value of increases by and therefore Since was chosen to be minimal. This proves the claim. Initially we have and at the end we have a single number . Therefore and as desired. Proof that is the best possible. It suffices to exhibit a construction with rows in which at most red circles can be achieved, then prefixes of the triangle provide constructions for other . For each red circle consider drawing the two diagonals parallel to the non-base sides of the triangles and recording which circles on the bottom row they touch. These form an interval of length where is the number of the row counting from the bottom. For the example in the statement we get the intervals . Notice that the intervals uniquely determine the circles, and that we can visit circle after circle if and only if the interval corresponding to contains the interval corresponding to , therefore it suffices to give a collection of intervals of sizes such that no of them are nested. Consider now the collection We can verify that this arrangement contains all lengths of intervals from to going from left to right, top to bottom. Moreover, no two intervals in the same row contain each other, and therefore any sequence of nested intervals contains at most of them (one from each row), as desired.
|