The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A168559 a(n) = n^2 + a(n-1), with a(1)=0. 5
 0, 4, 13, 29, 54, 90, 139, 203, 284, 384, 505, 649, 818, 1014, 1239, 1495, 1784, 2108, 2469, 2869, 3310, 3794, 4323, 4899, 5524, 6200, 6929, 7713, 8554, 9454, 10415, 11439, 12528, 13684, 14909, 16205, 17574, 19018, 20539, 22139, 23820, 25584 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,2 COMMENTS Sum of the first n perfect squares (A000330), minus 1. LINKS Reinhard Zumkeller, Table of n, a(n) for n = 1..10000 Index entries for linear recurrences with constant coefficients, signature (4, -6, 4, -1). FORMULA a(n) = n^3/3 + n^2/2 + n/6 - 1. - Gary Detlefs, Jun 30 2010 For n>1, a(n)= 2^2 + 3^2 + ... + n^2. - Washington Bomfim, Feb 15 2011 G.f.: x*(4-3*x+x^2)/(1-x)^4. - Colin Barker, Feb 03 2012 a(n) = A000330(n) - 1. - Reinhard Zumkeller, Feb 03 2012 a(1)=0, a(2)=4, a(3)=13, a(4)=29, a(n) = 4*a(n-1) - 6*a(n-2) + 4*a(n-3) - a(n-4). - Harvey P. Dale, Dec 07 2013 MATHEMATICA k=-1; lst={}; Do[k=n^2+k; AppendTo[lst, k], {n, 5!}]; lst (* Vladimir Joseph Stephan Orlovsky, Dec 05 2009 *) RecurrenceTable[{a[1]==0, a[n]==n^2+a[n-1]}, a, {n, 50}] (* or *) LinearRecurrence[{4, -6, 4, -1}, {0, 4, 13, 29}, 50] (* Harvey P. Dale, Dec 07 2013 *) PROG (Haskell) a168559 n = a168559_list !! (n-1) a168559_list = scanl (+) 0 \$ drop 2 a000290_list -- Reinhard Zumkeller, Feb 03 2012 (PARI) a(n)=n^3/3+n^2/2+n/6-1 \\ Charles R Greathouse IV, Oct 16 2015 CROSSREFS Cf. A000330, A000290. Sequence in context: A155366 A340002 A135039 * A212247 A213801 A301886 Adjacent sequences:  A168556 A168557 A168558 * A168560 A168561 A168562 KEYWORD nonn,easy AUTHOR Vincenzo Librandi, Nov 30 2009 STATUS approved

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

Last modified June 16 17:05 EDT 2021. Contains 345064 sequences. (Running on oeis4.)