OFFSET
0,3
FORMULA
a(n) = (2*n-4)*a(n-3)+(3-3*n)*a(n-2)+(2+n)*a(n-1) for n >= 3.
MAPLE
a := proc(n) option remember; if n=0 then 0 elif n=1 then 1 elif n=2 then 4 else
(2*n-4)*a(n-3)+(3-3*n)*a(n-2)+(2+n)*a(n-1) fi end: seq(a(n), n=0..22);
MATHEMATICA
a[n_] := E^2 Sum[Gamma[k + 1, 2], {k, 0, n-1}]; Table[a[n], {n, 0, 22}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Peter Luschny, Dec 17 2017
STATUS
approved