Difference between revisions of "2008 AIME II Problems/Problem 12"
(→Solution 2) |
m (added a solution) |
||
Line 26: | Line 26: | ||
Finally, we have <math>9*{12\choose9}+2*{11\choose8}=2310 \equiv \boxed{310} \pmod{1000}</math> as our answer. | Finally, we have <math>9*{12\choose9}+2*{11\choose8}=2310 \equiv \boxed{310} \pmod{1000}</math> as our answer. | ||
+ | |||
+ | === Solution 3 (mad bash) === | ||
+ | |||
+ | Call the two flagpoles Flagpole A and Flagpole B. | ||
+ | Case 1: | ||
+ | Flag distribution: 1|18 | ||
+ | B|variable: <math>\dbinom{10}{9}=10</math> ways | ||
+ | G|variable: <math>\dbinom{11}{8}=165</math> ways | ||
+ | Case 2: | ||
+ | Flag distribution: 2|17 | ||
+ | BB|variable: <math>\dbinom{9}{9}=1</math> way | ||
+ | BG|variable (two ways to arrange the first sequence): <math>\dbinom{10}{8} \times 2 = 90</math> ways | ||
+ | GG|variable: can't happen | ||
+ | Case 3: | ||
+ | Flag distribution: 3|16 | ||
+ | BBB|variable: can't happen | ||
+ | BBG|variable (3 legal ways to arrange): <math>\dbinom{9}{8} \times 3 = 27</math> ways | ||
+ | GBG|variable (1 legal way to arrange): <math>\dbinom{10}{7} = 120</math> ways | ||
+ | GGG|variable: clearly can't happen | ||
+ | Case 4: | ||
+ | Flag distribution: 4|15 | ||
+ | BBBB|variable: can't happen | ||
+ | BBBG|variable (4 legal ways to arrange): <math>\dbinom{8}{8} \times 4 = 4</math> ways | ||
+ | GBBG|variable (3 legal ways to arrange): <math>\dbinom{9}{7} \times 3 = 108</math> ways | ||
+ | GGBG|variable: can't happen | ||
+ | GGGG|variable: can't happen | ||
+ | Case 5: | ||
+ | Flag distribution: 5|14 | ||
+ | BBBBB|variable: can't happen | ||
+ | BBBBG|variable: can't happen | ||
+ | BBGBG|variable (6 legal ways to arrange): <math>\dbinom{8}{7} \times 6 = 48</math> ways | ||
+ | GBGBG|variable (1 legal way to arrange): <math>\dbinom{9}{6} = 84</math> ways | ||
+ | GGGGB|variable: can't happen | ||
+ | GGGGG|variable: can't happen | ||
+ | Case 6: | ||
+ | Flag distribution: 6|13 | ||
+ | BBBBBB|variable: can't happen | ||
+ | BBBBBG|variable: can't happen | ||
+ | BBBBGG|variable (10 legal ways to arrange): <math>\dbinom{7}{7} \times 10 = 10</math> ways | ||
+ | BBBGGG|variable (4 legal ways to arrange): <math>\dbinom{8}{6} \times 4 = 112</math> ways | ||
+ | BBGGGG|variable: can't happen | ||
+ | BGGGGG|variable: can't happen | ||
+ | GGGGGG|variable: can't happen | ||
+ | Case 7: | ||
+ | Flag distribution: 7|12 | ||
+ | BBBBBBB|variable: can't happen | ||
+ | BBBBBBG|variable: can't happen | ||
+ | BBBBBGG|variable: can't happen | ||
+ | BBBBGGG|variable (10 legal ways to arrange): <math>\dbinom{7}{6} \times 10 = 70</math> ways | ||
+ | BBBGGGG|variable (1 legal way to arrange): <math>\dbinom{8}{5} = 56</math> ways | ||
+ | rest can't happen | ||
+ | Case 8: | ||
+ | Flag distribution: 8|11 | ||
+ | BBBBBBBB|variable: can't happen | ||
+ | BBBBBBBG|variable: can't happen | ||
+ | BBBBBBGG|variable: can't happen | ||
+ | BBBBBGGG|variable (20 legal ways to arrange): <math>\dbinom{6}{6} \times 20 = 20</math> ways | ||
+ | BBBBGGGG|variable: (5 legal ways to arrange): <math>\dbinom{7}{5} \times 5 = 105</math> ways | ||
+ | others can't happen | ||
+ | Case 9: | ||
+ | Flag distribution: 9|10 | ||
+ | BBBBBGGGG|variable (15 legal ways to arrange): <math>\dbinom{6}{5} \times 15 = 90</math> ways | ||
+ | BBBBGGGGG|variable (1 legal way to arrange): <math>\dbinom{7}{4} = 35</math> ways | ||
+ | others can't happen | ||
+ | So our total number of ways is <math>2</math> times <math>10+165+1+90+27+120+4+108+48+84+10+112+70+56+20+105+90+35</math> (since the two flagpoles are distinguishable) which is <math>2310</math> ways. We have to find the last 3 digits, so our final answer is <math>310</math>. | ||
+ | |||
+ | Solution by fidgetboss_4000 | ||
== See also == | == See also == |
Revision as of 16:01, 14 December 2018
Contents
[hide]Problem
There are two distinguishable flagpoles, and there are flags, of which
are identical blue flags, and
are identical green flags. Let
be the number of distinguishable arrangements using all of the flags in which each flagpole has at least one flag and no two green flags on either pole are adjacent. Find the remainder when
is divided by
.
Solution
Solution 1
The well known problem of ordering elements of a string of
elements such that none of the
elements are next to each other has
solutions. (1)
We generalize for blues and
greens. Consider a string of
elements such that we want to choose the greens such that none of them are next to each other. We would also like to choose a place where we can divide this string into two strings such that the left one represents the first pole, and the right one represents the second pole, in order up the pole according to position on the string.
However, this method does not account for the fact that the first pole could end with a green, and the second pole could start with a green, since the original string assumed that no greens could be consecutive. We solve this problem by introducing an extra blue, such that we choose our divider by choosing one of these blues, and not including that one as a flag on either pole.
From (1), we now have ways to order the string such that no greens are next to each other, and
ways to choose the extra blue that will divide the string into the two poles: or
orderings in total.
However, we have overcounted the solutions where either pole has no flags, we have to count these separately. This is the same as choosing our extra blue as one of the two ends, and ordering the other blues and
greens such that no greens are next to each other: for a total of
such orderings.
Thus, we have orderings that satisfy the conditions in the problem: plugging in
and
, we get
.
Solution 2
Split the problem into two cases:
Case 1 - Both poles have blue flags:
There are 9 ways to place the 10 blue flags on the poles. In each of these configurations, there are 12 spots that a green flag could go. (either in between two blues or at the tops or bottoms of the poles) Then, since there are 9 green flags, all of which must be used, there are possiblities for each of the 9 ways to place the blue flags. Total:
possibilities.
Case 2 - One pole has no blue flags:
Since each pole is non empty, the pole without a blue flag must have one green flag. The other pole has 10 blue flags and, by the argument used in case 1, there are possibilities, and since the poles are distinguishable, there are a total of
possiblities for this case.
Finally, we have as our answer.
Solution 3 (mad bash)
Call the two flagpoles Flagpole A and Flagpole B.
Case 1:
Flag distribution: 1|18
B|variable: ways
G|variable:
ways
Case 2:
Flag distribution: 2|17
BB|variable:
way
BG|variable (two ways to arrange the first sequence):
ways
GG|variable: can't happen
Case 3:
Flag distribution: 3|16
BBB|variable: can't happen
BBG|variable (3 legal ways to arrange):
ways
GBG|variable (1 legal way to arrange):
ways
GGG|variable: clearly can't happen
Case 4:
Flag distribution: 4|15
BBBB|variable: can't happen
BBBG|variable (4 legal ways to arrange):
ways
GBBG|variable (3 legal ways to arrange):
ways
GGBG|variable: can't happen
GGGG|variable: can't happen
Case 5:
Flag distribution: 5|14
BBBBB|variable: can't happen
BBBBG|variable: can't happen
BBGBG|variable (6 legal ways to arrange):
ways
GBGBG|variable (1 legal way to arrange):
ways
GGGGB|variable: can't happen
GGGGG|variable: can't happen
Case 6:
Flag distribution: 6|13
BBBBBB|variable: can't happen
BBBBBG|variable: can't happen
BBBBGG|variable (10 legal ways to arrange):
ways
BBBGGG|variable (4 legal ways to arrange):
ways
BBGGGG|variable: can't happen
BGGGGG|variable: can't happen
GGGGGG|variable: can't happen
Case 7:
Flag distribution: 7|12
BBBBBBB|variable: can't happen
BBBBBBG|variable: can't happen
BBBBBGG|variable: can't happen
BBBBGGG|variable (10 legal ways to arrange):
ways
BBBGGGG|variable (1 legal way to arrange):
ways
rest can't happen
Case 8:
Flag distribution: 8|11
BBBBBBBB|variable: can't happen
BBBBBBBG|variable: can't happen
BBBBBBGG|variable: can't happen
BBBBBGGG|variable (20 legal ways to arrange):
ways
BBBBGGGG|variable: (5 legal ways to arrange):
ways
others can't happen
Case 9:
Flag distribution: 9|10
BBBBBGGGG|variable (15 legal ways to arrange):
ways
BBBBGGGGG|variable (1 legal way to arrange):
ways
others can't happen
So our total number of ways is
times
(since the two flagpoles are distinguishable) which is
ways. We have to find the last 3 digits, so our final answer is
.
Solution by fidgetboss_4000
See also
2008 AIME II (Problems • Answer Key • Resources) | ||
Preceded by Problem 11 |
Followed by Problem 13 | |
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.