OFFSET
0,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
FORMULA
a(n) = 3*n^2 + 20*n.
a(n) = a(n-1) + 6*n + 17 (with a(0)=0). - Vincenzo Librandi, Dec 15 2010
a(n) = 3*a(n-1)-3*a(n-2)+a(n-3), with a(0)=0, a(1)=23, a(2)=52. - Harvey P. Dale, Apr 29 2016
From G. C. Greubel, Jul 21 2017: (Start)
G.f.: x*(23 - 17*x)/(1 - x)^3.
E.g.f.: x*(3*x + 23)*exp(x). (End)
MATHEMATICA
a[n_]:=Sum[6*i+17, {i, 1, n}]; (* Vladimir Joseph Stephan Orlovsky, Dec 04 2008 *)
Table[n(3n+20), {n, 0, 50}] (* or *) LinearRecurrence[{3, -3, 1}, {0, 23, 52}, 50] (* Harvey P. Dale, Apr 29 2016 *)
PROG
(PARI) a(n)=n*(3*n+20) \\ Charles R Greathouse IV, Jun 17 2017
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Omar E. Pol, May 22 2008
STATUS
approved