I am trying to prove a formula (for ways of distributing $n$ identical balls among $r$ persons when each person may get any number of balls) ${n+r-1}\choose{r-1}$. But I am not able to prove it. I may be doing something wrong but I am not able to figure out what exactly?
This is what I am doing.
I put $n$ identical balls in a line. Now there are $(n+1)$ spaces/gaps between these $n$ identical things including (left to the leftmost ball and the next to the rightmost ball). So now basically I just need to select any $(r-1)$ gaps from these $(n+1)$ gaps and I will be able to create $r$ groups.
So, my answer is ${n+1}\choose{r-1}$.
But the actual answer to this is ${n+r-1}\choose{r-1}$ as per Number of ways of distributing n identical objects among r groups
I want to know what am I doing wrong? Thanks!