The exact problem i am referring to and the number of distributions for the problem is computed here. I am interested in knowing those distributions explicitly.
For example, there are 5 balls and 3 boxes: one distribution is 2 balls in box 1, 2 in box 2, 1 in box 3 referred to as, say 221. Now i want to list all such possible distributions: -
212
131
104
. . .
One way is that i run the matlab command: perms([0,0,0,0,0,1,1,1])
. This essentially generates all permutations of 5 balls and 2 sticks. but there is massive over-counting as the command perms
does not recognize identical objects.