sum(binomial(n,k)*p^k*(1-p)^(n-k)), k=5 to 8 for n=1000 and p=0.005