AMC 10 Step by Step

2026 AMC 10B Problem 16

P16-20~4 minPrint

The 44 squares in a 2×22 \times 2 grid of squares are each colored either solid red, white, or blue. In how many ways can this be done so that no square colored red shares a side with a square colored blue?

Log in to save your progress.
Show solution without answering

Key insight

Diagonal squares do not share a side. Color one diagonal pair first; each remaining square touches both of them, so the two can be chosen separately.

Solution

Number the squares like this:

1122
3344

Write R, W, B for red, white, blue.

  1. Who touches whom. The pairs of squares that share a side are 11–22, 11–33, 22–44 and 33–44. Squares 11 and 44 are diagonal: they touch only at a corner, so they do not share a side. The same is true of squares 22 and 33.

So square 22 has exactly two neighbors, squares 11 and 44. Square 33 has the same two neighbors, squares 11 and 44.

  1. The plan. Color squares 11 and 44 first. They do not share a side, so any colors are allowed there. After that, square 22 only has to get along with squares 11 and 44, and so does square 33. Squares 22 and 33 do not affect each other, so we can count the choices for each and multiply.

3. The rule for square 22 (and for square 33).
- White is always allowed.
- Red is allowed when neither neighbor is blue.
- Blue is allowed when neither neighbor is red.

  1. Go through the cases for squares 11 and 44.
Squares 11 and 44Ways to color themColors allowed for square 22Ways for squares 22 and 33Colorings
both white (WW)11R, W, B3⋅3=93 \cdot 3 = 91⋅9=91 \cdot 9 = 9
some red, no blue (RR, RW, WR)33R, W2⋅2=42 \cdot 2 = 43⋅4=123 \cdot 4 = 12
some blue, no red (BB, BW, WB)33W, B2⋅2=42 \cdot 2 = 43⋅4=123 \cdot 4 = 12
one red, one blue (RB, BR)22W1⋅1=11 \cdot 1 = 12⋅1=22 \cdot 1 = 2

Check that no case is missing: 1+3+3+2=91 + 3 + 3 + 2 = 9, and there are 3⋅3=93 \cdot 3 = 9 ways to color two squares with three colors.

5. Add.
9+12+12+2=35.9 + 12 + 12 + 2 = 35.

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

Why this works

In a 2×22 \times 2 grid each square has two neighbors, and the two squares on a diagonal have the same two neighbors. Once one diagonal is colored, the other two squares no longer depend on each other, so their choices multiply. In coloring problems, look for a few squares to color first that separate the rest into independent pieces.

Alternative approach

Sort the colorings by which colors appear.

  1. No red anywhere. Each square is white or blue, and nothing can go wrong: 24=162^4 = 16 colorings.
  2. No blue anywhere. Each square is white or red: 24=162^4 = 16 colorings.
  3. Counted twice. The all-white coloring is in both groups. So the colorings that are missing red or missing blue number 16+16−1=3116 + 16 - 1 = 31.
  4. Both red and blue appear. Pick any blue square. Its two side neighbors cannot be red, so the only place a red square can be is diagonally across from it. In the same way, that red square's two side neighbors cannot be blue. Those two neighbors are the other two squares, and they are now neither red nor blue, so they are white. So the coloring is: one red, the square diagonally across blue, the other two white. The red square can be any of the 44 squares, giving 44 colorings.
  5. Total. 31+4=3531 + 4 = 35.
Concise solution

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

Label the squares 1,21, 2 (top row) and 3,43, 4 (bottom row). Squares 22 and 33 each share sides with exactly squares 11 and 44, and not with each other. Color squares 11 and 44 first; then squares 22 and 33 are chosen separately.

  • 11 and 44 both white (11 way): squares 22 and 33 are free, 32=93^2 = 9.
  • Red but no blue on 11 and 44 (33 ways): squares 22 and 33 are red or white, 22=42^2 = 4 each, total 1212.
  • Blue but no red on 11 and 44 (33 ways): total 1212 in the same way.
  • One red and one blue on 11 and 44 (22 ways): squares 22 and 33 must be white, total 22.

Altogether 9+12+12+2=359 + 12 + 12 + 2 = 35.

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

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.