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