A customer choose 4 ice-cream cones
They contain only 2 or 3 different flaours.
Case 1: 6 icecreams of 3 different flavours are chosen
Let the flavours be {a,b,c,d,e,f}
⇒let flavour a occur 2 times
∴ Choose the flavours a,a,b,c
=6C3×3!2!
=6!3!3!×3!2!
=6×5×4×3!3!2!
=6×5×2=60 ways.
Case 2:two different flavours are choosen
⇒ two flavours repeat 2 times.
Let {a,b} be the repeated flavours.
a,a,b,b be the flavours
=6C2×3
=6!4!2!×3
=6×5×4!4!2!×3
=45 times
∴ Number of ways=2 different flavours+3 different flavours
=60+45=105 ways.