OFFSET
0,3
LINKS
Index entries for linear recurrences with constant coefficients, signature (3,-2,0,0,-1,1).
FORMULA
G.f.: (x (-1 - x - x^2 - x^3))/((-1 + x)^2 (-1 + x + x^2 + x^3 + x^4)).
a(n) = 3*a(n-1) - 2*a(n-2) - a(n-5) + a(n-6).
MATHEMATICA
maxDiff = 4; t = Map[Length[Select[Map[{#, Max[Differences[#]]} &,
Drop[Subsets[Range[#]], # + 1]], #[[2]] <= maxDiff &]] &, Range[18]]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Sep 04 2022
STATUS
approved