OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (4,9).
FORMULA
a(n) = Sum_{k=0..n} 3^(n-k)*A055380(n,k).
G.f.: (1-x)/(1-4*x-9*x^2).
Limit_{n -> oo} a(n+1)/a(n) = 2 + sqrt(13).
MATHEMATICA
CoefficientList[Series[(1-x)/(1-4*x-9*x^2), {x, 0, 30}], x] (* G. C. Greubel, Feb 26 2019 *)
nxt[{a_, b_}]:={b, 4b+9a}; NestList[nxt, {1, 3}, 20][[All, 1]] (* or *) LinearRecurrence[{4, 9}, {1, 3}, 30] (* Harvey P. Dale, Oct 06 2020 *)
PROG
(PARI) my(x='x+O('x^30)); Vec((1-x)/(1-4*x-9*x^2)) \\ G. C. Greubel, Feb 26 2019
(Magma) R<x>:=PowerSeriesRing(Integers(), 30); Coefficients(R!( (1-x)/(1-4*x-9*x^2) )); // G. C. Greubel, Feb 26 2019
(Sage) ((1-x)/(1-4*x-9*x^2)).series(x, 30).coefficients(x, sparse=False) # G. C. Greubel, Feb 26 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Philippe Deléham, Oct 19 2006
STATUS
approved