The number of natural numbers, between and , such that the sum of their digits is , is _____.
JEE Mathematics 2025 Question with Solution
Answer
Correct answer:64
Step-by-step solution
Casewise Counting
Given: We need three-digit natural numbers between and such that the sum of digits is .
Find: The number of such natural numbers.
Let the three-digit number be represented as , where are digits. Then
and since is the hundreds digit, it must satisfy .
Now count possible pairs for each value of :
- For , , giving combinations.
- For , , giving combinations.
- For , , giving combinations.
- For , , giving combinations.
- For , , giving combinations.
- For , , giving combinations.
- For , , giving combinations.
- For , , giving combinations.
Therefore, the total number of valid numbers is
Hence, the number of natural numbers is .
Combinatorics with Inclusion-Exclusion
Given: We are asked to count natural numbers between and whose digits add to .
Find: The total number of such numbers.
Let the number be , where are digits. Then
with constraints
Set
so the equation becomes
where .
First count all non-negative integer solutions without upper bounds:
Now remove invalid cases.
If , let . Then
so the number of such solutions is
If , let . Then
so the number of such solutions is
Similarly, if , the number of solutions is
There are no overlap cases, because any two such violations together make the remaining sum negative.
Therefore,
So, the number of natural numbers between and whose digits sum to is .
Common mistakes
Treating the problem as counting all three-digit numbers with digit sum is wrong because the lower bound is , so the hundreds digit must satisfy . Start with the correct range for the hundreds digit.
Ignoring the digit restriction leads to invalid pairs such as values greater than . Always remember that tens and units places are digits, not arbitrary integers.
While using stars and bars, forgetting to subtract cases where , , or gives an overcount. Apply inclusion-exclusion after counting unrestricted non-negative solutions.
Practice more Applications of P&C questions
Get unlimited AI-adaptive practice, mastery tracking, and an AI tutor that explains every step — free to start.
Related questions
- The number of strictly increasing functions f from the set 1, 2, 3, 4, 5, 6 to the set 1, 2, 3,, 9 such that…Medium · JEE 2026
- Let S = (m, n): m, n 1, 2, 3,....., 50. If the number of elements (m, n) in S such that 6^m+9^n is a multiple…Medium · JEE 2026
- The largest n N, for which 7^n divides 101!, is:Easy · JEE 2026
- If ( 1^15C0 + 1^15C1) ( 1^15C1 + 1^15C2) ( 1^15C12 + 1^15C13) = ^13^14C0 ^14C1 ^14C12, then 30 is equal to.Medium · JEE 2026
- Let ABC be a triangle. Consider four points p1, p2, p3, p4 on the side AB, five points p5, p6, p7, p8, p9 on…Medium · JEE 2026
- The number of 4-letter words, with or without meaning, which can be formed using the letters PQRPRSTUVP, is:Medium · JEE 2026
