Let $n$ be any natural number. Consider all nonempty subsets of the set {$1,2,...,n$}, which do not contain any neighboring elements. Prove that the sum of the squares of the products of all numbers in these subsets is $$(n + 1)! - 1.$$ For example, if $n = 3$, then such subsets of {$1,2,3$} are {$1$}, {$2$}, {$3$}, and {$1,3$}, and $$1^2 + 2^2 + 3^2 + (1\cdot3)^2 = 23 = 4! -1.$$
Is there a way I can write the sum of the squares of the products of all numbers in these subsets is $(n + 1)! - 1$? I'm actually stuck in this problem. This is all I have for this problem but I'm not sure if I'm doing the problem right.
For the Basis step I let $ n= 2$ and the subsets of {$1,2$} are just {$1$} and {$2$}. Thus, $$1^2+2^2 = 5 = 6-1 = 3! -1$$ So, it's true for n=2.
Inductive step: I assume that the statement holds for $n = k$ where $k$ is a natural number. Then the sum of the squares of the products of all numbers in these subsets is $(k+1)!-1$
We have to show that the statement holds for for $n = k+1$. That is to say that the sum of the squares of the products of all numbers in these subsets is $(k+2)! -1$
Please let me know if I'm actually doing the proof right if not correct me. Thanks