OFFSET
0,3
FORMULA
a(n) = Sum_{k=0..floor(n/2)} (-1)^k * (n-2*k)! * binomial(n-k-1,k).
a(n) = n*a(n-1) + (n-4)*a(n-3) + a(n-4) for n > 4.
PROG
(PARI) my(N=30, x='x+O('x^N)); Vec(sum(k=0, N, k!*(x/(1+x^2))^k))
(PARI) a(n) = sum(k=0, n\2, (-1)^k*(n-2*k)!*binomial(n-k-1, k));
CROSSREFS
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Feb 25 2024
STATUS
approved