Maths Olympiad Prep

Library / /647 of 860

Combinatorics Difficulty 5.3 AIME, harder Find the answer

The cells of a 5×55 \times 5 grid are each colored red, white, or blue. Sam starts at the bottom-left cell of the grid and walks to the top-right cell by taking steps one cell either up or to the right. Thus, he passes through 9 cells on his path, including the start and end cells. Compute the number of colorings for which Sam is guaranteed to pass through a total of exactly 3 red cells, exactly 3 white cells, and exactly 3 blue cells no matter which route he takes.

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

Solution

Let ci,jc_{i, j} denote the cell in the ii-th row from the bottom and the jj-th column from the left, so Sam starts at c1,1c_{1,1} and is traveling to c5,5c_{5,5}. The key observation (from, say, trying small cases) is that Claim. For 1i,j<51 \leq i, j<5, the cells ci+1,jc_{i+1, j} and ci,j+1c_{i, j+1} must be the same color. Proof. Choose a path PP from c1,1c_{1,1} to ci,jc_{i, j}, and a path QQ from ci+1,j+1c_{i+1, j+1} to c5,5c_{5,5}. Then consider the two paths Pci+1,jQP \rightarrow c_{i+1, j} \rightarrow Q and Pci,j+1QP \rightarrow c_{i, j+1} \rightarrow Q. These both must have 3 cells of each color, but they only differ at cells ci+1,jc_{i+1, j} and ci,j+1c_{i, j+1}. So these cells must be the same color. Hence, every diagonal Dk={ca,b:a+b=k}D_{k}=\left\{c_{a, b}: a+b=k\right\} must consist of cells of the same color. Moreover, any path that goes from c1,1c_{1,1} to c5,5c_{5,5} contains exactly one cell in DkD_{k} for k=2,3,,10k=2,3, \ldots, 10. So we simply need to color the diagonals D2,,D10D_{2}, \ldots, D_{10} such that there are 3 diagonals of each color. The number of ways to do this is (93,3,3)=1680\binom{9}{3,3,3}=1680.

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.