Since the Candies are Different ---> but the Baskets they are Distributed to are IDENTICAL, it only matters which candies are chosen to end up in a particular Number Stack. It does not matter which Basket gets that Number Stack.
There are 6 Different Scenarios in which the 5 Different Candies can be Divided among the 4 Identical Baskets:
Scenario 1: 0 - 0 - 0 - 5
"5 Choose 5" = 1 Way in which we can choose the 5 Different Candies. It does NOT matter which Basket receives them.
Scenario 2: 0 - 0 - 1 - 4
"5 Choose 4" and "1 Choose 1" = 5! / 4! * 1! = 5 Ways in which we can choose the 4 Different Candies for 1 Stack and 1 Candy for the Other Stack.
Scenario 3: 0 - 0 - 2 - 3
"5 Choose 3" and "2 Choose 2" = 5! / 3! * 2! = 10 Ways in which we can choose the 3 Different Candies for 1 Stack and 2 Candies for the Other Stack
Scenario 4: 0 - 1 - 1 - 3
"5 choose 3" and "2 Choose 1" and "1 choose 1" =
5! / 3! * 1! * 1! = 10 Ways
Scenario 5: 0 - 1 - 2 - 2
"5 Choose 2" and "3 Choose 2" and "1 Choose 1" =
However, since 2 of the Identical Stacks are of EQUAL SIZE (2 and 2), we will have Over-counting. For Each 1 Distribution we want counted, 2! will actually be Counted. Therefore, we must Divide by 2! to Remove these Repeats.
5! / 2! * 2! * 1! * (1 / 2!) = 5! / 2 * 2 * 2 = 5 * 4 * 3 / 2 * 2 = 15 Ways
Scenario 6: 1 - 1 - 1 - 2
"5 Choose 2" = 5! / 2! * 3! = 10 Ways
Adding up the 6 Scenarios =
1 + 5 + 10 + 10 + 15 + 10 = 51 Different Ways in which we can Distribute 5 Different Candies to 4 Identical Baskets