OFFSET
3,1
LINKS
Harry J. Smith, Table of n, a(n) for n = 3..200
Index entries for linear recurrences with constant coefficients, signature (6,-12,8).
FORMULA
G.f. = 2x^3*(9-19x+10x^2)/(1-2x)^3. - Emeric Deutsch, Jun 27 2009
From G. C. Greubel, Dec 30 2016: (Start)
a(n) = 6*a(n-1) - 12*a(n-2) + 8*a(n-3).
E.g.f.: (1/8)*((9 + 8*x - 10*x^2) - (9 - 10*x - 8*x^2)*exp(2*x)). (End)
MAPLE
seq(2^(n-3)*(n+3)*(2*n-3), n = 3 .. 32); # Emeric Deutsch, Jun 27 2009
MATHEMATICA
Table[2^(n-3)*(n + 3)*(2*n - 3), {n, 3, 50}] (* or *) LinearRecurrence[{6, -12, 8}, {18, 70, 224}, 25] (* G. C. Greubel, Dec 30 2016 *)
PROG
(PARI) a(n) = { 2^(n - 3)*(n + 3)*(2*n - 3) } \\ Harry J. Smith, Jun 25 2009
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Jan 19 2001
STATUS
approved