The correct option is
D 126Number of positive solutions for
x1+x2+x3+....xn=k is
k−1Cn−1For choosing 4 different ice-creams the different possibilities are:
1) Choosing ice-creams of only 1 flavour
The number of ways of selecting 1 flavour out of 6 is =6C1=6
2) Choosing ice-creams of only 2 flavours
The number of ways of selecting 2 flavours out of 6 is=6C2=15
Also different solutions for number of ice-creams of each flavour can be found out by finding number of solutions of a+b=4 which is 3C1=3
Hence the answer=15×3=45
3) Choosing ice-creams of 3 flavours
The number of ways of selecting 3 flavours out of 6 is=6C3=20
Also different solutions for number of ice-creams of each flavour can be found out by finding number of solutions of a+b+c=4 which is 3C2=3
Hence, the answer =20×3=60
4) Choosing ice-creams of 4 flavours
The number of ways of selecting 4 flavours out of 6 is=6C4=15
Also different solutions for number of ice-creams of each flavour can be found out by finding number of solutions of a+b+c+d=4 which is 3C3=1
Hence the answer =15×1=15
Hence the number of ways a customer can choose 4 ice-creams =6+45+60+15=126
Hence the correct answer is 126.