The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A196787 a(n) = 3*a(n-1) - 2*a(n-2) - a(n-4) + a(n-5) with initial terms 1, 1, 1, 3, 6. 2
1, 1, 1, 3, 6, 12, 24, 46, 87, 163, 303, 561, 1036, 1910, 3518, 6476, 11917, 21925, 40333, 74191, 136466, 251008, 461684, 849178, 1561891, 2872775, 5283867, 9718557, 17875224, 32877674, 60471482, 111224408, 204573593, 376269513, 692067545 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,4
LINKS
FORMULA
a(1)=1, a(2)=1, a(3)=1; a(n) = a(n-1) + a(n-2) + a(n-3) + n - 4 for n >= 4.
G.f.: x*(-1+2*x-2*x^3) / ((x-1)^2*(x^3+x^2+x-1)).
EXAMPLE
a(7) = (a(6): 12) + (a(5): 6) + (a(4): 3) + (n-4: 3) = 24.
MATHEMATICA
LinearRecurrence[{3, -2, 0, -1, 1}, {1, 1, 1, 3, 6}, 42] (* T. D. Noe, Oct 06 2011 *)
PROG
(PARI) x='x+O('x^43); Vec(x*(-1+2*x-2*x^3) / ((x-1)^2*(x^3+x^2+x-1))) \\ Georg Fischer, Apr 03 2019
CROSSREFS
Sequence in context: A132979 A163314 A018183 * A367217 A200662 A371792
KEYWORD
nonn,easy
AUTHOR
Aditya Subramanian, Oct 06 2011
EXTENSIONS
Better name from Charles R Greathouse IV, Oct 06 2011
Edited and corrected by Georg Fischer, Apr 03 2019
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 June 12 08:34 EDT 2024. Contains 373329 sequences. (Running on oeis4.)