OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
FORMULA
a(n) = (33*n^2 - 27*n)/2 = A051865(n)*3.
a(n) = a(n-1) + 33*n - 30, with n>0, a(0)=0. - Vincenzo Librandi, Dec 14 2010
G.f.: 3*x*(1 + 10*x)/(1-x)^3. - Bruno Berselli, Jan 21 2011
From G. C. Greubel, Aug 31 2016: (Start)
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3).
E.g.f.: (3/2)*x*(2 + 11*x)*exp(x). (End)
MATHEMATICA
s=0; lst={s}; Do[s+=n; AppendTo[lst, s], {n, 3, 7!, 33}]; lst (* Vladimir Joseph Stephan Orlovsky, Apr 02 2009 *)
LinearRecurrence[{3, -3, 1}, {0, 3, 39}, 25] (* or *) Table[33*n^2 - 27*n)/2, {n, 0, 25}] (* G. C. Greubel, Aug 31 2016 *)
PROG
(PARI) a(n)=3*n*(11*n-9)/2 \\ Charles R Greathouse IV, Oct 07 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Omar E. Pol, Jan 03 2009
STATUS
approved