I was asked to obtain 6 balls in 4 boxes case with each ball and box to be the same. Then I obtain there will be 8 cases, say (6,0,0,0), (5,1,0,0), (4,2,0,0),(4,1,1,0),(3,3,0,0),(3,2,1,0),(3,1,1,1),(2,2,1,1) (order is not a matter).
So I am thinking, can one generalize the case for N indistinguishable balls in M indistinguishable boxes. How many cases are? It can be interpreted as how many different equations can I have with$$x_1+x_2+x_3+...+x_M=N$$ and for each $x_i\ge0, x_i\ge x_j,\forall i\ge j$.
I still have no idea about that.