In how many ways $n$ distinct objects can be distributed to $k$ identical bins if bins may be left empty?
$$\sum_{r_{1}+...+r_{k}=n}^{ }\frac{1}{k!}\binom{n}{r_1}\binom{n-r_1}{r_2}\cdot\cdot\cdot\binom{n-...-r_{k-1}}{r_k}$$$$\frac{1}{k!}\sum_{r_{1}+...+r_{k}=n}^{ }\frac{n!}{r_{1}!r_{2}!\cdot\cdot\cdot r_{k}!}$$$$\frac{k^{n}}{k!}$$
I noticed that the answer is given by $$\sum_{r=0}^{k}{ n \brace k-r}$$
Where ${ n \brace k}$ denotes Stirling numbers of the second kind.
But my first answer is not true. can someone explain the reason?
Let $i$ be the number of bins that are not empty. Then the Stirling number $S(n, i)$ is equal to the number of ways to distribute the $n$ objects into the $i$ bins, such that none are empty. Now, all that is left is to sum over all possible values of $i$. See the following for a concrete example: distribution of distinct objects into identical boxes .