AMC 10 Step by Step

2021 AMC 10A Problem 25

P21-25~9 minPrint

How many ways are there to place 33 indistinguishable red chips, 33 indistinguishable blue chips, and 33 indistinguishable green chips in the squares of a 3×33 \times 3 grid so that no two chips of the same color are directly adjacent to each other, either vertically or horizontally?

Log in to save your progress.
Show solution without answering

Key insight

The center touches all four edge squares, so its color's other two chips must go in corners. The empty squares then form paths the other two colors alternate along.

Solution

Name the squares like this:

TLTTR
LMR
BLBBR

The center MM touches more squares than any other, so it limits the most. Start there.

1. Say the center chip is red. (At the end, multiply by 33 for the three possible center colors.)
2. MM touches TT, LL, RR and BB, so none of those can be red. The other two red chips must go in corners. Corners never touch each other, so any two corners are allowed. Of the 66 pairs of corners, 44 are on the same side of the grid and 22 are opposite each other.
3. Case 1: red corners on the same side, for example TLTL and TRTR.
- Square TT touches only TLTL, TRTR and MM, which are all red. So TT can take either blue or green without touching another empty square.
- The other five empty squares form a chain LL – BLBL – BB – BRBR – RR, each touching the next. With only blue and green allowed, the colors along the chain must alternate: blue, green, blue, green, blue, or green, blue, green, blue, green.
- The first way uses 33 blues and 22 greens, so TT must be green. The second way forces TT to be blue. That is 22 ways.
- With 44 choices of side: 4×2=84 \times 2 = 8 arrangements.
4. Case 2: red corners opposite, for example TLTL and BRBR.
- The empty squares form two separate chains: TT – TRTR – RR and LL – BLBL – BB.
- Each chain alternates, so it looks like X,Y,XX, Y, X. To use exactly 33 blues and 33 greens, one chain must be blue, green, blue and the other green, blue, green: 22 ways.
- With 22 choices of diagonal: 2×2=42 \times 2 = 4 arrangements.
5. With a red center there are 8+4=128 + 4 = 12 arrangements. With any of the 33 colors in the center, there are 3×12=363 \times 12 = 36.

The answer is (E) 36\boxed{\textbf{(E)}\ 36}.

Why this works

Start with the square that touches the most others: its color is forced into the corners. Removing those squares breaks the grid into short chains, and a chain colored with two colors that can't repeat must alternate, so it is fixed once you pick its first color. All that remains is making the color counts come out to 33 each, which is what separates the two cases.

Concise solution

A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.

Suppose the center chip is red (multiply by 33 at the end for the center's color). The center is adjacent to all four edge-middle squares, so the other two red chips must occupy two of the four corners; corners are never adjacent to each other, so any pair of corners is allowed.

Case 1: the two red corners share a side of the grid (4 choices, e.g. top-left and top-right). The top-middle square is then surrounded by red on all three sides and is isolated. The other five empty squares, left-middle, bottom-left, bottom-middle, bottom-right, right-middle, form a path of length 55. Coloring a path with blue and green so no neighbors match means alternating, so the path is XYXYXXYXYX with 33 of color XX and 22 of YY; the isolated square takes the third YY. Choosing XX gives 22 colorings. Subtotal 4⋅2=84 \cdot 2 = 8.

Case 2: the two red corners are opposite (2 choices, e.g. top-left and bottom-right). The empty squares split into two paths of length 33: top-middle, top-right, right-middle; and left-middle, bottom-left, bottom-middle. Each path alternates as XYXXYX; to use exactly three blues and three greens, one path is BGBBGB and the other GBGGBG: 22 colorings. Subtotal 2⋅2=42 \cdot 2 = 4.

With a red center there are 8+4=128 + 4 = 12 arrangements, so in total 3⋅12=363 \cdot 12 = 36.

The answer is (E) 36\boxed{\textbf{(E)}\ 36}.

Review in the AoPS books

Similar problems

Problem © Mathematical Association of America (MAA), American Mathematics Competitions. Reproduced for non-commercial educational use. Solution and commentary are original to this site.