login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A145066 Partial sums of A002522, starting at n=1. 4
2, 7, 17, 34, 60, 97, 147, 212, 294, 395, 517, 662, 832, 1029, 1255, 1512, 1802, 2127, 2489, 2890, 3332, 3817, 4347, 4924, 5550, 6227, 6957, 7742, 8584, 9485, 10447, 11472, 12562, 13719, 14945, 16242, 17612, 19057, 20579, 22180, 23862, 25627 (list; graph; refs; listen; history; internal format)
OFFSET

1,1

FORMULA

a(1) = 2; a(n) = a(n-1) + n^2 + 1 for n > 1.

a(n)=sum(k^2+1, k=1...n) = A000330(n) + n = n*(n+1)*(2*n+1)/6 + n [From Christoph Pacher (christoph.pacher(AT)ait.ac.at), Jul 23 2010]

EXAMPLE

a(2) = a(1) + 2^2 + 1 = 2 + 4 + 1 = 7; a(3) = a(2) + 3^2 + 1 = 7 + 9 + 1 = 17.

MATHEMATICA

lst={0}; s=0; Do[s+=n^2+1; AppendTo[lst, s], {n, 5!}]; lst

PROG

(PARI) {a=0; for(n=1, 42, print1(a=a+n^2+1, ", "))}

CROSSREFS

Cf. A002522 (n^2 + 1), A005563 ((n+1)^2 - 1), A051925 (zero followed by partial sums of A005563).

Equals A000330 plus n [From Christoph Pacher (christoph.pacher(AT)ait.ac.at), Jul 23 2010]

Sequence in context: A166381 A083723 A045947 * A014148 A070070 A033937

Adjacent sequences:  A145063 A145064 A145065 * A145067 A145068 A145069

KEYWORD

nonn

AUTHOR

Vladimir Orlovsky (4vladimir(AT)gmail.com), Sep 30 2008

EXTENSIONS

Edited. - Klaus Brockhaus (klaus-brockhaus(AT)t-online.de), Oct 17 2008

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 17 06:27 EST 2012. Contains 205998 sequences.