OFFSET
0,1
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) = a(n-1) + 9*n (with a(0)=3). - Vincenzo Librandi, Nov 30 2010
a(0)=3, a(1)=12, a(2)=30, a(n)=3*a(n-1)-3*a(n-2)+a(n-3). - Harvey P. Dale, Mar 26 2015
From G. C. Greubel, Sep 06 2017: (Start)
G.f.: 3*(1 + x + x^2)/(1 - x)^3.
E.g.f.: (3/2)*(2 + 6*x + 3*x^2)*exp(x). (End)
MATHEMATICA
LinearRecurrence[{3, -3, 1}, {3, 12, 30}, 50] (* Harvey P. Dale, Mar 26 2015 *)
PROG
(PARI) a(n)=9*binomial(n+1, 2)+3 \\ Charles R Greathouse IV, Jul 17 2011
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Omar E. Pol, Nov 07 2009
STATUS
approved