Question: Let us say there are five flavors of icecream: banana, chocolate, lemon, strawberry and vanilla.
We can have three scoops. How many variations will there be?
Formulaic solution:
(5+3−1)!/3!(5−1)! = 35
I understand this solution.
However, when i attempt to solve this using the anagram method, i only get 25 rather than 35. My (incorrect) solution:
Attempted anagram method solution:
YYYNN (3 diff scoops)
YYNNN (2 same, 1 diff)
YNNNN (3 same)
Add up all three: 5!/(3!x2!) + 5!/(2!x3!) + 5!/(1!x4!) = 25
Interestingly, when i change the question to selecting only 2 scoops rather than 3. Both the solutions match. Is this the anagram method's limitation or am i doing something incorrect.
EDIT: After further investigation, i managed to get the correct answer by considering the triple scoop and double scoop as additional two flavours.
Then, the anagram becomes:
YYYNNNN [last two No's for Triple scoop (all same scoops) and Double scoop (2 same + 1 Diff)]
But i don't know why this works.