OFFSET
0,3
REFERENCES
E. Deza and M. M. Deza, Figurate numbers, World Scientific Publishing (2012), page 6 (24th row of the table).
LINKS
Luciano Ancora, Table of n, a(n) for n = 0..1000
Luciano Ancora, Polygonal and Pyramidal numbers, Section 1.
Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
FORMULA
G.f.: x*(1 + 23*x)/(1 - x)^3.
Product_{n>=2} (1 - 1/a(n)) = 12/13. - Amiram Eldar, Jan 22 2021
E.g.f.: exp(x)*(x + 12*x^2). - Nikolaos Pantelidis, Feb 05 2023
MATHEMATICA
Table[n (12 n - 11), {n, 50}]
PolygonalNumber[26, Range[0, 50]] (* Requires Mathematica version 10 or later *) (* or *) LinearRecurrence[{3, -3, 1}, {0, 1, 26}, 50] (* Harvey P. Dale, Feb 02 2017 *)
PROG
(PARI) a(n)=n*(12*n-11) \\ Charles R Greathouse IV, Jun 17 2017
(Magma) [n*(12*n-11): n in [0..50]]; // G. C. Greubel, Jul 12 2024
(SageMath) [n*(12*n-11) for n in range(51)] # G. C. Greubel, Jul 12 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Luciano Ancora, Apr 04 2015
STATUS
approved