OFFSET
0,2
COMMENTS
See comments in A090351.
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..390
FORMULA
G.f. satisfies: A(x)^3 = A(x/(1-x))^2/(1-x)^2.
From Peter Bala, May 26 2015: (Start)
O.g.f. A(x) = exp( Sum_{n >= 1} b(n)*x^n/n ), where b(n) = Sum_{k = 1..n} k!*Stirling2(n,k)*2^k = A004123(n+1) = 2*A050351(n) for n >= 1. Cf. A084785.
MATHEMATICA
nmax = 17; sol = {a[0] -> 1};
Do[A[x_] = Sum[a[k] x^k, {k, 0, n}] /. sol; eq = CoefficientList[A[x]^3 - A[x/(1 - x)]^2/(1 - x)^2 + O[x]^(n + 1), x] == 0 /. sol; sol = sol ~Join~ Solve[eq][[1]], {n, 1, nmax}];
sol /. Rule -> Set;
a /@ Range[0, nmax] (* Jean-François Alcover, Nov 02 2019 *)
PROG
(PARI) {a(n)=local(A); if(n<1, 0, A=1+x+x*O(x^n); for(k=1, n, B=subst(A, x, x/(1-x))/(1-x)+x*O(x^n); A=A-A^3+B^2); polcoeff(A, n, x))}
(Magma)
m:=40;
f:= func< n, x | Exp((&+[(&+[2^j*Factorial(j)*StirlingSecond(k, j)*x^k/k: j in [1..k]]): k in [1..n+2]])) >;
R<x>:=PowerSeriesRing(Rationals(), m+1); // A090352
Coefficients(R!( f(m, x) )); // G. C. Greubel, Jul 07 2023
(SageMath)
m=50
def f(n, x): return exp(sum(sum(2^j*factorial(j)*stirling_number2(k, j)*x^k/k for j in range(1, k+1)) for k in range(1, n+2)))
def A090352_list(prec):
P.<x> = PowerSeriesRing(QQ, prec)
return P( f(m, x) ).list()
A090352_list(m-9) # G. C. Greubel, Jul 07 2023
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul D. Hanna, Nov 26 2003
STATUS
approved