-1/2+2^(-(n+1)) * (n+1) * binom (n,(n+1)/2) where n=1000001