OFFSET
0,3
FORMULA
EXAMPLE
a(2) = 6.
a(3) = 2*6^2 = 72.
a(4) = 6*3*72 + 1*6*6 = 1332.
a(5) = 6*4*1332 + 1*6*72 + 2*72*6 = 33264.
a(6) = 6*5*33264 + 1*6*1332 + 2*72*72 + 3*1332*6 = 1040256.
G.f.: A(x) = 1 + x + 6*x^2 + 72*x^3 + 1332*x^4 + 33264*x^5
+...
= x/series_reversion(x + x^2 + 7*x^3 + 91*x^4 + 1729*x^5
+...).
MATHEMATICA
x=6; 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, 17}](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, 6*j+1))))))[n+1]
(PARI) a(n, x=6)=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