# Difference between revisions of "2017 AIME II Problems/Problem 9"

## Problem

A special deck of cards contains $49$ cards, each labeled with a number from $1$ to $7$ and colored with one of seven colors. Each number-color combination appears on exactly one card. Sharon will select a set of eight cards from the deck at random. Given that she gets at least one card of each color and at least one card with each number, the probability that Sharon can discard one of her cards and $\textit{still}$ have at least one card of each color and at least one card with each number is $\frac{p}{q}$, where $p$ and $q$ are relatively prime positive integers. Find $p+q$.

## Solution 1

Without loss of generality, assume that the $8$ numbers on Sharon's cards are $1$, $1$, $2$, $3$, $4$, $5$, $6$, and $7$, in that order, and assume the $8$ colors are red, red, and six different arbitrary colors. There are ${8\choose2}-1$ ways of assigning the two red cards to the $8$ numbers; we subtract $1$ because we cannot assign the two reds to the two $1$'s. In order for Sharon to be able to remove at least one card and still have at least one card of each color, one of the reds have to be assigned with one of the $1$s. The number of ways for this not to happen is ${6\choose2}$, so the number of ways for it to happen is $\left({8\choose2}-1\right)-{6\choose2}$. Each of these assignments is equally likely, so the probability that Sharon can discard one of her cards and still have at least one card of each color and at least one card with each number is $\frac{\left({8\choose2}-1\right)-{6\choose2}}{{8\choose2}-1}=\frac{4}{9} \implies 4 + 9 = 13 = \boxed{013}$.

## Solution 2

There have to be $2$ of $8$ cards sharing the same number and $2$ of them sharing same color.

$2$ pairs of cards can't be the same or else there will be $2$ card which are completely same.

WLOG the numbers are $1,1,2,3,4,5,6,$ and $7$ and the colors are $a,a,b,c,d,e,f,$ and $g$ Then we can get $2$ cases:

Case One: $1a,1b,2a,3c,4d,5e,6f,$ and $7g$ in this case, we can discard $1a$. there are $2*6=12$ situations in this case.

Case Two: $1b,1c,2a,3a,4d,5e,6f,$ and $7g$ In this case, we can't discard. There are $\dbinom{6}{2}=15$ situations in this case

So the probability is $\frac{12}{12+15}=\frac{4}{9}$

The answer is $4+9=\boxed{013}$

## Solution 3

There are $7!$ ways to choose a set of 7 cards that have all the numbers from 1-7 and all 7 colors. There are then $42$ cards remaining. Thus, there are $7!(42)$ desired sets.

Now, the next thing to find is the number of ways to choose 8 cards where there is not a set of 7 such cards. In this case, one color must have 2 cards and one number must have 2 cards, and they can't be the same number/color card. The number of ways to pick this is equal to a multiplication of $\binom{7}{2}$ ways to pick 2 numbers, $7$ colors to assign them to, $\binom{6}{2}$ ways to pick 2 nonchosen colors, $5$ ways to pick a number to assign them to, and $4!$ ways to assign the rest.

Thus, the answer is $\frac{7!(42)}{7!(42) + 21(15)(7)(5!)}$. Dividing out $5!$ yields $\frac{42(42)}{42(42) + 21(15)(7)}$ which is equal to $\frac{2(42)}{2(42) + 15(7)}$ which is equal to $\frac{12}{12 + 15}$ which is equal to $\frac{4}{9}$ giving a final answer of $\boxed{013}$.