I have the following question:
Throwing $k$ balls into $n$ bins. What is the probability that exactly $z$ bins are not empty?
I thought about something like: $$\Pr(z)=\frac{n! z^{k-z}}{n^k (n-z)!},$$ but this is not correct.
Another idea is: $\Pr(bin ~empty)=(1-1/n)^k$, $\Pr(bin ~Not ~empty)=1-(1-1/n)^k$, so:
$$\Pr(z)=(\Pr(bin ~empty))^{n-z}(\Pr(bin ~Not ~empty))^{z}\cdot A$$
So, how to obtain the $A$?
Thanks!