OFFSET
0,3
COMMENTS
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (5,20).
FORMULA
G.f.: (1 -4*x -16*x^2)/(1 -5*x -20*x^2).
a(n+1) = Sum_{k=0..n} A154929(n,k)*4^(n-k).
MAPLE
m:=30; S:=series( (1-4*x-16*x^2)/(1-5*x-20*x^2), x, m+1):
seq(coeff(S, x, j), j=0..m); # G. C. Greubel, Apr 21 2021
MATHEMATICA
Join[{1}, LinearRecurrence[{5, 20}, {1, 9}, 20]] (* Harvey P. Dale, Jan 19 2012 *)
PROG
(Magma) I:=[1, 9]; [1] cat [n le 2 select I[n] else 5*(Self(n-1) +4*Self(n-2)): n in [1..30]]; // G. C. Greubel, Apr 21 2021
(Sage)
def A154996_list(prec):
P.<x> = PowerSeriesRing(ZZ, prec)
return P( (1-4*x-16*x^2)/(1-5*x-20*x^2) ).list()
A154996_list(30) # G. C. Greubel, Apr 21 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Philippe Deléham, Jan 18 2009
STATUS
approved