To determine the number of possibilities for n-undistinguishable objects and m-undistinguishable containers it is the number of different m-piles you can make with n-objects 5=n, 3=m: 5,0,0 4,1,0 4,0,1 3,2,0 3,1,1 ect.