There are some number of green crawlers in the lowest leftmost unit square and some number of brown crawlers in the highest leftmost unit square of the grid . Each green crawler at each move can pass to the neighboring square located at its up or at its right. Each brown crawler at each move can pass to the neighboring square located at its down or at its right. It turns out that after some number of moves each unit square was visited by at least one crawler. Find the minimal possible number of crawlers.
Problem 1852
Official solution
The answer is . We denote the lowest leftmost, the highest leftmost, the highest rightmost and the lowest rightmost unit squares by , , , , respectively. Example: Let us green crawlers to and brown crawlers to . One green crawler from makes up moves and after that makes right moves and visits all unit squares of the leftmost column and the highest row. All green crawlers start by making one up and one right move, all brown crawlers start by making one down and one right move. Thus, it is sufficient to give an example when green and brown crawlers visit all unit squares of grid. Let us label crawlers by and . Each , makes right moves, after that up moves, after that right moves and finally up moves. Each , makes down moves, after that right moves, after that down moves and finally right moves. It can be readily seen that all unit squares are visited at least once by some crawler.
Now we show that the total number of crawlers is at least for a grid . Suppose that there are green and brown crawlers. Let us define diagonals that are parallel to the main diagonal connecting and so that consists of only one unit square , consists of two unit squares neighboring , ..., consists of unit squares of the main diagonal , , consists of only one unit square . Similarly let us define diagonals that are parallel to the main diagonal connecting and so that consists of only one unit square , consists of two unit squares neighboring , ..., consists of unit squares of the main diagonal , , consists of only one unit square . Obviously we can assume that each green crawler ends its trip at and each brown crawler ends its trip at . Each will visit exactly one unit square of each diagonal . Then green crawlers will visit square in , at most squares in , ..., at most squares in , at most squares in each of the diagonals , at most squares in , at most squares in , square in . Then green squares had visited at most . Similarly, brown crawlers also had visited at most unit squares. The trajectories of two distinctly colored crawlers will intersect in exactly one square. Therefore, the crawlers in total will visit at most squares which should be not less than : . Put : or . Readily since green or and brown crawlers can easily visit all squares. Finally we get . Thus, . Done.