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
G.f.: (1+34*x-25*x^2)/(1-x)^3.
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3). - Vincenzo Librandi, Apr 07 2013
E.g.f.: (1 + 36*x + 5*x^2)*exp(x). - G. C. Greubel, Apr 28 2022
MATHEMATICA
CoefficientList[Series[(1 +34x -25x^2)/(1-x)^3, {x, 0, 60}], x] (* Vincenzo Librandi, Apr 07 2013 *)
PROG
(Magma) [ 5*n^2+31*n+1: n in [0..50] ];
(PARI) a(n)=5*n^2+31*n+1 \\ Charles R Greathouse IV, Jun 17 2017
(SageMath) [((10*n+31)^2 -941)/20 for n in (0..50)] # G. C. Greubel, Apr 28 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Jan 29 2010
EXTENSIONS
Replaced definition with formula. - N. J. A. Sloane, Mar 03 2010
STATUS
approved