Skip to main content

2007 AMC 12A Problem 25

Problem 25 of 25HarderCounting & Probability

Call a set of integers spacy if it contains no more than one out of any three consecutive integers. How many subsets of {1,2,3,,12},\{1,2,3,\ldots,12\}, including the empty set, are spacy?

Answer choices

Show solution

Solution

Let cnc_n be the number of spacy subsets of {1,,n}.\{1,\ldots,n\}. A spacy subset either omits nn (there are cn1c_{n-1} of these) or contains n,n, in which case it omits n1n-1 and n2n-2 (there are cn3c_{n-3} of these). Hence cn=cn1+cn3,c_n=c_{n-1}+c_{n-3}, with c1=2,c_1=2, c2=3,c_2=3, c3=4.c_3=4. The sequence continues 6,9,13,19,28,41,60,88,129,6,9,13,19,28,41,60,88,129, so c12=129.c_{12}=129. Thus, the correct answer is E.

More practice

Concepts: recursive counting · subsets

Problem text and solution from the LIVE past-contest archive. See also the AoPS wiki page for community solutions.