OFFSET
0,2
COMMENTS
REFERENCES
R. L. Graham, D. E. Knuth and O. Patashnik, Concrete Mathematics: A Foundation for Computer Science, Addison-Wesley, 1994.
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
C. Corsani, D. Merlini, and R. Sprugnoli, Left-inversion of combinatorial sums, Discrete Mathematics, 180 (1998) 107-122.
Luis Manuel Rivera, Integer sequences and k-commuting permutations, arXiv:1406.3081 [math.CO], 2014.
Index entries for linear recurrences with constant coefficients, signature (6,-12,8).
FORMULA
EXAMPLE
a(0) = (3*0^2 + 9*0 + 8)*2^(-3) = 8/8 = 1.
MAPLE
A:=n->(3*n^2+9*n+8)*2^(n-3); seq(A(n), n=0..70);
MATHEMATICA
Table[(3 n^2 + 9 n + 8) 2^(n-3), {n, 0, 70}]
LinearRecurrence[{6, -12, 8}, {1, 5, 19}, 50] (* G. C. Greubel, Oct 17 2018 *)
PROG
(Maxima) makelist((3*n^2 + 9*n + 8)*2^(n - 3), n, 0, 70);
(PARI) a(n) = (3*n^2 + 9*n + 8)*2^(n - 3) \\ Felix Fröhlich, Nov 19 2017
(Magma) I:=[1, 5, 19]; [n le 3 select I[n] else 6*Self(n-1) -12*Self(n-2) +8*Self(n-3): n in [1..40]]; // G. C. Greubel, Oct 17 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Franck Maminirina Ramaharo, Nov 19 2017
STATUS
approved