OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..5000
Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
FORMULA
a(n) = 3*n^2 + 8*n.
a(n) = 6*n + a(n-1) + 5, with a(0)=0. - Vincenzo Librandi, Aug 03 2010
G.f.: x*(11 - 5*x)/(1 - x)^3. - Arkadiusz Wesolowski, Dec 24 2011
E.g.f.: (3*x^2 + 11*x)*exp(x). - G. C. Greubel, Jul 20 2017
EXAMPLE
a(1) = 6*1 + 0 + 5 = 11; a(2) = 6*2 + 11 + 5 = 28; a(3) = 6*3 + 28 + 5 = 51. - Vincenzo Librandi, Aug 03 2010
MATHEMATICA
Table[n(3n+8), {n, 0, 45}] (* Harvey P. Dale, Feb 20 2011 *)
PROG
(PARI) a(n)=n*(3*n+8) \\ Charles R Greathouse IV, Jun 17 2017
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Omar E. Pol, May 22 2008
STATUS
approved