OFFSET
0,2
FORMULA
G.f.: ((1+10x-2x^2)+(1-4x)^(3/2))/2. a(n)=6(2n-4)!/((n-2)!n!), if n>2. a(n)=a(n-1)(4n-10)/n, if n>3.
G.f. A(x) = (2c(x)-1)^3/c(x)^4 = (1-c(x)x)(1+c(x)x)^3, where c(x) = g.f. for Catalan numbers A000108.
PROG
(PARI) a(n)=if(n<3, (n>=0)+(n>0), 6*(2*n-4)!/n!/(n-2)!)
(PARI) a(n)=if(n<0, 0, polcoeff(((1+10*x-2*x^2)+(1-4*x)*sqrt(1-4*x+x*O(x^n)))/2, n))
(PARI) a(n)=if(n<=0, n==0, polcoeff(subst((1-x)*(1+x)^3, x, serreverse(x-x^2+x*O(x^n))), n))
CROSSREFS
KEYWORD
nonn
AUTHOR
Michael Somos, Jan 31 2004
STATUS
approved