OFFSET
0,3
FORMULA
If g.f. satisfies A(x) = 1 + x/(1 + x*A(x))^s, then a(n) = Sum_{k=0..n} (-1)^(n-k) * binomial(n-k+1,k) * binomial(n+(s-1)*k-1,n-k)/(n-k+1).
PROG
(PARI) a(n, s=3) = sum(k=0, n, (-1)^(n-k)*binomial(n-k+1, k)*binomial(n+(s-1)*k-1, n-k)/(n-k+1));
CROSSREFS
KEYWORD
sign
AUTHOR
Seiichi Manyama, Aug 22 2023
STATUS
approved