OFFSET
1,1
FORMULA
EXAMPLE
G.f.: x = x*((1+x)^2 - x^2)/(1+x)^3 + x^2*((1+x)^3 - x^3)/(1+x)^4 + x^3*((1+x)^4 - x^4)/(1+x)^8 + x^4*((1+x)^5 - x^5)/(1+x)^9 + x^5*((1+x)^6 - x^6)/(1+x)^11 + x^6*((1+x)^7 - x^7)/(1+x)^12 + x^7*((1+x)^8 - x^8)/(1+x)^17 + x^8*((1+x)^9 - x^9)/(1+x)^18 +...+ x^n*((1+x)^(n+1) - x^(n+1))/(1+x)^a(n) +...
PROG
(PARI) {a(n)=if(n<1, 0, n+ floor(log(n+1+1/100)/log(2)) + valuation((n+1)!, 2))}
(PARI) {a(n)=if(n<1, 0, if(n==1, 3, polcoeff(sum(m=1, n+1, x^m*((1+x)^(m+1)-x^(m+1))/(1+x +x^2*O(x^n))^if(m>=n, 1, a(m)))+x^(n+1), n+1)))}
CROSSREFS
KEYWORD
nonn
AUTHOR
Paul D. Hanna, Jul 29 2011
STATUS
approved