OFFSET
1,2
LINKS
FORMULA
a(n) = (1727*n^2 - 1725*n)/2.
From Elmo R. Oliveira, Nov 27 2024: (Start)
G.f.: x*(1 + 1726*x)/(1-x)^3.
E.g.f.: exp(x)*x*(2 + 1727*x)/2.
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3) for n > 3. (End)
MATHEMATICA
PolygonalNumber[1729, Range[40]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Sep 15 2016 *)
PROG
(PARI) a(n) = (1727*n^2 - 1725*n)/2 \\ Michel Marcus, Jul 16 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Oct 06 2007, based on a suggestion from Anton Mravcek in 2004.
STATUS
approved