{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}”No results found for “{{searchWords}}”× back to contents
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,\dots,15\}$, including the empty set, are spacy?
Let $s_n$ be the number of spacy subsets of $\{1,\dots,n\}$ (including the empty set). A spacy subset either does not contain $n$, and is then a spacy subset of $\{1,\dots,n-1\}$, or contains $n$ but not $n-1$ or $n-2$, and is then $n$ together with a spacy subset of $\{1,\dots,n-3\}$. So $s_n=s_{n-1}+s_{n-3}$, with $s_1=2$, $s_2=3$, $s_3=4$.
Then $s_4,\dots,s_{12}$ are $6,9,13,19,28,41,60,88,129$.
Continuing, $s_{13}=129+60=189$, $s_{14}=189+88=277$, and $s_{15}=277+129=\boxed{406}$.