Skip to main content

2023 AIME I Problem 6

Problem 6 of 15IntermediateProbability & StatisticsProblem-Solving Techniques

Alice knows that 33 red cards and 33 black cards will be revealed to her one at a time in random order. Before each card is revealed, Alice must guess its color. If Alice plays optimally, the expected number of cards she will guess correctly 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

Whatever Alice guesses, the deck evolves the same way; only the immediate success probability depends on her guess, so it is optimal to guess a color with the most cards remaining. Let E(r,b)E(r, b) be the expected number of correct guesses from a state with rr red and bb black cards left. Then E(r,0)=r,E(r, 0) = r, E(0,b)=b,E(0, b) = b, and E(r,b)=max⁡(r,b)r+b+r E(r−1,b)r+b+b E(r,b−1)r+b. \begin{aligned} E(r, b) &= \frac{\max(r, b)}{r + b} \\ &\quad {}+ \frac{r\,E(r-1,b)}{r+b} \\ &\quad {}+ \frac{b\,E(r,b-1)}{r+b}. \end{aligned} By symmetry E(r,b)=E(b,r).E(r, b) = E(b, r). Computing upward: E(1,1)=32,E(1,1) = \frac{3}{2}, E(2,1)=23+2⋅32+23=73,E(2,1) = \frac{2}{3} + \frac{2 \cdot \frac{3}{2} + 2}{3} = \frac{7}{3}, E(2,2)=12+73=176,E(2,2) = \frac{1}{2} + \frac{7}{3} = \frac{17}{6}, E(3,1)=34+3⋅73+34=134,E(3,1) = \frac{3}{4} + \frac{3 \cdot \frac{7}{3} + 3}{4} = \frac{13}{4}, E(3,2)=35+3⋅176+2⋅1345=185,E(3,2) = \frac{3}{5} + \frac{3 \cdot \frac{17}{6} + 2 \cdot \frac{13}{4}}{5} = \frac{18}{5}, and finally E(3,3)=12+185=4110.E(3,3) = \frac{1}{2} + \frac{18}{5} = \frac{41}{10}. So the expected number of correct guesses is 4110,\frac{41}{10}, and m+n=41+10=51.m + n = 41 + 10 = 51.
AoPS wiki

Tagged: expected value · recursive probability · optimization

More practice