OFFSET
0,2
COMMENTS
Row sums of unsigned version of number triangle A117438.
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (4,2,0,-1).
FORMULA
a(n) = 4*a(n-1) + 2*a(n-2) - a(n-4).
a(n) = Sum_{k=0..floor(n/2)} binomial(2*n-3*k, k) * 4^(n-2*k).
MATHEMATICA
LinearRecurrence[{4, 2, 0, -1}, {1, 4, 17, 76}, 40] (* G. C. Greubel, Jun 01 2021 *)
PROG
(Magma) I:=[1, 4, 17, 76]; [n le 4 select I[n] else 4*Self(n-1) +2*Self(n-2) -Self(n-4): n in [1..41]]; // G. C. Greubel, Jun 01 2021
(Sage)
def A117439_list(prec):
P.<x> = PowerSeriesRing(ZZ, prec)
return P( (1-x^2)/(1-4*x-2*x^2+x^4) ).list()
A117439_list(40) # G. C. Greubel, Jun 01 2021
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Mar 16 2006
EXTENSIONS
Terms a(23) onward added by G. C. Greubel, Jun 01 2021
STATUS
approved