AMC 10 Step by Step

2023 AMC 10A Problem 20

P16-20~6 minPrint

Each square in a 3×33\times3 grid of squares is colored red, white, blue, or green so that every 2×22\times2 square contains one square of each color. One such coloring is shown on the right below. How many different colorings are possible?

figure

Log in to save your progress.
Show solution without answering

Key insight

The center square is in all four 2 by 2 blocks, so pick it first. The four edge-middle squares then use the other three colors, and each corner is forced.

Solution

Start with the square that has the most rules on it, then work outward to the squares with fewer rules.

1. The center. The center square is inside all four 2×22 \times 2 blocks. So no other square can have its color. Choose the center's color: 44 ways. The other eight squares use the remaining 33 colors.
2. The edge-middle squares. Call them Top, Right, Bottom, Left. Each 2×22 \times 2 block contains two of them that are next to each other around the center: Top and Left, Top and Right, Right and Bottom, Bottom and Left. Those two must have different colors. Top and Bottom are never in the same block, so they may match; the same goes for Left and Right.
3. Count colorings of these four squares with 33 colors. Can all four be different? No, there are only 33 colors. So at least one opposite pair matches.
- Both pairs match (Top = Bottom and Left = Right): pick a color for Top and Bottom (33 ways) and a different color for Left and Right (22 ways). That gives 3×2=63 \times 2 = 6.
- Only Top = Bottom: pick their color (33 ways). Left and Right must use the other two colors, one each, in either order (22 ways). That gives 66.
- Only Left = Right: the same count, 66.

Total: 6+6+6=186 + 6 + 6 = 18.
4. The corners. Each corner is in just one 2×22 \times 2 block, together with the center and two edge-middle squares next to each other. Those three already have three different colors, so the corner must take the fourth color. No choice is left.
5. Multiply: 4×18=724 \times 18 = 72.

The answer is (D) 72\boxed{\textbf{(D)}\ 72}.

Why this works

When squares share rules, fill in the most restricted one first (the center is in every block), then the next most restricted (edge-middles are in two blocks each), and let the least restricted squares (corners, one block each) be decided last. Here the corners turn out to have no choice at all, so all the counting happens in the middle ring.

Concise solution

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

The center square belongs to all four 2×22 \times 2 blocks, so no other square may share its color. Choose the center's color: 44 ways. The remaining eight squares use only the other 33 colors.

Label the edge-middle squares TT (top), RR (right), BB (bottom), LL (left). Each 2×22 \times 2 block contains two of them that are adjacent around the ring (TT with LL, TT with RR, RR with BB, BB with LL), and those two must differ. Opposite squares (TT and BB, or LL and RR) share no block and may match. So we need colorings of a 44-cycle with 33 colors where neighbors differ:

  • Both opposite pairs equal (T=BT = B, L=RL = R, different colors): 3⋅2=63 \cdot 2 = 6.
  • Exactly one opposite pair equal: choose which pair (22), its color (33), then the other two squares take the remaining two colors in either order (22): 1212.
  • Neither pair equal: impossible, since T,R,B,LT, R, B, L would need 33 colors with T≠BT \ne B and L≠RL \ne R and all four neighbors distinct, requiring 44 colors.

That gives 6+12=186 + 12 = 18 ring colorings.

Each corner lies in exactly one block, together with the center and two adjacent ring squares, all three of different colors; the corner must take the fourth color, so it is forced.

Total: 4⋅18=724 \cdot 18 = 72.

The answer is (D) 72\boxed{\textbf{(D)}\ 72}.

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.