Suppose I have $n$ boxes, and an infinity of balls. All balls are regarded the same.
I randomly throw balls into the boxes, each time the ball may be thrown into one of the box, with equal probability, i.e., $\frac{1}{n}$.
Now I throw $k$ times, each time one ball thrown into one box. Let $E_{k, m, n}$ denote the situation where the k balls go into at most (including) m boxes (with $m\leq n\leq k$). What is the probability for $E_{k,m,n}$ to happen?
I think the answer could be as follows:
Using stars and bars, the number of ways k balls could get into m boxes is $(k-1)\choose(m-1)$ ways. the number of ways m boxes could be chosen amongst n boxes is $n\choose m$. The probability that each of the k balls could hit any of the boxes is $\frac{1}{n}$.If it is thrown k times, it is $(\frac{1}{n})^k$. Thus
$E(n,m,k) = {(k-1)\choose(m-1)}.{n\choose m}.(\frac{1}{n})^k$