OFFSET
0,4
FORMULA
a(n+2) = 6*a(n+1) + (-11 + n)*a(n) + (6 - 2*n)*a(n-1) for n >= 1. \\ Jianing Song, Oct 10 2018
MATHEMATICA
M[n_] := {{0, 1, 0}, {0, 0, 1}, {6 - 2*n, -11 + n, 6}}
v[0] = {0, 0, 1};
v[n_] := v[n] = M[n].v[n - 1]
a = Table[v[n][[1]], {n, 0, 30}]
PROG
(PARI) M(n) = [0, 1, 0; 0, 0, 1; 6 - 2*n, -11 + n, 6];
T(n) = if(n==0, [0; 0; 1], M(n)*T(n-1))
a(n) = T(n)[1, 1] \\ Jianing Song, Oct 10 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Roger L. Bagula, Jun 16 2007
EXTENSIONS
Edited, new name, and offset corrected by Jianing Song, Oct 10 2018
STATUS
approved