Mathematics (JEE)HardCAT · MBA placement
How many strings of six digits (leading zeros allowed) have digit sum equal to 9?
- A. 3003
- B. 2011
- C. 100000
- 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.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- How many 3-element subsets of {1, 2, ..., 10} have an even sum?
- How many lattice paths from (0, 0) to (3, 3) using unit East and North steps pass through the point (2, 2)?
- How many positive divisors of 720 are divisible by 4 but not by 8?
- How many binary strings of length 10 contain no three consecutive 0s?
- How many rectangles have all four vertices among the 8 vertices of a regular octagon?
- How many squares have all four vertices among the 16 points (x, y) with x, y in {0, 1, 2, 3}?