How many ways are there to put 6 identical balls to 3 distinct bins such that no bin is empty ?
I tried to solve by stars and bars problem. As it is saying that no bin is empty, means every bin must have atleast one ball.
After, putting one ball in each I am left with three balls. So left 3 balls can be put in C(5,2).
But, the answer is 540. Where am i going wrong ?