login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A129441 Expansion of g.f. (1-x^2-x^3)/((1+x+x^2)*(1-2*x-x^2-x^3+x^4)). 3
1, 1, 2, 7, 16, 39, 100, 248, 618, 1546, 3858, 9631, 24049, 60041, 149903, 374266, 934427, 2332981, 5824753, 14542648, 36308602, 90651625, 226329747, 565077072, 1410826915, 3522409024, 8794392287, 21956943442, 54819861280, 136868649264 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
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
Sequence in context: A042243 A293378 A041887 * A093971 A065497 A131727
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

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 28 14:02 EDT 2024. Contains 371254 sequences. (Running on oeis4.)