Please determine a closed formula for the number Sn 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 Sn is S(n)=5+3√510⋅(1+√52)n+5−3√510⋅(1−√52)n
Proof
Consider the following sets of solutions S0={∅}S1={∅},{1}S2={∅},{1},{2}S3={∅},{1},{2},{3},{1,3}
Note that S2 can be rewritten to be S2=S1+{2} where {2} is what results from stuffing 2 into the null set.
Similarly, S3 is also equal to S2+{3},{1,3} where {3},{1,3} is what you get from stuffing 3 to each solution in S1.
Without loss of generality, this argument applies to each solution in Sn resulting in the recursive equation Sn=Sn−1+Sn−2 where n≥2 and S0=1,S1=2
As this is clearly the same form as the Fibonacci equation we know too that S(n)=A(1+√52)n+B(1−√52)n 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=5−3√510 and therefore we also know that A=5+3√510.
Putting in the answers for A and B into the equation for S(n) yields our original equation. ◼