The total number of 3-digit numbers whose sum of digits is 10, is .........
Solution
Core idea. A digit sum condition is an equation in whole numbers with limits.
Concept refresher. The number of solutions of in non-negative integers is
A variable that must be at least is replaced by plus a new non-negative variable.
Picture the situation. A three-digit number has a first digit from 1 to 9 and two more digits from 0 to 9. The three digits add to 10. Lowering the first digit by one turns this into a free sharing of 9 among three places, where the only thing to watch is that no digit goes above 9.
Approach. Shift the first digit, count the solutions, and remove any that break the digit limit.
Step 1: Set up
Let the digits be , , with and . With this becomes in non-negative integers.
Step 2: Count
There are solutions. Only , which means , is not a digit, so the count is .
Answer. 54
Sanity check. By first digit from 1 to 9 the other two digits add to 9, 8, down to 1, which can be done in 10, 9, down to 2 ways; these add to 54.
Common wrong answers
- 55: Not removing the solution with first digit 10 gives 55.
- 63: Allowing a first digit 0 gives solutions less the 3 with a part equal to 10, which is 63.
Key takeaway
The trap. A solution with a part above 9 is not a number.
How toppers think. They cross-check by adding the counts for each first digit.
Remember.
More on Distribution Problems
- A person has three different bags and four different books. The number of ways, in which he can put these…
- A building has ground floor and 10 more floors. Nine persons enter in a lift at the ground floor. The lift…
- Let A = {(a, b, c): a, b, c; are non-negative integers and; a + b + 2c = 22}. Then n(A) is equal to:
- All 19 on Distribution Problems ›