Skip to main content

2022 AIME I Problem 9

Problem 9 of 15IntermediateNumber TheoryCombinatoricsProbability & Statistics

Ellina has twelve blocks, two each of red (R\textbf{R}), blue (B\textbf{B}), yellow (Y\textbf{Y}), green (G\textbf{G}), orange (O\textbf{O}), and purple (P\textbf{P}). Call an arrangement of blocks even if there is an even number of blocks between each pair of blocks of the same color. For example, the arrangement R B B Y G G Y R O P P O\textbf{R B B Y G G Y R O P P O} is even. Ellina arranges her blocks in a row in random order. The probability that her arrangement is even 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

If a color occupies positions i<j,i \lt j, the number of blocks between them is j−i−1,j - i - 1, which is even exactly when ii and jj have opposite parity. So an arrangement is even precisely when every color occupies one odd position and one even position — that is, the six odd slots contain each color exactly once, and so do the six even slots. Counting arrangements of the twelve blocks (blocks of the same color identical), there are 12!26\frac{12!}{2^6} in total, and 6!⋅6!6! \cdot 6! even ones (a permutation of the six colors in the odd slots and another in the even slots). The probability is 6!⋅6!⋅2612!=16231.\frac{6! \cdot 6! \cdot 2^6}{12!} = \frac{16}{231}. Since gcd⁡(16,231)=1,\gcd(16, 231) = 1, the answer is m+n=16+231=247.m + n = 16 + 231 = 247.
AoPS wiki

Tagged: basic probability · multiset permutations · parity

More practice