Skip to main content

2007 AMC 12A Problem 25

Problem 25 of 25HarderCombinatorics

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 cn−1c_{n-1} of these) or contains n,n, in which case it omits n−1n-1 and n−2n-2 (there are cn−3c_{n-3} of these). Hence cn=cn−1+cn−3,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.
AoPS wiki

Tagged: recursive counting · subsets

More practice