OFFSET
0,2
FORMULA
G.f.: A(x) = (1 + x*B(x))^2 where B(x) is the g.f. of A364742.
If g.f. satisfies A(x) = ( 1 + x*A(x)^(t/r) / (1 - x*A(x)^(u/r))^s )^r, then a(n) = r * Sum_{k=0..n} binomial(t*k+u*(n-k)+r,k) * binomial(n+(s-1)*k-1,n-k)/(t*k+u*(n-k)+r).
PROG
(PARI) a(n, r=2, s=1, t=0, u=3) = r*sum(k=0, n, binomial(t*k+u*(n-k)+r, k)*binomial(n+(s-1)*k-1, n-k)/(t*k+u*(n-k)+r));
CROSSREFS
KEYWORD
nonn,new
AUTHOR
Seiichi Manyama, Dec 05 2024
STATUS
approved