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) = A028560(n)*3 = 3*n^2 + 18*n = n*(3*n+18).
a(n) = 6*n + a(n-1) + 15 with n>0, a(0)=0. - Vincenzo Librandi, Aug 03 2010
from G. C. Greubel, Jul 20 2017: (Start)
G.f.: 3*x*(7 - 5*x)/(1-x)^3.
E.g.f.: 3*x*(x+7)*exp(x). (End)
From Amiram Eldar, Feb 26 2022: (Start)
Sum_{n>=1} 1/a(n) = 49/360.
Sum_{n>=1} (-1)^(n+1)/a(n) = 37/1080. (End)
MAPLE
MATHEMATICA
Table[3n(n+6), {n, 0, 100}] (* Wesley Ivan Hurt, Dec 10 2013 *)
LinearRecurrence[{3, -3, 1}, {0, 21, 48}, 50] (* Harvey P. Dale, May 03 2023 *)
PROG
(PARI) a(n)=3*n*(n+6) \\ Charles R Greathouse IV, Jun 17 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Omar E. Pol, May 22 2008
STATUS
approved