OFFSET
0,4
LINKS
Seiichi Manyama, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (0,0,6,2,1,-3,3,-1).
FORMULA
G.f.: (1 - 3*x^3 - x^4) / (1 - 6*x^3 - 2*x^4 - x^5*(1-x)^3).
a(n) = 6*a(n-3) + 2*a(n-4) + a(n-5) - 3*a(n-6) + 3*a(n-7) - a(n-8).
MATHEMATICA
LinearRecurrence[{0, 0, 6, 2, 1, -3, 3, -1}, {1, 0, 0, 3, 1, 1, 15, 15}, 50] (* Vincenzo Librandi, Jan 13 2026 *)
PROG
(PARI) my(N=40, x='x+O('x^N)); Vec((1-3*x^3-x^4)/(1-6*x^3-2*x^4-x^5*(1-x)^3))
(Magma) I:=[1, 0, 0, 3, 1, 1, 15, 15]; [n le 8 select I[n] else 6*Self(n-3) + 2*Self(n-4) + Self(n-5) - 3*Self(n-6) + 3*Self(n-7) - Self(n-8): n in [1..40]]; // Vincenzo Librandi, Jan 13 2026
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Seiichi Manyama, Jan 11 2026
STATUS
approved
