olymmath

OIM 2022 Problem 4

    Let n>2n> 2 be a positive integer. Given is a horizontal row of nn cells where each cell is painted blue or red. We say that a block is a sequence of consecutive boxes of the same color. Arepito the crab is initially standing at the leftmost cell. On each turn, he counts the number mm of cells belonging to the largest block containing the square he is on, and does one of the following:

    If the square he is on is blue and there are at least mm squares to the right of him, Arepito moves mm squares to the right;

    If the square he is in is red and there are at least mm squares to the left of him, Arepito moves mm cells to the left;

    In any other case, he stays on the same square and does not move any further.

    For each nn , determine the smallest integer kk for which there is an initial coloring of the row with kk blue cells, for which Arepito will reach the rightmost cell.

    Dataset text AI-MO AoPS. Quoted with source.

    Solutions

    No solution is on olymmath yet. Official and human solutions come first when they arrive. AI solutions come after them, with a label.

    Add a solution

    Similar problems

    These problems have the most words in common with this statement.

    Locator ibero/2022/p4 · Tag 76PA03EE24 · Edit this page on GitHub · Keys: j next, k previous