Difference between revisions of "2017 AIME II Problems/Problem 9"
The turtle (talk | contribs) |
Boxtheanswer (talk | contribs) m (→Solution 8) |
||
(22 intermediate revisions by 18 users not shown) | |||
Line 2: | Line 2: | ||
A special deck of cards contains <math>49</math> cards, each labeled with a number from <math>1</math> to <math>7</math> 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 <math>\textit{still}</math> have at least one card of each color and at least one card with each number is <math>\frac{p}{q}</math>, where <math>p</math> and <math>q</math> are relatively prime positive integers. Find <math>p+q</math>. | A special deck of cards contains <math>49</math> cards, each labeled with a number from <math>1</math> to <math>7</math> 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 <math>\textit{still}</math> have at least one card of each color and at least one card with each number is <math>\frac{p}{q}</math>, where <math>p</math> and <math>q</math> are relatively prime positive integers. Find <math>p+q</math>. | ||
− | ==Solution== | + | ==Solution 1== |
+ | Without loss of generality, assume that the <math>8</math> numbers on Sharon's cards are <math>1</math>, <math>1</math>, <math>2</math>, <math>3</math>, <math>4</math>, <math>5</math>, <math>6</math>, and <math>7</math>, in that order, and assume the <math>8</math> colors are red, red, and six different arbitrary colors. There are <math>{8\choose2}-1</math> ways of assigning the two red cards to the <math>8</math> numbers; we subtract <math>1</math> because we cannot assign the two reds to the two <math>1</math>'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 <math>1</math>s. The number of ways for this to happen is <math>2 \cdot 6 = 12</math> (the first card she draws has to be a <math>1</math> (2 choices), while the second card can be any card but the remaining card with a <math>1</math> (6 choices)). Each of these assignments is equally likely, so desired probability is <math>\frac{12}{{8\choose2}-1}=\frac{4}{9} \implies 4 + 9 = 13 = \boxed{013}</math>. | ||
− | + | ==Solution 2== | |
− | |||
− | |||
− | WLOG the numbers | + | First note that out of the <math>8</math> selected cards, one pair of cards have to share the same number and another pair of cards have to share the same color. Now, these <math>2</math> pairs of cards can't be the same or else there will be <math>2</math> cards which are completely same. Then, WLOG let the numbers be <math>1,1,2,3,4,5,6,</math> and <math>7</math> and the colors be <math>a,a,b,c,d,e,f,</math> and <math>g</math>. We therefore obtain only <math>2</math> cases: |
− | |||
− | Case One: | + | Case One: <math>1a,1b,2a,3c,4d,5e,6f,</math> and <math>7g</math> |
− | <math>1a,1b,2a,3c,4d,5e,6f,</math> and <math>7g</math> | + | In this case, we can discard <math>1a</math>. |
− | + | There are <math>2*6=12</math> situations in this case. | |
− | |||
− | Case Two: | + | Case Two: <math>1b,1c,2a,3a,4d,5e,6f,</math> and <math>7g</math> |
− | <math>1b,1c,2a,3a,4d,5e,6f,</math> and <math>7g</math> | ||
In this case, we can't discard. | In this case, we can't discard. | ||
− | There are <math>\ | + | There are <math>\dbinom{6}{2}=15</math> situations in this case. |
− | So the probability is <math>\frac{12}{12+15}=\frac{4}{9}</math> | + | So the probability is <math>\frac{12}{12+15}=\frac{4}{9}</math>, giving us the answer of <math>4+9=\boxed{013}</math>. |
− | The answer is <math>4+9=\boxed{013}</math> | + | ==Solution 3== |
+ | |||
+ | There are <math>7!</math> ways to choose a set of 7 cards that have all the numbers from 1-7 and all 7 colors. There are then <math>42</math> cards remaining. Thus, there are <math>7!(42)</math> 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 <math>\binom{7}{2}</math> ways to pick 2 numbers, <math>7</math> colors to assign them to, <math>\binom{6}{2}</math> ways to pick 2 nonchosen colors, <math>5</math> ways to pick a number to assign them to, and <math>4!</math> ways to assign the rest. | ||
+ | |||
+ | Thus, the answer is <math>\frac{7!(42)}{7!(42) + 21(15)(7)(5!)}</math>. Dividing out <math>5!</math> yields <math>\frac{42(42)}{42(42) + 21(15)(7)}</math> which is equal to <math>\frac{2(42)}{2(42) + 15(7)}</math> which is equal to <math>\frac{12}{12 + 15}</math> which is equal to <math>\frac{4}{9}</math> giving a final answer of <math>\boxed{013}</math>. | ||
+ | |||
+ | ==Solution 4== | ||
+ | We can rewrite the problem as "What is the probability that, given 8 cards with numbers a, b, c, d, e, f, g, g and some assortment of seven colors A, B, C, D, E, F, G, G where G is repeated, one of the cards is Gg?" Note that this is a valid restatement because Sharon has to have two of one number and two of one color. She needs to be able to take away one of the cards with the duplicate number, but this also has to have the duplicate color. There are two cases. | ||
+ | |||
+ | Case I: One of the cards is Gg. This implies that the other card with color G can be placed in <math>6</math> ways, and the rest of the colors can be paired with cards in <math>6!</math> ways. | ||
+ | |||
+ | Case II: None of the cards are Gg. This implies that the cards with color G can be chosen in <math>\dbinom{6}{2}=15</math> ways, and the rest of the colors can be paired with cards in <math>\frac{6!}{2}</math> ways, with the divide by 2 because of the double-g. | ||
+ | |||
+ | Note that there is no case with Gg, Gg because all 49 cards are unique! | ||
+ | |||
+ | Therefore our answer is <math>\frac{6\times6!}{\frac{15}{2}\times6! + 6\times6!}=\frac{4}{9}</math>, so <math>\boxed{013}</math>. | ||
+ | |||
+ | ==Solution 5== | ||
+ | We count the two entities: The number of sets of eight cards that contain all seven numbers and all seven colors; and The number of sets of eight cards that contain all seven numbers and colors, and one card can be removed and the property still holds. | ||
+ | |||
+ | For the first: It is equivalent to counting: | ||
+ | How many ways can (colors) <math>A, A, B, C, D, E, F, G</math> be matched to (numbers) <math>1, 1, 2, 3, 4, 5, 6, 7</math> such that the two <math>A's</math> cannot both be matched to the two ones. (This would mean we've chosen two identical cards from the deck, both with color <math>A</math> and number one.) | ||
+ | We consider two cases: | ||
+ | |||
+ | 1) Neither <math>A</math> is matched with a one. Then there are <math>\binom{6}{2}</math> ways to choose which two numbers are matched with the <math>A's,</math> and <math>6! / 2!</math> ways to order the remaining numbers. (There are two one's, so we divide by two.) | ||
+ | |||
+ | 2) One of the <math>A</math>'s is matched with a one. There are <math>6 \cdot 6!</math> ways to arrange the remaining color | ||
+ | |||
+ | Since there are seven ways to choose the extra color and likewise for the extra number, | ||
+ | we have in total <math>7 \cdot 7 \cdot \left( 6C2 \cdot \frac{6!}{2!} + 6 \cdot 6! \right)</math> ways to choose eight cards satisfying the first condition. | ||
+ | |||
+ | For the second: View the cards as rooks on a seven by seven chess board. Seven cards that contain all colors and numbers is can be represented as placing seven rooks on the board so that no two rooks are attacking each other. There are <math>7!</math> ways to do this. For each arrangement, we can choose any of the other 42 positions on the board (cards) to add an extra rook. Thus, there are <math>7! \cdot 42</math> good sets of eight cards. Note that we are not overcounting. | ||
+ | |||
+ | Thus, the probability of getting a good set given the first condition is <math>\frac{ 7! \cdot 42 }{ 7 \cdot 7 \cdot \left( 6C2 \cdot \frac{6!}{2!} + 6 \cdot 6! \right) } = \frac{4}{9},</math> and the answer is <math>\boxed{013}.</math> | ||
+ | |||
+ | ==Solution 6== | ||
+ | We recast this problem to coloring 8 cells in a 7x7 grid, such that each row and column has at least one colored cell. If a cell in row a and column b is colored, that means we drew a card with color a and number b. | ||
+ | |||
+ | By pigeonhole principle, there exists a row that has 2 colored cells, and intuitively, that row is unique. There also exists a column with 2 colored cells. Call the unique row, "Row A", and Call the unique column, "Column B". | ||
+ | |||
+ | If we are able to remove a card so that we still have a card of each color and number, that means, we can erase a cell, so each row still has at least one colored cell, and so does each column. If we erase a cell not in Row A, then the erased cell's row will be empty. If we erase a cell not in Column B, the erased cell's column will be empty. Thus the cell that we erase must be in both Row A and Column B. There is only one cell in both Row A and Column B, and thus that cell must be colored. | ||
+ | |||
+ | We first count the number of successful outcomes. We must chose which row to be "Row A", and which column to be "Column B". There are 7 ways to chose "Row A", and 7 ways to chose "Column B". Because of the logic used above, the intersection of Row A and Column B must be colored. However, Row A needs to have 2 colored cells. There are 6 other uncolored cells to chose from. Similarly, there are 6 uncolored cells in Column B. | ||
+ | |||
+ | Note that we can ignore all the rows and columns that contain colored cells. This is because Row A already contains 2 colored cells, and thus we can't color any more cells in Row A, similarly for Column B. The other row that contains a colored cell is not Row A, so it can only contain 1 colored cell, which it has, thus we can't color anymore cells in it. Similarly for the other column. | ||
+ | |||
+ | We can actually remove these rows/columns. This leaves a 5x5 grid, full of uncolored cells. Each row can have 1 cell, and so can each column. We count the # of colorings from the perspective of the rows. We look at the first row, it has 5 choices. We can look at the 2nd row, it has 4 choices, as it's selected cell can't occupy the same column. We continue down the line, and see there are <math>5! = 120</math> ways to color. | ||
+ | |||
+ | Thus, the # of successful outcomes is <math>5! \cdot 6 \cdot 6 \cdot 7 \cdot 7</math>. | ||
+ | |||
+ | We can then count the # of possible outcomes. | ||
+ | |||
+ | We can count the # of unsuccessful outcomes. We select "Row A" and "Column B" as usual, with <math>7 \cdot 7</math> ways. We don't color the intersection, so we have to color 2 cells in each. There are 6 other cells that can be colored in each, so we have <math>{6 \choose 2} = 15</math> ways to color each. Then, we can get rid of rows and columns using the method above and we are left with a 4x4 grid. There are <math>4! = 24</math> ways to color. | ||
+ | |||
+ | Thus, the # of unsuccessful outcomes is <math>4! \cdot 15 \cdot 15 \cdot 7 \cdot 7</math>. | ||
+ | |||
+ | After some calculation, we get <math>\frac{successful}{possible} = \frac{successful}{successful+unsuccessful} = \frac{5! \cdot 6^2 \cdot 7^2}{7^2 \cdot(5! \cdot 6^2 + 4! \cdot 15^2} = \frac{5! \cdot 6^2}{5! \cdot 6^2 +4! \cdot 15^2} = \frac{5 \cdot 6^2}{5 \cdot 6^2 + 15^2} = \frac{180}{180+225} = \frac{4}{9} \implies 4+9 = \boxed{13}</math> | ||
+ | |||
+ | -Alexlikemath | ||
+ | |||
+ | ==Solution 7 (Official MAA)== | ||
+ | In a set of eight cards that includes every color and every number, there will be exactly one repeated number and exactly one repeated color. If Sharon selects a set that includes the card with that number and color, Sharon can discard it. If the set does not include that card, Sharon cannot discard any card. | ||
+ | In the former case, there are <math>7!</math> ways to choose one card of each number and color, and then <math>42</math> ways to choose the "extra" card. The total is <math>7!\cdot 42</math>. | ||
+ | In the latter case, there are <math>7</math> ways to choose which number is repeated, and <math>\binom{7}{2} = 21</math> ways to choose which two cards of that number are used. There are then <math>5</math> ways to choose which color is repeated, and <math>\binom{6}{2} = 15</math> ways to choose which cards of that color are used. There now remain four unused colors and four unused numbers, and there are <math>4! = 24</math> ways to choose from those. The total is <math>7 \cdot 21 \cdot 5 \cdot 15 \cdot 24</math>. | ||
+ | The probability that a given set is of the first type is therefore <math>\frac{7! \cdot 42}{7! \cdot 42+7 \cdot 21 \cdot 5 \cdot 15 \cdot 24} = \frac{4}{9}.</math> The requested sum is <math>4 + 9 = 13</math>. | ||
+ | |||
+ | ==Solution 8== | ||
+ | |||
+ | WLOG let the colors be <math>R, R, O, Y, G, B, I, V</math> and let the numbers be <math>1, 1, 2, 3, 4, 5, 6, 7</math>. Now call a color or number <math>safe</math> is there is at least two cards in that category. In this case, the color red is <math>safe</math> and the number <math>1</math> is safe because we have two of each. | ||
+ | |||
+ | Now notice that a card can be removed if and only if both its color AND number are <math>safe</math>, since even if we remove it we will have one of each category. Therefore, we must have a <math>R1</math>. | ||
+ | |||
+ | |||
+ | For this probability, we will first count the total ways to assign the cards. Treating each color and number as distinct, we have <math>8!</math> ways. However, we cannot have two red ones, so we must subtract <math>2 * 6!</math> cases from our total. | ||
+ | |||
+ | Meanwhile, to count the successful outcomes, one of the ones must be red. We have <math>2</math> choices for the one, and <math>2</math> choices for the red. Then, the other one has <math>6</math> colors, and there are <math>6!</math> ways to color the rest of the numbers. | ||
+ | |||
+ | |||
+ | Diving and simplifying, we have <math>\frac{2*2*6*6!}{8!-2*6!} = \frac{4}{9} \implies 4+9 = \boxed{13}</math>. | ||
+ | |||
+ | ~xHypotenuse | ||
=See Also= | =See Also= | ||
{{AIME box|year=2017|n=II|num-b=8|num-a=10}} | {{AIME box|year=2017|n=II|num-b=8|num-a=10}} | ||
{{MAA Notice}} | {{MAA Notice}} |
Latest revision as of 15:43, 12 October 2024
Contents
Problem
A special deck of cards contains cards, each labeled with a number from to 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 have at least one card of each color and at least one card with each number is , where and are relatively prime positive integers. Find .
Solution 1
Without loss of generality, assume that the numbers on Sharon's cards are , , , , , , , and , in that order, and assume the colors are red, red, and six different arbitrary colors. There are ways of assigning the two red cards to the numbers; we subtract because we cannot assign the two reds to the two '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 s. The number of ways for this to happen is (the first card she draws has to be a (2 choices), while the second card can be any card but the remaining card with a (6 choices)). Each of these assignments is equally likely, so desired probability is .
Solution 2
First note that out of the selected cards, one pair of cards have to share the same number and another pair of cards have to share the same color. Now, these pairs of cards can't be the same or else there will be cards which are completely same. Then, WLOG let the numbers be and and the colors be and . We therefore obtain only cases:
Case One: and In this case, we can discard . There are situations in this case.
Case Two: and In this case, we can't discard. There are situations in this case.
So the probability is , giving us the answer of .
Solution 3
There are ways to choose a set of 7 cards that have all the numbers from 1-7 and all 7 colors. There are then cards remaining. Thus, there are 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 ways to pick 2 numbers, colors to assign them to, ways to pick 2 nonchosen colors, ways to pick a number to assign them to, and ways to assign the rest.
Thus, the answer is . Dividing out yields which is equal to which is equal to which is equal to giving a final answer of .
Solution 4
We can rewrite the problem as "What is the probability that, given 8 cards with numbers a, b, c, d, e, f, g, g and some assortment of seven colors A, B, C, D, E, F, G, G where G is repeated, one of the cards is Gg?" Note that this is a valid restatement because Sharon has to have two of one number and two of one color. She needs to be able to take away one of the cards with the duplicate number, but this also has to have the duplicate color. There are two cases.
Case I: One of the cards is Gg. This implies that the other card with color G can be placed in ways, and the rest of the colors can be paired with cards in ways.
Case II: None of the cards are Gg. This implies that the cards with color G can be chosen in ways, and the rest of the colors can be paired with cards in ways, with the divide by 2 because of the double-g.
Note that there is no case with Gg, Gg because all 49 cards are unique!
Therefore our answer is , so .
Solution 5
We count the two entities: The number of sets of eight cards that contain all seven numbers and all seven colors; and The number of sets of eight cards that contain all seven numbers and colors, and one card can be removed and the property still holds.
For the first: It is equivalent to counting: How many ways can (colors) be matched to (numbers) such that the two cannot both be matched to the two ones. (This would mean we've chosen two identical cards from the deck, both with color and number one.) We consider two cases:
1) Neither is matched with a one. Then there are ways to choose which two numbers are matched with the and ways to order the remaining numbers. (There are two one's, so we divide by two.)
2) One of the 's is matched with a one. There are ways to arrange the remaining color
Since there are seven ways to choose the extra color and likewise for the extra number, we have in total ways to choose eight cards satisfying the first condition.
For the second: View the cards as rooks on a seven by seven chess board. Seven cards that contain all colors and numbers is can be represented as placing seven rooks on the board so that no two rooks are attacking each other. There are ways to do this. For each arrangement, we can choose any of the other 42 positions on the board (cards) to add an extra rook. Thus, there are good sets of eight cards. Note that we are not overcounting.
Thus, the probability of getting a good set given the first condition is and the answer is
Solution 6
We recast this problem to coloring 8 cells in a 7x7 grid, such that each row and column has at least one colored cell. If a cell in row a and column b is colored, that means we drew a card with color a and number b.
By pigeonhole principle, there exists a row that has 2 colored cells, and intuitively, that row is unique. There also exists a column with 2 colored cells. Call the unique row, "Row A", and Call the unique column, "Column B".
If we are able to remove a card so that we still have a card of each color and number, that means, we can erase a cell, so each row still has at least one colored cell, and so does each column. If we erase a cell not in Row A, then the erased cell's row will be empty. If we erase a cell not in Column B, the erased cell's column will be empty. Thus the cell that we erase must be in both Row A and Column B. There is only one cell in both Row A and Column B, and thus that cell must be colored.
We first count the number of successful outcomes. We must chose which row to be "Row A", and which column to be "Column B". There are 7 ways to chose "Row A", and 7 ways to chose "Column B". Because of the logic used above, the intersection of Row A and Column B must be colored. However, Row A needs to have 2 colored cells. There are 6 other uncolored cells to chose from. Similarly, there are 6 uncolored cells in Column B.
Note that we can ignore all the rows and columns that contain colored cells. This is because Row A already contains 2 colored cells, and thus we can't color any more cells in Row A, similarly for Column B. The other row that contains a colored cell is not Row A, so it can only contain 1 colored cell, which it has, thus we can't color anymore cells in it. Similarly for the other column.
We can actually remove these rows/columns. This leaves a 5x5 grid, full of uncolored cells. Each row can have 1 cell, and so can each column. We count the # of colorings from the perspective of the rows. We look at the first row, it has 5 choices. We can look at the 2nd row, it has 4 choices, as it's selected cell can't occupy the same column. We continue down the line, and see there are ways to color.
Thus, the # of successful outcomes is .
We can then count the # of possible outcomes.
We can count the # of unsuccessful outcomes. We select "Row A" and "Column B" as usual, with ways. We don't color the intersection, so we have to color 2 cells in each. There are 6 other cells that can be colored in each, so we have ways to color each. Then, we can get rid of rows and columns using the method above and we are left with a 4x4 grid. There are ways to color.
Thus, the # of unsuccessful outcomes is .
After some calculation, we get
-Alexlikemath
Solution 7 (Official MAA)
In a set of eight cards that includes every color and every number, there will be exactly one repeated number and exactly one repeated color. If Sharon selects a set that includes the card with that number and color, Sharon can discard it. If the set does not include that card, Sharon cannot discard any card. In the former case, there are ways to choose one card of each number and color, and then ways to choose the "extra" card. The total is . In the latter case, there are ways to choose which number is repeated, and ways to choose which two cards of that number are used. There are then ways to choose which color is repeated, and ways to choose which cards of that color are used. There now remain four unused colors and four unused numbers, and there are ways to choose from those. The total is . The probability that a given set is of the first type is therefore The requested sum is .
Solution 8
WLOG let the colors be and let the numbers be . Now call a color or number is there is at least two cards in that category. In this case, the color red is and the number is safe because we have two of each.
Now notice that a card can be removed if and only if both its color AND number are , since even if we remove it we will have one of each category. Therefore, we must have a .
For this probability, we will first count the total ways to assign the cards. Treating each color and number as distinct, we have ways. However, we cannot have two red ones, so we must subtract cases from our total.
Meanwhile, to count the successful outcomes, one of the ones must be red. We have choices for the one, and choices for the red. Then, the other one has colors, and there are ways to color the rest of the numbers.
Diving and simplifying, we have .
~xHypotenuse
See Also
2017 AIME II (Problems • Answer Key • Resources) | ||
Preceded by Problem 8 |
Followed by Problem 10 | |
1 • 2 • 3 • 4 • 5 • 6 • 7 • 8 • 9 • 10 • 11 • 12 • 13 • 14 • 15 | ||
All AIME Problems and Solutions |
The problems on this page are copyrighted by the Mathematical Association of America's American Mathematics Competitions.