OFFSET
0,3
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (1,2,4,1,0,-1).
FORMULA
a(n) = a(n-1) +2*a(n-2) +4*a(n-3) +a(n-4) -a(n-6).
MATHEMATICA
LinearRecurrence[{1, 2, 4, 1, 0, -1}, {1, 1, 2, 7, 16, 39}, 40] (* Harvey P. Dale, Nov 26 2015 *)
PROG
(Magma) R<x>:=PowerSeriesRing(Integers(), 40); Coefficients(R!( (1-x^2-x^3)/((1+x+x^2)*(1-2*x-x^2-x^3+x^4)) )); // G. C. Greubel, Feb 06 2024
(SageMath)
def A129441_list(prec):
P.<x> = PowerSeriesRing(ZZ, prec)
return P( (1-x^2-x^3)/((1+x+x^2)*(1-2*x-x^2-x^3+x^4)) ).list()
A129441_list(40) # G. C. Greubel, Feb 06 2024
CROSSREFS
KEYWORD
nonn,less
AUTHOR
Roger L. Bagula, Jun 08 2007
EXTENSIONS
Definition simplified - the Assoc. Eds of the OEIS, Mar 28 2010
Offset corrected by G. C. Greubel, Feb 06 2024
STATUS
approved