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(0)=8, a(1)=17, a(2)=32, a(n)=3*a(n-1)-3*a(n-2)+a(n-3). - Harvey P. Dale, Sep 20 2012
G.f.: (8 -7*x +5*x^2)/(1-x)^3. - R. J. Mathar, Nov 07 2015
E.g.f.: (8 +9*x +3*x^2)*exp(x). - G. C. Greubel, Sep 08 2021
MATHEMATICA
Table[3n^2+6n+8, {n, 0, 50}] (* or *) LinearRecurrence[{3, -3, 1}, {8, 17, 32}, 50] (* Harvey P. Dale, Sep 20 2012 *)
PROG
(PARI) a(n)=3*n^2+6*n+8 \\ Charles R Greathouse IV, Jun 17 2017
(Sage) [3*(n+1)^2 + 5 for n in (0..50)] # G. C. Greubel, Sep 08 2021
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
MICK JOYCE (mjpj69(AT)msn.com), Jan 22 2006
EXTENSIONS
Definition supplied by Joshua Zucker, Feb 01, 2006
STATUS
approved