OFFSET
0,3
FORMULA
EXAMPLE
a(2) = 4.
a(3) = 2*4^2 = 32.
a(4) = 4*3*32 + 1*4*4 = 400.
a(5) = 4*4*400 + 1*4*32 + 2*32*4 = 6784.
a(6) = 4*5*6784 + 1*4*400 + 2*32*32 + 3*400*4 = 144128.
G.f.: A(x) = 1 + x + 4*x^2 + 32*x^3 + 400*x^4 + 6784*x^5 +...
= x/series_reversion(x + x^2 + 5*x^3 + 45*x^4 + 585*x^5 +...).
MATHEMATICA
x=4; a[0]=a[1]=1; a[2]=x; a[3]=2x^2; a[n_]:=a[n]=x*(n-1)*a[n-1]+Sum[(j-1)*a[j ]*a[n-j], {j, 2, n-2}]; Table[a[n], {n, 0, 18}](Robert G. Wilson v)
PROG
(PARI) a(n)=Vec(x/serreverse(x*Ser(vector(n+1, k, if(k==1, 1, prod(j=0, k-2, 4*j+1))))))[n+1]
(PARI) a(n, x=4)=if(n<0, 0, if(n==0 || n==1, 1, if(n==2, x, if(n==3, 2*x^2, x*(n-1)*a(n-1)+sum(j=2, n-2, (j-1)*a(j)*a(n-j))))))
CROSSREFS
KEYWORD
nonn,changed
AUTHOR
Philippe Deléham and Paul D. Hanna, Oct 28 2005
STATUS
approved