2023 AIME I Problem 6

Attempt Problem 6 of the 2023 AIME I below, then check your answer against the professionally curated solution from LIVE by Po-Shen Loh. You can also try the full timed exam, view all 2023 AIME I solutions, or check the answer key.

All problems are used with official legal permission of the Mathematical Association of America (MAA).

6.

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.
Answer: 51
Concepts:expected valuerecursive probabilityoptimization
Small hint:
Guessing the color with more cards remaining is optimal; let E(r,b)E(r, b) be the expected number correct with rr red and bb black left.
Big hint:
E(r,b)=max⁡(r,b)r+bE(r,b) = \frac{\max(r,b)}{r+b} +r E(r−1,b)+b E(r,b−1)r+b;+ \frac{r\,E(r-1,b) + b\,E(r,b-1)}{r+b}; build up from E(1,1).E(1,1).
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.
LIVE by Po-Shen Loh
Programs

LIVE Classes

Self-Paced Classes

Stars

Scholarship

About Us

Who Is Po-Shen Loh?

Email Contact

Newsletter

Jobs

Become a Star

For a more Thought Full world.

© 2026 Expii, Inc.