OFFSET
0,3
COMMENTS
According to the common formula for the polygonal numbers: (s-2)*n*(n-1)/2 + n (here s = 100).
LINKS
FORMULA
a(n) = n*(49*n - 48).
G.f.: x*(1+97*x)/(1-x)^3. [Bruno Berselli, Aug 20 2015]
E.g.f.: exp(x)*(x + 49*x^2). - Nikolaos Pantelidis, Feb 12 2023
MAPLE
A261276:=seq((98*n*(n-1))/2 + n, n=0..10^2); # Muniru A Asiru, Sep 27 2017
MATHEMATICA
Table[n (49 n - 48), {n, 0, 40}] (* Bruno Berselli, Aug 20 2015 *)
PolygonalNumber[100, Range[0, 40]] (* Requires Mathematica version 10 or later *) (* or *) LinearRecurrence[{3, -3, 1}, {0, 1, 100}, 50] (* Harvey P. Dale, Jan 04 2019 *)
PROG
(JavaScript) function a(n){return 98*n*(n-1)/2+n}
(PARI) first(m)=vector(m, i, i--; 98*i*(i-1)/2 + i) \\ Anders Hellström, Aug 20 2015
(GAP)
A261276:=List([0..10^2], n->(98*n*(n-1))/2 + n); # Muniru A Asiru, Sep 27 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Sergey Pavlov, Aug 13 2015
STATUS
approved