How many ways are there to place indistinguishable red chips, indistinguishable blue chips, and indistinguishable green chips in the squares of a grid so that no two chips of the same color are directly adjacent to each other, either vertically or horizontally?
- A)
- B)
- C)
- D)
- E)
Answer
E
Key insight
The center touches every edge square, so its color's other two chips sit in corners; the leftover squares form paths that the remaining two colors must color alternately.
Solution
Suppose the center chip is red (multiply by 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 . Coloring a path with blue and green so no neighbors match means alternating, so the path is with of color and of ; the isolated square takes the third . Choosing gives colorings. Subtotal .
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 : top-middle, top-right, right-middle; and left-middle, bottom-left, bottom-middle. Each path alternates as ; to use exactly three blues and three greens, one path is and the other : colorings. Subtotal .
With a red center there are arrangements, so in total .
The answer is .
Why this works
Start with the most connected square: the center's color is forced into the corners, and removing those squares breaks the grid into paths, where a two-coloring with no adjacent repeats is rigid (determined by one square). The only bookkeeping left is the count of each color, which distinguishes the two cases. Reducing a grid problem to paths is a recurring trick for adjacency constraints.
The trap
Treating the arrangement as three rows each needing a permutation of the colors (which ignores vertical adjacency), or forgetting to multiply by 3 for the center's color.
Common mistakes
- Treating the arrangement as three rows each needing a permutation of the colors (which ignores vertical adjacency), or forgetting to multiply by 3 for the center's color.
- In Case 1, giving the isolated square the color that already appears three times on the path, which leaves color counts of 4 and 2 instead of 3 and 3.
Techniques
Split into exhaustive cases and handle each · Exploit symmetry to reduce work or pair up objects