OFFSET
1,3
FORMULA
a(n) = 4*a(n-1) + (n-6)*a(n-2). - Vaclav Kotesovec, Oct 20 2012
a(n) ~ 26*sqrt(2)*exp(4*sqrt(n)-n/2-4)*n^(n/2-5/2)*(1-19/(3*sqrt(n))+1/(6*n)) . - Vaclav Kotesovec, Oct 20 2012
MATHEMATICA
M[n_] := {{0, 1}, {-4 + n, 4}} v[0] = {0, 1}; v[n_] := v[n] = M[n].v[m - 1] a = Table[v[m][[1]], {m, 0, 30}]
RecurrenceTable[{a[n] == 4*a[n-1] + (n-6)*a[n-2], a[1]==0, a[2]==1}, a, {n, 20}] (* Vaclav Kotesovec, Oct 20 2012 *)
PROG
(Magma) [n le 2 select n-1 else 4*Self(n-1)+(n-6)*Self(n-2): n in [1..30]]; // Vincenzo Librandi, May 24 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Roger L. Bagula, Jun 15 2007
EXTENSIONS
New name from Vaclav Kotesovec, Oct 20 2012
STATUS
approved