2008 AIME II Problem 12

Attempt Problem 12 of the 2008 AIME II below, then check your answer against the professionally curated solution from LIVE by Po-Shen Loh. You can also try the full timed exam, view all 2008 AIME II solutions, or check the answer key.

All problems are used with official legal permission of the Mathematical Association of America (MAA).

12.

There are two distinguishable flagpoles, and there are 1919 flags, of which 1010 are identical blue flags, and 99 are identical green flags. Let NN 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 NN is divided by 1000.1000.
Answer: 310
Concepts:arrangements with restrictionscombinationscomplementary countingVandermonde’s Convolution
Small hint:
On a pole with bb blue and gg green flags, the greens must occupy distinct gaps among the b+1b + 1 gaps determined by the blues: (b+1g)\binom{b+1}{g} ways
Big hint:
Sum (b+1g)(11−b9−g)\binom{b+1}{g}\binom{11-b}{9-g} over gg using Vandermonde’s identity, then subtract the arrangements that leave a pole empty
Solution:
Suppose the first pole gets bb blue and gg green flags, the second the remaining 10−b10 - b blue and 9−g9 - g green. On a pole with bb blue flags, the green flags must occupy distinct gaps among the b+1b + 1 gaps around the blues, in (b+1g)\binom{b+1}{g} ways. Temporarily ignoring the requirement that each pole be nonempty, the total is ∑b=010∑g=09(b+1g)⋅(11−b9−g)=∑b=010(129)=11⋅220=2420, \begin{aligned} &\sum_{b=0}^{10} \sum_{g=0}^{9} \binom{b+1}{g} \\ &\quad {}\cdot \binom{11-b}{9-g} \\ &= \sum_{b=0}^{10} \binom{12}{9} \\ &= 11 \cdot 220 = 2420, \end{aligned} where the inner sum collapses by Vandermonde’s identity, since (b+1)+(11−b)=12.(b + 1) + (11 - b) = 12.
The arrangements that leave a pole empty put all 1919 flags on one pole, in (119)=55\binom{11}{9} = 55 ways for each choice of pole. Hence N=2420−2⋅55=2310,N = 2420 - 2 \cdot 55 = 2310, and the remainder when NN is divided by 10001000 is 310.310.
LIVE by Po-Shen Loh
Programs

LIVE Classes

Self-Paced Classes

Stars

Scholarship

About Us

Who Is Po-Shen Loh?

Email Contact

Newsletter

Jobs

Become a Star

For a more Thought Full world.

© 2026 Expii, Inc.