Problem:
The 4 squares in a 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?
Answer Choices:
A.
B.
C.
D.
E.
Solution:
In a grid, each square shares a side with two squares and is diagonal to the third.
Case 1: Red or blue is not used. If no square is red, any coloring with white and blue works: ways. Similarly 16 ways use no blue. The all-white coloring is counted in both, so this case gives
Case 2: Both red and blue are used. A red square and a blue square cannot share a side, so they must be diagonal to each other. Say a red square is in one corner; then the blue square is in the opposite corner, and the other two squares, each sharing a side with both, must be white. So one diagonal is red and blue and the other diagonal is white. Choosing the diagonal (2 ways) and which of its squares is red (2 ways) gives 4 ways.
The total is .
The problems and solutions on this page are the property of the MAA's American Mathematics Competitions