OFFSET
0,3
LINKS
Eric Weisstein's World of Mathematics, Hexacontagon.
Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
FORMULA
G.f.: x^2*(1+57*x)/(1-x)^3. - Vincenzo Librandi, Nov 08 2014
a(n+1) = a(n) + 58*n + 1. - Jon Perry, Nov 09 2014
E.g.f.: exp(x)*(x + 29*x^2). - Nikolaos Pantelidis, Feb 12 2023
MAPLE
a[0]:=0:a[1]:=1:for n from 2 to 50 do a[n]:=2*a[n-1]-a[n-2]+58 od: seq(a[n], n=0..46);
MATHEMATICA
Table[n (29 n - 28), {n, 0, 60}] (* or *) LinearRecurrence[{3, -3, 1}, {0, 1, 60}, 60]
CoefficientList[Series[x (1 + 57 x) / (1 - x)^3, {x, 0, 50}], x] (* Vincenzo Librandi, Nov 08 2014 *)
PolygonalNumber[60, Range[0, 40]] (* Harvey P. Dale, Aug 16 2024 *)
PROG
(Magma) [n*(29*n-28): n in [0..50]]; // Vincenzo Librandi, Nov 08 2014
(PARI) a(n)=n*(29*n-28) \\ Charles R Greathouse IV, Nov 08 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
K G Teal, Nov 08 2014
STATUS
approved