Q[0,1,0]=1;Q[n_,f_,g_]/;n<0 | | f<0 | | g<0=0;
Q[n_,f_,g_]:=Q[n,f,g]=6/(n+1)((2n-1)/3 Q[n-1,f,g]+(2n-1)/3 Q[n-1、f-1,g]+(2 n-3)(2n-2)(2N-1)/12 Q[n-2,f,g-1]+1/2和[l=n-k;和[v=f-u;和[j=g-i;布尔[l>=1&v>=1&j>=0](2k-1)(2l-1)Q[k-1,u,i]Q[l-1,v,j],{i,0,g}],{u,1,f}],},{k,1,n}]);
a[n_]:=Q[n,9,1];