OFFSET
0,3
COMMENTS
According to the common formula for the polygonal numbers: (s-2)*n*(n-1)/2 + n (here s = 37).
LINKS
FORMULA
From Nikolaos Pantelidis, Feb 10 2023: (Start)
G.f.: x*(1 + 34*x)/(1 - x)^3.
E.g.f.: exp(x)*(x + 35*x^2/2). (End)
MATHEMATICA
Table[n(35n-33)/2, {n, 40}]
PolygonalNumber[37, Range[0, 40]] (* Requires Mathematica version 10 or later *) (* or *) LinearRecurrence[{3, -3, 1}, {0, 1, 37}, 40] (* Harvey P. Dale, Oct 24 2020 *)
PROG
(Python)
for n in range(0, 51):
print(n*(35*n-33)//2)
(PARI) for(n=0, 100, print1(n*(35*n-33)/2, ", ")) \\ Derek Orr, Feb 27 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Nathan John Eaves, Feb 23 2017
STATUS
approved
