Problem

Source: JBMO Shortlist 2018 C1

Tags: combinatorics, Sets, Subsets



A set $S$ is called neighbouring if it has the following two properties: a) $S$ has exactly four elements b) for every element $x$ of $S$, at least one of the numbers $x - 1$ or $x+1$ belongs to $S$. Find the number of all neighbouring subsets of the set $\{1,2,... ,n\}$.