How many natural numbers having at most five digits have a sum of their digits as at most six ?
Punjab Civil Service - 2025,
Answer: A
There are 461 such numbers.
Write every number with at most five digits as five digits with leading zeros. We need the number of solutions of \(d_{1} + d_{2} + \dots + d_{5} \leq 6\) with each \(d_{i} \geq 0\) (no digit can exceed 6 here, so the limit of 9 never binds). Adding a slack variable makes this an equation in six unknowns summing to 6:
\[ \binom{6 + 5}{5} = \binom{11}{5} = 462 \]
This count includes 00000, which is not a natural number, so the answer is \(462 - 1 = 461\). Option 462 is the trap of forgetting to remove zero.
Please log in or register to report this question.