OFFSET
0,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..10000
Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
FORMULA
From R. J. Mathar, Oct 31 2008 (Start)
a(n) = 3*a(n-1)-3*a(n-2)+a(n-3).
G.f.: (29+52*x-7*x^2)/(1-x)^3. (End)
E.g.f.: (37*x^2 + 110*x + 29)*exp(x). - G. C. Greubel, Jan 29 2016
MATHEMATICA
LinearRecurrence[{3, -3, 1}, {29, 139, 323}, 50] (* G. C. Greubel, Jan 29 2016 *)
PROG
(Magma) [29+73*n+37*n^2: n in [0..40]]; // Vincenzo Librandi, Aug 07 2011
(PARI) a(n)=29+73*n+37*n^2 \\ Charles R Greathouse IV, Jun 17 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Oct 26 2008
EXTENSIONS
Indices in definition edited, extended beyond a(13) by R. J. Mathar, Oct 31 2008
STATUS
approved