recursive computation of pdf over a range for negative binomial and hypergeometric