2008 AIME II Problem 12
Problem 12 of 15HarderCombinatorics
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
Your answer
Integer from 0 to 999
Show solution
Solution
Suppose the first pole gets blue and green flags, the second the remaining blue and green. On a pole with blue flags, the green flags must occupy distinct gaps among the gaps around the blues, in ways. Temporarily ignoring the requirement that each pole be nonempty, the total is where the inner sum collapses by Vandermonde’s identity, since
The arrangements that leave a pole empty put all flags on one pole, in ways for each choice of pole. Hence and the remainder when is divided by is
Tagged: arrangements with restrictions · combinations · complementary counting · Vandermonde’s Convolution