# Difference between revisions of "2014 AIME II Problems/Problem 13"

## Problem

Ten adults enter a room, remove their shoes, and toss their shoes into a pile. Later, a child randomly pairs each left shoe with a right shoe without regard to which shoes belong together. The probability that for every positive integer $k<5$, no collection of $k$ pairs made by the child contains the shoes from exactly $k$ of the adults is $\frac{m}{n}$, where m and n are relatively prime positive integers. Find $m+n.$

## Solution

Let the left shoes be $L1 ... L10$ and the right shoes be $R1 ... R10.$ Notice that there are $10 * 9 * 8 * ... * 1 = 10!$ possible pairings. To calculate the possible cases, we casework on the number and length of cycles, where a cycle is a sequence of shoes that starts with an arbitrary shoe, is continued when that shoe is paired with another shoe and the new shoe under consideration is the paired shoe's pair, and ends with the first shoe's pair. (For example, $L1$ -> $R2$, $L2$ -> $R5$, $L5$ -> $R1$ is a cycle of length 3). Trivially, if there is a cycle of all ten shoes (for example, $L1$ -> $R2$, $L2$ -> $R3, ..., L10$ -> $R1$) then there are $9 * 8 * ... * 1 = 9!$ working cases. Or, there will be two cycles of 5 shoes: $\frac{{10\choose 5}}{2}$ * ${4!}^2$. Now, there cannot be a cycle of 6 and a cycle of 4 by the hypothesis; by similar reasoning, our two cases are the only ones that work. To compute the probability, we see that the first case yields a probability of $\frac{1}{10}$ and the second case $\frac{126 * 24 * 24}{10!} = \frac{1}{50}$. Adding the probability gives $\frac{3}{25}$, for an answer of $\boxed{028}$.