OFFSET
0,4
LINKS
Index entries for linear recurrences with constant coefficients, signature (4,-4,-2,5,-2)
FORMULA
EXAMPLE
The 4 relevant subsets of {1,2,3} are {1,2}, {1,3}, {2,3}, and {1,2,3}.
MATHEMATICA
s[n_] := s[n] = Select[Subsets[Range[n]], Length[#] >= 2 &];
a[n_] := Select[s[n], #[[2]] - #[[1]] == #[[-1]] - #[[-2]] &];
Table[Length[a[n]], {n, 0, 18}]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Sep 27 2022
STATUS
approved