There are $\binom{r+n-1}{n-1}$ ways for distributing $r$ identical balls into $n$ distinct boxes. The $m$ part is throwing me off. I would say there are $\binom{r+n-m-1}{n-m-1}$ ways, but I'm not sure if I'm right.
2026-04-12 09:32:48.1775986368
How many ways can we distribute $r$ identical balls into $n$ distinct boxes with exactly $m$ boxes empty
2k Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
2

It's not quite correct. Think about it as a two-stage process:
So your answer is off, but only by a factor of $\binom nm$.