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!)
A058372 a(n) = -(n + 1)*(2*n^2 + n - 12)/6. 2
2, 3, 1, -6, -20, -43, -77, -124, -186, -265, -363, -482, -624, -791, -985, -1208, -1462, -1749, -2071, -2430, -2828, -3267, -3749, -4276, -4850, -5473, -6147, -6874, -7656, -8495, -9393, -10352, -11374, -12461, -13615, -14838, -16132, -17499, -18941, -20460, -22058, -23737 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
LINKS
FORMULA
G.f.: (2 - 5*x + x^2)/(1 - x)^4.
MATHEMATICA
LinearRecurrence[{4, -6, 4, -1}, {2, 3, 1, -6}, 100] (* Paolo Xausa, Oct 22 2023 *)
PROG
(Magma) [-(n + 1)*(2*n^2 + n - 12)/6 : n in [0..80]]; // Wesley Ivan Hurt, Aug 19 2022
CROSSREFS
Sequence in context: A075263 A130850 A130405 * A128264 A232435 A114858
KEYWORD
sign,easy
AUTHOR
N. J. A. Sloane, Dec 18 2000
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 April 19 21:09 EDT 2024. Contains 371798 sequences. (Running on oeis4.)