binomial[n+p-3,p-2] < d <=binomial[n+p-2,p-2] where p = 10, d = 1000