Skip to main content

GATE CSE 2025Quantitative Aptitude › Probability & CombinatoricsVerified

GATE CSE 2025 PYQ: A shop has 4 4 4 distinct flavors of ice-cream. One can purchase any number of scoops of any flavor. The…

A shop has 4 distinct flavors of ice-cream. One can purchase any number of scoops of any flavor. The order in which the scoops are purchased is inconsequential. If one wants to purchase 3 scoops of ice-cream, in how many ways can one make that purchase?

  1. A
    4
  2. B
    20
    Correct answer
  3. C
    24
  4. D
    48

Answer

(B) 20 20 20

Approach

The purchase is a multiset of 3 scoops chosen from 4 distinct flavors, since order does not matter and repetitions are allowed. Count nonnegative solutions to \(x_1+x_2+x_3+x_4=3\), where \(x_i\) is the number of scoops of flavor \(i\).

Order is irrelevant and repeats are allowed, so the number of ways is the number of multisets of size 3 from 4 flavors: \(\binom{4+3-1}{3}=20\). Thus option B is correct.

Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.