OFFSET
0,2
LINKS
Andrew Howroyd, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (2,1,0,0,0,-1).
FORMULA
a(n) = 2*a(n-1) + a(n-2) - a(n-6) for n > 6.
G.f.: (1 - x)*(1 + x + x^3)/(1 - 2*x - x^2 + x^6).
MATHEMATICA
LinearRecurrence[{2, 1, 0, 0, 0, -1}, {1, 2, 4, 11, 25, 61}, 50] (* Paolo Xausa, Jun 19 2024 *)
PROG
(PARI) Vec((1 - x)*(1 + x + x^3)/(1 - 2*x - x^2 + x^6) + O(x^30))
CROSSREFS
KEYWORD
nonn
AUTHOR
Andrew Howroyd, Feb 28 2020
STATUS
approved