返回题库

AIME 2008 II · 第 12 题

AIME 2008 II — Problem 12

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

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 10001000.

解析

Solution

Solution 1

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

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

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

Thus, we have (a+1)(a+2b)2(a+1b)(a+1){a+2\choose b}-2{a+1\choose b} orderings that satisfy the conditions in the problem: plugging in a=10a=10 and b=9b=9, we get 2310310(mod1000)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 bottoms of the poles) Then, since there are 9 green flags, all of which must be used, there are (129){12\choose9} possiblities for each of the 9 ways to place the blue flags. Total: (129)9{12\choose9}*9 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 (118){11\choose8} possibilities, and since the poles are distinguishable, there are a total of 2(118)2*{11\choose8} possiblities for this case.

Finally, we have 9(129)+2(118)=2310310(mod1000)9*{12\choose9}+2*{11\choose8}=2310 \equiv \boxed{310} \pmod{1000} as our answer.

Solution 3 (mad bash)

Call the two flagpoles Flagpole A and Flagpole B. Case 1: Flag distribution: 1|18 B|variable: (109)=10\dbinom{10}{9}=10 ways G|variable: (118)=165\dbinom{11}{8}=165 ways Case 2: Flag distribution: 2|17 BB|variable: (99)=1\dbinom{9}{9}=1 way BG|variable (two ways to arrange the first sequence): (108)×2=90\dbinom{10}{8} \times 2 = 90 ways GG|variable: can't happen Case 3: Flag distribution: 3|16 BBB|variable: can't happen BBG|variable (3 legal ways to arrange): (98)×3=27\dbinom{9}{8} \times 3 = 27 ways GBG|variable (1 legal way to arrange): (107)=120\dbinom{10}{7} = 120 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): (88)×4=4\dbinom{8}{8} \times 4 = 4 ways GBBG|variable (3 legal ways to arrange): (97)×3=108\dbinom{9}{7} \times 3 = 108 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): (87)×6=48\dbinom{8}{7} \times 6 = 48 ways GBGBG|variable (1 legal way to arrange): (96)=84\dbinom{9}{6} = 84 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): (77)×10=10\dbinom{7}{7} \times 10 = 10 ways BBBGGG|variable (4 legal ways to arrange): (86)×4=112\dbinom{8}{6} \times 4 = 112 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): (76)×10=70\dbinom{7}{6} \times 10 = 70 ways BBBGGGG|variable (1 legal way to arrange): (85)=56\dbinom{8}{5} = 56 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): (66)×20=20\dbinom{6}{6} \times 20 = 20 ways BBBBGGGG|variable: (5 legal ways to arrange): (75)×5=105\dbinom{7}{5} \times 5 = 105 ways others can't happen Case 9: Flag distribution: 9|10 BBBBBGGGG|variable (15 legal ways to arrange): (65)×15=90\dbinom{6}{5} \times 15 = 90 ways BBBBGGGGG|variable (1 legal way to arrange): (74)=35\dbinom{7}{4} = 35 ways others can't happen So our total number of ways is 22 times 10+165+1+90+27+120+4+108+48+84+10+112+70+56+20+105+90+3510+165+1+90+27+120+4+108+48+84+10+112+70+56+20+105+90+35 (since the two flagpoles are distinguishable) which is 23102310 ways. We have to find the last 3 digits, so our final answer is 310310.

Solution by fidgetboss_4000

Note: Do not attempt unless you are good at bashing.

Solution 4 (Vandermonde's)

Let the number of blue flags on the first flagpole be bb and define gg similarly. Now note the bound gb+1.g \le b+1. Now we cannot have any two consecutive greens. This condition is the same as "there are b+1b+1 spaces between each blue flag. How many ways can we put the gg green flags in the b+1b+1 spaces?" Therefore given bb blue flags on the first flagpole and gg green flags on the first flagpole we have a total of (b+1g).\binom{b+1}{g}. Similarly there are (11b9g)\binom{11-b}{9-g} ways for the second flagpole. Summing over all possible possibilities we see the sum is g=0b+1b=010(b+1g)(11b9g).\sum_{g = 0}^{b+1} \sum_{b=0}^{10}\binom{b+1}{g}\binom{11-b}{9-g}. Swapping the sum we have g=0b+1b=010(b+1g)(11b9g)=b=010g=0b+1(b+1g)(11b9g).\sum_{g = 0}^{b+1} \sum_{b=0}^{10}\binom{b+1}{g}\binom{11-b}{9-g} = \sum_{b=0}^{10} \sum_{g = 0}^{b+1}\binom{b+1}{g}\binom{11-b}{9-g}. Then applying Vandermonde's yields b=010(129)\sum_{b=0}^{10}\binom{12}{9} so the sum is 11(129).11 \cdot\binom{12}{9}. However, this answer overcounts. We cannot have no flags on a pole, so we subtract 2(119)2 \cdot\binom{11}{9} since we can have empty flags for the first or second flag. Therefore the answer is 11(129)2(119)(mod1000)310(mod1000).11 \cdot\binom{12}{9} - 2 \cdot\binom{11}{9} \pmod{1000} \equiv \boxed{310} \pmod{1000}.

Solution 5

Consider this as arranging the flags on one big flagpole, then splitting the flagpole into two.

Example: Start with big flagpole BGBGBGGBBGBGBGBGBGBBGBGBGGBBGBGBGBGBGB, and then split it into BGBGBGBGBGBG and GBBGBGBGBGBGBGBBGBGBGBGBGB.

We will split this problem into two cases:

Case 1: The split is not two greens. Basically if arranging 10 blue flags and 9 green flags does not give any consecutive green flags, then we can split it into two flagpoles wherever. For example,

BGBBGBGBGBGBGBGBGBGBGBBGBGBGBGBGBGBGBG can become

BGBBGBGBGBGBGBGBGBGBGB|BGBGBGBGBGBGBGBG or

BGBBGBGBGBGBGBGBGBGBGBBG|BGBGBGBGBGBGBG .

By stars and bars, there are (112)\binom{11}{2} ways to arrange the flags, then 1818 ways to split the big flagpole, so total (112)18\binom{11}{2}\cdot 18 ways.

Case 2: The split is two greens. Here the big flagpole has two consecutive green flags, so we are forced to split the two green flags.

There are (113)8\binom{11}{3}\cdot 8 ways for this case, since we first place 8 “GG”s among 10 blue flags, then choose one to become GGGG. (Look at the first example)

Thus the total number of ways is

(112)18+(113)8=2310310(mod1000).\binom{11}{2}\cdot 18 + \binom{11}{3}\cdot 8 = 2310 \equiv \boxed{310} \pmod{1000}. ~ RubixMaster21

Solution 6

We split the 9 green flags over the two poles: 00 and 99, 11 and 88, 22 and 77, and so on, respectively.

For the first case, 00 and 99, 8 of the 10 blue flags must be placed between the 9 green flags on the same pole, and the 9th blue flag must be placed on the other pole so that there is at least one flag on each pole. This leaves 11\textbf{11} choices for the last blue flag.

Moving on, notice that now for every other case there will always be 3 blue flags left to place. Since we want to distribute 3 indistinguishable flags to 11 distinguishable spots, we use stars and bars. There are (1310)=286\binom{13}{10} = \textbf{286} ways to distribute the flags for the other cases.

Then the total number of ways is 2(11+4286)=2310310(mod1000)2 * (11 + 4 * 286) = 2310 \equiv \boxed{310} \pmod{1000}, since the poles are distinguishable.

~ AXcatterwocky