Skip to main content

1994 AIME Problem 9

Problem 9 of 15IntermediateProbability & StatisticsProblem-Solving Techniques

A solitaire game is played as follows. Six distinct pairs of matched tiles are placed in a bag. The player randomly draws tiles one at a time from the bag and retains them, except that matching tiles are put aside as soon as they appear in the player’s hand. The game ends if the player ever holds three tiles, no two of which match; otherwise the drawing continues until the bag is empty. The probability that the bag will be emptied is pq,\frac{p}{q}, where pp and qq are relatively prime positive integers. Find p+q.p+q.

Your answer

Integer from 0 to 999
Show solution

Solution

Let F(r,h)F(r,h) be the chance of success with rr unseen pairs and h≤2h\leq2 unmatched tiles held. Among 2r+h2r+h remaining tiles, hh close an open pair and 2r2r open a new pair; the latter move fails when h=2.h=2. Thus F(r,h)=hF(r,h−1)2r+h+2rF(r−1,h+1)2r+h,\begin{aligned}F(r,h)&=\frac{hF(r,h-1)}{2r+h}\\&\quad+\frac{2rF(r-1,h+1)}{2r+h},\end{aligned} omitting the second term when h=2,h=2, with F(0,h)=1.F(0,h)=1. Evaluating this three-state recursion gives F(r,0):1, 1, 35, 935,335, 9385\begin{aligned}F(r,0):\quad&1,\ 1,\ \frac35,\ \frac9{35},\\&\frac3{35},\ \frac9{385}\end{aligned} for r=1,2,…,6.r=1,2,\ldots,6. Hence pq=9385\frac{p}{q}=\frac{9}{385} and p+q=394.p+q=394.
AoPS wiki

Tagged: recursive probability · sampling without replacement · process simulation

More practice