OFFSET
0,4
LINKS
FORMULA
a(n) = a(n-1)+4*a(n-2)+12*a(n-3). G.f.: (4*x^2+x-1)/(12*x^3+4*x^2+x-1). [Colin Barker, Nov 02 2012]
MATHEMATICA
Clear[M, v, f, g, x, n] M = {{0, 1, 0}, {0, 0, 1}, {12, 4, 1}} v[0] = {1, 0, 0} v[n_] := v[n] = M.v[n - 1] Table[v[n][[1]], {n, 0, 30}]
LinearRecurrence[{1, 4, 12}, {1, 0, 0}, 40] (* Harvey P. Dale, Jul 05 2019 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Roger L. Bagula and Gary W. Adamson, Nov 14 2008
EXTENSIONS
New name from Colin Barker and Joerg Arndt, Nov 02 2012
STATUS
approved