Please determine a closed formula for the number \(S_n\) of subsets of \([n]\) that have no consecutive elements, if the elements of \([n]\) are thought of as positive integers with the usual order relation.
Claim the closed form for \( S_n \) is \[ S(n) = \frac{5 + 3 \sqrt{5}}{10} \cdot \left( \frac{1 + \sqrt{5}}{2} \right)^n + \frac{5 - 3 \sqrt{5}}{10} \cdot \left( \frac{1 - \sqrt{5}}{2} \right)^n \]
Proof
Consider the following sets of solutions \begin{equation} \begin{split} S_0 &= \{ \varnothing \} \\ S_1 &= \{ \varnothing \} , \{ 1 \} \\ S_2 &= \{ \varnothing \} , \{ 1 \} , \{ 2 \} \\ S_3 &= \{ \varnothing \} , \{ 1 \} , \{ 2 \} , \{ 3 \} , \{ 1, 3 \} \end{split} \end{equation}
Note that \( S_2 \) can be rewritten to be \( S_2 = S_1 + \{ 2 \} \) where \( \{ 2 \} \) is what results from stuffing 2 into the null set.
Similarly, \( S_3 \) is also equal to \( S_2 + \{ 3 \} , \{ 1, 3 \} \) where \( \{ 3 \} , \{ 1, 3 \} \) is what you get from stuffing 3 to each solution in \( S_1 \).
Without loss of generality, this argument applies to each solution in \( S_n \) resulting in the recursive equation \begin{equation} S_n = S_{n-1} + S_{n-2} \text{ where } n \geq 2 \text{ and } S_0 = 1, S_1 = 2 \end{equation}
As this is clearly the same form as the Fibonacci equation we know too that \begin{equation} S(n) = A \left( \frac{1 + \sqrt{5}}{2} \right)^n + B \left( \frac{1 - \sqrt{5}}{2} \right)^n \end{equation} and solving this equation for \( S(0) \) gives us that \( A = 1 - B \) which allows for the simplification of the equation into one with a single variable and so we can then solve \( S(1) \) for \( B \) which yields that \( B = \frac{5 - 3 \sqrt{5}}{10} \) and therefore we also know that \( A = \frac{5 + 3 \sqrt{5}}{10} \).
Putting in the answers for \( A \) and \( B \) into the equation for \( S(n) \) yields our original equation. \( \blacksquare \)