Skip to main content
OlympiadHQ

Browse · MATH

Print

jmc

counting and probability senior

Problem

Call a set of integers "spacy" if it contains no more than one out of any three consecutive integers. How many subsets of , including the empty set, are spacy?
Solution
For each positive integer , let , and let be the number of spacy subsets of . Then , , and . For , the spacy subsets of can be partitioned into two types: those that contain and those that do not. Those that do not contain are precisely the spacy subsets of . Those that contain do not contain either or and are therefore in one-to-one correspondence with the spacy subsets of . It follows that . Thus the first twelve terms in the sequence are , , , , , , , , , , , , and there are spacy subsets of .
Final answer
129