2012 AMC 10A Problem 20
A square is partitioned into unit squares. Each unit square is painted either white or black with each color being equally likely, chosen independently and at random. The square is then rotated clockwise about its center, and every white square in a position formerly occupied by a black square is painted black. The colors of all other squares are left unchanged. What is the probability the grid is now entirely black?
Show solution without answering
Key insight
A spot stays white only if it and the square rotating into it were both white. Corners and edges each cycle in fours; no two neighbours may be white.
Solution
- When does a spot end up white? After the turn, each spot holds the square that moved into it. If that square is black, the spot is black. If it is white, it is repainted black whenever the spot used to hold a black square. So a spot stays white only when the square that moved in is white and the square that was there before was white too.
- Which squares move where? A quarter turn sends each corner to the next corner, around a loop of four. It also sends each edge square to the next edge square, around another loop of four. The center stays put. These three groups do not affect each other, so find the chance for each and multiply.
- Center. It moves onto itself, so it stays white if it was white. It must start black: probability .
- Corners. Number the corners in the order the turn moves them, so corner moves to spot , corner to spot , and so on, with moving back to . Spot stays white only if corners and were both white. So all four corner spots end black exactly when no two neighbouring corners in this loop ( and , and , and , and ) are both white. Count the good colorings by the number of white corners:
| White corners | Good colorings | Reason |
|---|---|---|
| nothing to check | ||
| any single corner | ||
| only the opposite pairs and ; the other pairs are neighbours | ||
| or | some two whites are always neighbours |
That is good colorings out of , probability .
5. Edge squares. They move around a loop of four in exactly the same way, so the probability is also .
6. Multiply:
The answer is .
Why this works
A rotation moves the squares around in small loops, and the repainting rule only compares each square with the one that moves into its place. That breaks the nine-square problem into two identical four-square loops plus the center. Once you see the rule is "no two neighbours both white", counting is a short table.
Concise solution
A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.
After the rotation, a position ends up black if the square that moved there is black, or if the square originally there was black (a white arrival is repainted). So a position stays white only when both it and the square rotating into it were white.
The rotation moves the four corners around in a cycle, moves the four edge squares around in a cycle, and fixes the center. These three groups are independent.
- Center: must be black, probability .
- Corners: label them in rotation order . Position ends white exactly when squares and are both white. So all four end black if and only if no two cyclically adjacent corners are both white. Count such colorings: zero whites ( way), one white ( ways), two whites that are opposite ( ways); three or more whites always include an adjacent pair. That is of the colorings, probability .
- Edges: the same cycle structure, probability .
Multiply:
The answer is .
Review in the AoPS books
- Introduction to Counting & Probability, Chapter 7: Introduction to Probability
- Introduction to Geometry, Chapter 16: The More Things Change. . . (§16.1, §16.2, §16.3, §16.4)
- Introduction to Counting & Probability, Chapter 2: Basic Counting Techniques (§2.5)
- Introduction to Algebra, Chapter 22: Special Manipulations (§22.3)
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.