The question is this: How many ways are there to put 5 different balls into 3 different boxes so that none of the boxes is empty?
The correct answer as per my lecturer's notes is 150, and I would like to know where I am going wrong in my approach.
Here is how I approached it (wrongly):
Separated into three tasks:
1) Picking three balls from 5 to put in the boxes
{5 \choose 3} ways
2) Permuting those balls
3! ways
3) Placing the other two balls can be done in two ways:
Either put both in one of the boxes
3 ways
Or put both each in a different box
P(3,2) ways to pick two boxes and arrange the balls in them
Task 3 has a total of
6 +3 = 9 ways
Total using product rule is (as per my approach, which is incorrect):
60 * (9) = 540
I have seen other approaches to getting the correct answer(including using Stirling numbers of the second kind followed by permutation, inclusion-exclusion), but would like to know what is the correct way to split this into tasks and use the product rule (without using Stirling numbers).
You could also modify your original approach to account for the double counting.
After your step two, your 60 is correct.
Addressing your two possibilities:
The two extra balls are in different containers: your six is correct but each answer appears four times (2 pairs of balls in cups and either member could have been part of the initial three placed), so this possibility is 60 x 6 / 4 = 90
The two extra balls are in the same container has 3 three possibilities but each one is a triple count so 60 x 3 /3 = 60.
Adding them together yields 150.