Mathematics (JEE)HardCAT · MBA placement

How many strings of six digits (leading zeros allowed) have digit sum equal to 9?

  1. A. 3003
  2. B. 2011
  3. C. 100000
  4. D. 2002

Correct answer: D. 2002

No digit can exceed 9 when the sum is 9, so the count is the non-negative solutions of x₁ + … + x₆ = 9: C(14,5) = 2002. The trap C(15,5) = 3003 uses a wrong stars-and-bars shift.

More Permutations, Combinations and Probability questions

Exams that ask this topic