OFFSET
0,4
LINKS
Seiichi Manyama, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (1,0,3,0,0,0,0,1).
FORMULA
G.f.: (1 - x^3) / (1 - x - 3*x^3 - x^8).
a(n) = a(n-1) + 3*a(n-3) + a(n-8).
MATHEMATICA
CoefficientList[Series[(1-x^3)/(1-x-3*x^3-x^8), {x, 0, 60}], x] (* Vincenzo Librandi, Jan 09 2026 *)
LinearRecurrence[{1, 0, 3, 0, 0, 0, 0, 1}, {1, 1, 1, 3, 6, 9, 18, 36}, 40] (* Harvey P. Dale, Jan 11 2026 *)
PROG
(PARI) my(N=40, x='x+O('x^N)); Vec((1-x^3)/(1-x-3*x^3-x^8))
(Magma) m:=60; R<x>:=PowerSeriesRing(Integers(), m); Coefficients(R! (1 - x^3) / (1 - x - 3*x^3 - x^8)); // Vincenzo Librandi, Jan 09 2026
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Seiichi Manyama, Jan 07 2026
STATUS
approved
