Placement AptitudeModerateInfosys · Wipro

A vending machine accepts ₹1, ₹2, ₹5 and ₹10 coins, and a customer has plenty of each. How many different collections of exactly 5 coins can she put in, if only the number of coins of each value matters?

  1. A. 1024
  2. B. 56
  3. C. 126
  4. D. 625

Correct answer: B. 56

Counting c₁ + c₂ + c₅ + c₁₀ = 5 in non-negative integers: (5 + 3)C3 = 56. 1024 = 4⁵ counts ordered sequences of coins; 126 = 9C4 mixes up the two numbers in the stars-and-bars formula.

More Permutations, Combinations and Probability (Placement) questions

Exams that ask this topic