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 + 14*n.
a(n) = a(n-1) + 6*n + 11, with a(0)=0. - Vincenzo Librandi, Aug 03 2010
a(n) = 3a(n-1) - 3a(n-2) + a(n-3), with a(1)=0, a(2)=17, a(3)=40. - Harvey P. Dale, Apr 29 2011
E.g.f.: (3*x^2 + 17*x)*exp(x). - G. C. Greubel, Jul 20 2017
EXAMPLE
a(1)=6*1+0+11=17; a(2)=6*2+17+11=40; a(3)=6*3+40+11=69. See 2nd formula.
MATHEMATICA
Table[n(3n+14), {n, 0, 50}] (* or *) LinearRecurrence[{3, -3, 1}, {0, 17, 40}, 50] (* Harvey P. Dale, Apr 29 2011 *)
PROG
(PARI) a(n)=n*(3*n+14) \\ Charles R Greathouse IV, Oct 07 2015
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Omar E. Pol, May 22 2008
STATUS
approved