OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..999
Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
FORMULA
a(n) = a(n-1) + 48*n - 40 (with a(0)=0). - Vincenzo Librandi, Nov 27 2010
From G. C. Greubel, Aug 29 2016: (Start)
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3).
G.f.: 8*x*(1 + 5*x)/(1 - x)^3.
E.g.f.: 8*x*(1 + 3*x)*exp(x). (End)
MATHEMATICA
Table[8*n*(3*n-2), {n, 0, 25}] (* or *) LinearRecurrence[{3, -3, 1}, {0, 8, 64}, 25] (* G. C. Greubel, Aug 29 2016 *)
8*PolygonalNumber[8, Range[0, 40]] (* Harvey P. Dale, Nov 22 2023 *)
PROG
(Magma) [ 8*n*(3*n-2): n in [0..40] ];
(PARI) a(n)=24*n^2-16*n \\ Charles R Greathouse IV, Jun 17 2017
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Omar E. Pol, Jan 19 2009
STATUS
approved