OFFSET
0,6
FORMULA
a(n) = n! * Sum_{k=0..floor(n/4)} binomial(n-k-1,n-4*k)/(24^k * k!).
a(0) = 1; a(n) = ((n-1)!/24) * Sum_{k=4..n} k * binomial(k-2,k-4) * a(n-k)/(n-k)!.
PROG
(PARI) a(n) = n!*sum(k=0, n\4, binomial(n-k-1, n-4*k)/(24^k*k!));
(PARI) a_vector(n) = my(v=vector(n+1)); v[1]=1; for(i=1, n, v[i+1]=(i-1)!/24*sum(j=4, i, j*binomial(j-2, j-4)*v[i-j+1]/(i-j)!)); v;
CROSSREFS
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Jun 17 2024
STATUS
approved