login
A189801
a(n) = 6*a(n-1) + 9*a(n-2), with a(0)=0, a(1)=1.
4
0, 1, 6, 45, 324, 2349, 17010, 123201, 892296, 6462585, 46806174, 339000309, 2455257420, 17782547301, 128792600586, 932798529225, 6755924580624, 48930734246769, 354387726706230, 2566702968458301, 18589707351105876, 134638570822759965, 975138791096512674
OFFSET
0,3
FORMULA
G.f.: x/(1 - 6*x - 9*x^2). - R. J. Mathar, Nov 20 2011
MATHEMATICA
LinearRecurrence[{6, 9}, {0, 1}, 50]
PROG
(PARI) x='x+O('x^30); concat([0], Vec(x/(1 - 6*x - 9*x^2))) \\ G. C. Greubel, Jan 16 2018
(Magma) I:=[0, 1]; [n le 2 select I[n] else 6*Self(n-1) + 9*Self(n-2): n in [1..30]]; // G. C. Greubel, Jan 16 2018
CROSSREFS
Sequence in context: A201191 A214982 A360021 * A024077 A097129 A048663
KEYWORD
nonn
AUTHOR
STATUS
approved