Skip to main content

2001 AIME II Problem 9

Problem 9 of 15IntermediateCombinatoricsProbability & Statistics

Each unit square of a 33-by-33 unit-square grid is to be colored either blue or red. For each square, either color is equally likely to be used. The probability of obtaining a grid that does not have a 22-by-22 red square is mn,\frac{m}{n}, where mm and nn are relatively prime positive integers. Find m+n.m + n.

Your answer

Integer from 0 to 999
Show solution

Solution

Compute the probability that the grid does contain an all-red 22-by-22 block by inclusion-exclusion over the four possible positions. One block forces 44 cells; two blocks sharing an edge force 66 cells (44 such pairs), while the two diagonal pairs force 7;7; any three blocks force 88 cells, and all four force all 9.9. Each configuration of forced red cells has probability (12)cells,\left(\frac{1}{2}\right)^{\text{cells}}, so the probability of at least one red block is 4⋅116−(4⋅164+2⋅1128)+4⋅1256−1512=128−40+8−1512=95512. \begin{aligned} &4 \cdot \frac{1}{16} - \left(4 \cdot \frac{1}{64} + 2 \cdot \frac{1}{128}\right) \\ &\quad {}+ 4 \cdot \frac{1}{256} - \frac{1}{512} \\ &= \frac{128 - 40 + 8 - 1}{512} = \frac{95}{512}. \end{aligned} The desired probability is 1−95512=417512,1 - \frac{95}{512} = \frac{417}{512}, and 417=3⋅139417 = 3 \cdot 139 is coprime to 512,512, so m+n=417+512=929.m + n = 417 + 512 = 929.
AoPS wiki

Tagged: inclusion-exclusion · complementary probability

More practice