Difference between revisions of "2008 AIME II Problems/Problem 12"

(Added second solution)
(Solution)
Line 3: Line 3:
  
 
== Solution ==
 
== Solution ==
 +
=== Solution 1 ===
 
The well known problem of ordering <math>x</math> elements of a string of <math>y</math> elements such that none of the <math>x</math> elements are next to each other has <math>{y-x+1\choose x}</math> solutions. (1)
 
The well known problem of ordering <math>x</math> elements of a string of <math>y</math> elements such that none of the <math>x</math> elements are next to each other has <math>{y-x+1\choose x}</math> solutions. (1)
  

Revision as of 18:08, 24 January 2015

Problem

There are two distinguishable flagpoles, and there are $19$ flags, of which $10$ are identical blue flags, and $9$ are identical green flags. Let $N$ 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 $N$ is divided by $1000$.

Solution

Solution 1

The well known problem of ordering $x$ elements of a string of $y$ elements such that none of the $x$ elements are next to each other has ${y-x+1\choose x}$ solutions. (1)

We generalize for $a$ blues and $b$ greens. Consider a string of $a+b$ 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 $a+1$ blues, and not including that one as a flag on either pole.

From (1), we now have ${a+2\choose b}$ ways to order the string such that no greens are next to each other, and $a+1$ ways to choose the extra blue that will divide the string into the two poles: or $(a+1){a+2\choose b}$ 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 $a$ blues and $b$ greens such that no greens are next to each other: for a total of $2{a+1\choose b}$ such orderings.

Thus, we have $(a+1){a+2\choose b}-2{a+1\choose b}$ orderings that satisfy the conditions in the problem: plugging in $a=10$ and $b=9$, we get $2310 \equiv \boxed{310} \pmod{1000}$.

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 bottom of a pole) Then, since there are 9 blue flags, all of which must be used, there are ${12\choose9}$ possiblities for each of the 9 ways to place the blue flags.

Case 2 - One pole has no blue flags: Since each pole in 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 ${11\choose8}$ possibilities, and since the poles are distinguishable, there are a total of $2*{11\choose8}$ possiblities for this case.

Finally, we have ${12\choose9}+2*{11\choose8}=2310 \equiv \boxed{310} \pmod{1000}$ as our answer.

See also

2008 AIME II (ProblemsAnswer KeyResources)
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. AMC logo.png