(PARI) {a(n) = my(A=x); for(i=1, n, A = 3/2*serreverse( x - 2*x*A +x*O(x^n) ) - x/2 ); polcoeff(A, n)}
for(n=1, 30, print1(a(n), ", "))
(PARI) {a(n) = my(A=x, B); for(i=1, n, B = (x + 2*A)/3 +x*O(x^n); A = x*(1 + subst(A, x, B))/(1 - 2*subst(A, x, B)) ); polcoeff(A, n)}
for(n=1, 30, print1(a(n), ", "))