AoPSWiki
Visit the AoPS Book Store.

2009 AIME II Problems/Problem 6

From AoPSWiki

Problem

Let m be the number of five-element subsets that can be chosen from the set of the first 14 natural numbers so that at least two of the five numbers are consecutive. Find the remainder when m is divided by 1000.

Solution

We can use complementary counting. We can choose a five-element subset in {14\choose 5} ways. We will now count those where no two numbers are consecutive. We will show a bijection between this set, and the set of 10-element strings that contain 5 As and 5 Bs, thereby showing that there are {10\choose 5} such sets.

Given a five-element subset S of \{1,2,\dots,14\} in which no two numbers are consecutive, we can start by writing down a string of length 14, in which the i-th character is A if i\in S and B otherwise. Now we got a string with 5 As and 9 Bs. As no two numbers were consecutive, we know that in our string no two As are consecutive. We can now remove exactly one B from between each pair of As to get a string with 5 As and 5 Bs. And clearly this is a bijection, as from each string with 5 As and 5 Bs we can reconstruct one original set by reversing the construction.

Hence we have m = {14\choose 5} - {10\choose 5} = 2002 - 252 = 1750, and the answer is 1750 \bmod 1000 = \boxed{750}.

See Also

2009 AIME II (ProblemsResources)
Preceded by
Problem 5
Followed by
Problem 7
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Want to learn how to tackle those tough AMC/AIME/Olympiad algebra problems? Check out Art of Problem Solving's Intermediate Algebra by Richard Rusczyk and Mathew Crawford. Over 1600 problems!
© Copyright 2008 AoPS Incorporated. All Rights Reserved. • FoundationPrivacyContact Us