The number of natural numbers, between 212 and 999 , such that the sum of their digits is 15 , is
Solution
Core idea. A digit sum condition is an equation in whole numbers with limits on each variable.
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. Every number between 212 and 999 has three digits. Counting all three-digit numbers with digit sum 15 is a standard count with limits on the digits. From that count the numbers that are too small must be removed: those starting with 1, and any from 200 to 212, though the latter have very small digit sums.
Approach. Count the three-digit numbers with the digit sum, then subtract those not above the lower bound.
Step 1: All three-digit numbers
With digits , , and , the condition is with and . There are solutions without the limits; removing with and with or at least 10 leaves 69.
Step 2: The lower end
The numbers up to 212 with digit sum 15 start with 1 and have : 159, 168, 177, 186 and 195. Numbers from 200 to 212 have digit sum at most 5. So the count is .
Answer. 64
Sanity check. By first digit from 2 to 9, the other two digits add to 13, 12, 11, 10, 9, 8, 7 and 6, which can be done in 6, 7, 8, 9, 10, 9, 8 and 7 ways, adding to 64.
Common wrong answers
- 69: Forgetting the lower bound 212 counts all three-digit numbers with this digit sum, 69.
Key takeaway
The trap. The range removes the numbers that start with 1.
How toppers think. They cross-check by listing the count 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 ›