Maths Olympiad Prep

Library / /79 of 106

Combinatorics Difficulty 8.7 Shortlist Find the answer

Let nn be a positive integer. A Japanese triangle consists of 1+2++n1 + 2 + \dots + n circles arranged in an equilateral triangular shape such that for each i=1i = 1, 22, \dots, nn, the ithi^{th} row contains exactly ii circles, exactly one of which is coloured red. A ninja path in a Japanese triangle is a sequence of nn 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 n=6n = 6, along with a ninja path in that triangle containing two red circles.

Figure (Asymptote source)
// credit to vEnhance for the diagram (which was better than my original asy):
size(4cm);
  pair X = dir(240); pair Y = dir(0);
  path c = scale(0.5)*unitcircle;
  int[] t = {0,0,2,2,3,0};
  for (int i=0; i<=5; ++i) {
    for (int j=0; j<=i; ++j) {
      filldraw(shift(i*X+j*Y)*c, (t[i]==j) ? lightred : white);
      draw(shift(i*X+j*Y)*c);
    }
  }
  draw((0,0)--(X+Y)--(2*X+Y)--(3*X+2*Y)--(4*X+2*Y)--(5*X+2*Y),linewidth(1.5));
  path q = (3,-3sqrt(3))--(-3,-3sqrt(3));
  draw(q,Arrows(TeXHead, 1));
  label("$n = 6$", q, S);
label("$n = 6$", q, S);

In terms of nn, find the greatest kk such that in each Japanese triangle there is a ninja path containing at least kk red circles.

A number or a short expression. Spacing and $ signs are ignored.

Solution

Given a positive integer n n , consider a Japanese triangle consisting of 1+2++n 1 + 2 + \dots + n circles arranged in an equilateral triangular formation, where for each row i i , there are i i circles, with exactly one circle in each row being colored red. A ninja path is a sequence of n n circles starting from the topmost circle, proceeding to the bottom row by moving to one of the two circles immediately below, finishing exactly in the bottom row. Our goal is to find the greatest k k such that for every Japanese triangle, there exists a ninja path that contains at least k k red circles.

To solve this:

1. Understanding the Path and Problem:
The top row has 1 node, and each subsequent row i+1 i+1 introduces one additional node per path possibility (two nodes for each node in the previous row). Thus, each decision expands the number of potential paths exponentially. We aim to maximize the red nodes (one per row), demonstrating that such paths can be found for the maximum possible number of rows.

2. **Evaluating k k **:
The key is realizing that each row i i presents a binary choice of paths (either `left` or `right`). We have n n rows total, and since each row contributes exactly one red node possibility, the arrangement becomes akin to a binary tree traversal where we pick nodes with red inclusivity.

3. Applying Logarithmic Conceptualization:
- Each round offers a binary choice, reminiscent of binary exponentiation.
- With n n rows, the maximum path achieving full containment of red nodes is bounded logarithmically, providing log2n+1 \lfloor \log_2 n \rfloor + 1 as the path-saturating extent that ensures maximal red inclusivity.

Therefore, the greatest k k such that a ninja path includes a red circle in each of k k different rows is:
k=log2n+1 k = \lfloor \log_2 n \rfloor + 1

Thus, the greatest number of red circles k k that can be contained within every possible path in a Japanese triangle is:
log2n+1 \boxed{\lfloor \log_2 n \rfloor + 1}

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: Omni-MATH, licensed Apache-2.0. Statement and solution reproduced as published; topic and difficulty added by this site.