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 R. J. Mathar, Jan 04 2011: (Start)
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3).
G.f.: (-1-14*x+5*x^2)/(x-1)^3. (End)
E.g.f.: exp(x)*(1 + 16*x + 5*x^2). - Elmo R. Oliveira, Oct 19 2024
MATHEMATICA
Table[5 n^2 + 11 n + 1, {n, 0, 30}] (* or *) CoefficientList[Series[(-1 - 14 x + 5 x^2)/(x - 1)^3, {x, 0, 30}], x] (* Vincenzo Librandi, Aug 20 2014 *)
PROG
(Magma) [5*n^2+11*n+1: n in [0..50]]; // Vincenzo Librandi, Aug 20 2014
(PARI) a(n)=5*n^2+11*n+1 \\ Charles R Greathouse IV, Jun 17 2017
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
Vincenzo Librandi, Jan 29 2010
STATUS
approved