We have M indistinguishable objects and will divide them into N indistinguishable groups. How many ways can this be done?
Many might believe that this is a Stars and Bars type question, but it is more complex. Consider for example, putting 9 objects (M=9) in 4 piles (N=4), the distinct arrangements are:
6 1 1 1
5 2 1 1
4 3 1 1
4 2 2 1
3 3 2 1
3 2 2 2
These are the only 6 arrangements possible. The classic stars and bars solution is C(m-1,n-1) = C(8,3) = 56, drastically overstating them because of duplicate counting.
I get the feeling that the solution is a combination of combinations but I can't figure it out.
How can we generalize the solution?