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!)
A153056 a(0)=2, a(n) = n^2+a(n-1). 6
2, 3, 7, 16, 32, 57, 93, 142, 206, 287, 387, 508, 652, 821, 1017, 1242, 1498, 1787, 2111, 2472, 2872, 3313, 3797, 4326, 4902, 5527, 6203, 6932, 7716, 8557, 9457, 10418, 11442, 12531, 13687, 14912, 16208, 17577, 19021, 20542, 22142, 23823, 25587 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
LINKS
FORMULA
G.f.: (2-5x+7x^2-2x^3)/(1-x)^4. a(n)=2+n(1+2n^2+3n)/6 = 2+A000330(n). - R. J. Mathar, Jan 08 2009
MATHEMATICA
a=2; lst={}; Do[a=n^2+a; AppendTo[lst, a], {n, 0, 5!}]; lst
nxt[{n_, a_}]:={n+1, (n+1)^2+a}; NestList[nxt, {0, 2}, 50][[;; , 2]] (* or *) LinearRecurrence[{4, -6, 4, -1}, {2, 3, 7, 16}, 50] (* Harvey P. Dale, Sep 05 2023 *)
PROG
(PARI) a(n) = n*(n+1)*(2*n+1)/6 + 2; \\ Altug Alkan, Apr 30 2018
CROSSREFS
Sequence in context: A004782 A049956 A289844 * A235112 A081207 A353580
KEYWORD
nonn,easy
AUTHOR
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 27 21:44 EDT 2024. Contains 372020 sequences. (Running on oeis4.)