# Difference between revisions of "2015 AIME I Problems/Problem 5"

## Problem

In a drawer Sandy has $5$ pairs of socks, each pair a different color. On Monday Sandy selects two individual socks at random from the $10$ socks in the drawer. On Tuesday Sandy selects $2$ of the remaining $8$ socks at random and on Wednesday two of the remaining $6$ socks at random. The probability that Wednesday is the first day Sandy selects matching socks is $\frac{m}{n}$, where $m$ and $n$ are relatively prime positive integers, Find $m+n$.

## Solution 1

Let the fifth sock be arbitrary; the probability that the sixth sock matches in color is $\dfrac{1}{9}$.

Assuming this, then let the first sock be arbitrary; the probability that the second sock does not match is $\dfrac{6}{7}.$

The only "hard" part is the third and fourth sock. But that is simple casework. If the third sock's color matches the color of one of the first two socks (which occurs with probability $\dfrac{2}{6} = \dfrac{1}{3}$), then the fourth sock can be arbitrary. Otherwise (with probability $\dfrac{2}{3}$), the fourth sock can be chosen with probability $\dfrac{4}{5}$ (5 socks left, 1 sock that can possibly match the third sock's color). The desired probability is thus $$\frac{1}{9} \cdot \frac{6}{7} \cdot \left(\dfrac{1}{3} + \dfrac{2}{3} \cdot \dfrac{4}{5}\right) = \frac{26}{315}.$$ The sum is therefore $26+315=\boxed{341}.$

### Solution 2

The key is to count backwards. First, choose the pair which you pick on Wednesday in $5$ ways. Then there are four pairs of socks for you to pick a pair of on Tuesday, and you don't want to pick a pair. Since there are $4$ pairs, the number of ways to do this is $\dbinom{8}{2}-4$. Then, there are two pairs and two nonmatching socks for you to pick from on Monday, a total of $6$ socks. Since you don't want to pick a pair, the number of ways to do this is $\dbinom{6}{2}-2$. Thus the answer is $$\dfrac{\left(5\right)\left(\dbinom{8}{2}-4\right)\left(\dbinom{6}{2}-2\right)}{\dbinom{10}{2}\dbinom{8}{2}\dbinom{6}{2}}=\dfrac{26}{315}.$$ $26 + 315 = \boxed{341}$.

### Solution 3

For the first sock, note that to pick two different socks, can complementary count to get the total, $\binom{10}{2}$ minus the number of pairs (5) to get $$\frac{\binom{10}{2} - 5}{\binom{10}{2}}$$ The next steps aren't quite as simple, though. WLOG suppose the socks are (a, a, b, b, c, c, d, d, e, e) and that we chose ab on the first day. This leaves abccddee as the remaining socks. We can think of our next choice as how many "pairs" we "break". Note that right now, in abccddee there are 3 pairs, namely {cc, dd, ee}. Our next choice could either leave all of these pairs (if we choose ab), leave 2 of these pairs, (choose say ac to keep dd and ee as pairs), or leave only 1 as a pair, say choosing de to get abccde. $$\bold{\text{Case 1: Break zero pairs}}.$$ In this case, we want to keep 3 pairs remaining, so our only choice is to choose AB, which would make the remaining ccddee. The probability that we choose AB is $\frac{1}{\binom{8}{2}}$ and the probability that we get a pair after this is $\frac{3}{\binom{6}{2}}$ since we just choose CC, DD, or EE. This case has a probability $\frac{1}{\binom{8}{2}}\frac{3}{\binom{6}{2}}.$ $$\bold{\text{Case 2: Break one pair}}.$$ In this case, we want to choose A and one of {C,C,D,D,E,E} or B and one of {C,C,D,D,E,E}. This yields $\frac{6 + 6}{\binom{8}{2}}$ probability. After this, we end up with 2 pairs, so the total probability of choosing a pair on Wednesday in this case is $\frac{6 + 6}{\binom{8}{2}}\frac{2}{\binom{6}{2}}.$ $$\bold{\text{case 3: Break 2 pairs}}.$$ In this case we'd choose two distinct characters from {C,C,D,D,E,E} which would be $\frac{\binom{6}{2} - 3}{\binom{6}{2}}.$ After this, only one pair remains so the total probability for this case is $\frac{\binom{6}{2} - 3}{\binom{6}{2}} \frac{6}{\binom{8}{2}}\frac{1}{\binom{6}{2}}.$ Adding all the cases and multiplying by $\frac{\binom{10}{2} - 5}{\binom{10}{2}}$ yields $$\frac{\binom{10}{2} - 5}{\binom{10}{2}}\left(\frac{1}{\binom{8}{2}}\frac{3}{\binom{6}{2}}+\frac{6 + 6}{\binom{8}{2}}\frac{2}{\binom{6}{2}}+ \frac{\binom{6}{2} - 3}{\binom{6}{2}}\frac{6}{\binom{8}{2}}\frac{1}{\binom{6}{2}}\right) = \frac{26}{315} \rightarrow 26 + 315 = \boxed{341}$$

The problems on this page are copyrighted by the Mathematical Association of America's American Mathematics Competitions. 