OFFSET
0,3
LINKS
Daniel Starodubtsev, Table of n, a(n) for n = 0..10000
Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
FORMULA
a(n) = n*(31*n-29)/2.
G.f.: x*(1+30*x)/(1-x)^3. - Bruno Berselli, Feb 04 2011
a(n) = 31*n + a(n-1) - 30 (with a(0)=0). - Vincenzo Librandi, Nov 16 2010
E.g.f.: exp(x)*(x + 31*x^2/2). - Nikolaos Pantelidis, Feb 10 2023
MATHEMATICA
Table[n(31n - 29)/2, {n, 0, 40}] (* Stefan Steinerberger, Feb 15 2006 *)
PolygonalNumber[33, Range[0, 40]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Mar 02 2018 *)
PROG
(PARI) a(n)=n*(31*n-29)/2 \\ Charles R Greathouse IV, Oct 16 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Parthasarathy Nambi, Oct 18 2004
EXTENSIONS
More terms from Stefan Steinerberger, Feb 15 2006
STATUS
approved