OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
FORMULA
From Colin Barker, Jun 10 2012: (Start)
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3).
G.f.: (1 + 36*x + 11*x^2)/(1-x)^3. (End)
E.g.f.: (1 + 38*x + 24*x^2)*exp(x). - G. C. Greubel, Oct 12 2019
MAPLE
MATHEMATICA
Table[(2n+1)(12n+1), {n, 0, 50}] (* Harvey P. Dale, Mar 30 2011 *)
CoefficientList[Series[(1+36*x+11*x^2)/(1-x)^3, {x, 0, 50}], x] (* Vincenzo Librandi, Jul 07 2012 *)
PROG
(Magma) [(2*n+1)*(12*n+1): n in [0..50]]; // Vincenzo Librandi, Jul 07 2012
(PARI) a(n)=(2*n+1)*(12*n+1) \\ Charles R Greathouse IV, Jun 17 2017
(Sage) [(2*n+1)*(12*n+1) for n in range(50)] # G. C. Greubel, Oct 12 2019
(GAP) List([0..50], n-> (2*n+1)*(12*n+1)); # G. C. Greubel, Oct 12 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved