QlarIITy

MathematicsJEE Main 2025 · 28 JanuaryInteger

The number of natural numbers, between 212 and 999 , such that the sum of their digits is 15 , is

Try it before you look.The full solution is on this page, below the answer box, the moment you check. No sign-in needed.

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 x1+x2+…+xk=nx_1 + x_2 + \ldots + x_k = n in non-negative integers is

N=n+k−1Ck−1N = {}^{n+k-1}C_{k-1}

A variable that must be at least mm is replaced by mm 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.

  1. Step 1: All three-digit numbers

    With digits aa, bb, cc and p=a−1p = a - 1, the condition is p+b+c=14p + b + c = 14 with p≤8p \leq 8 and b,c≤9b, c \leq 9. There are 16C2=120{}^{16}C_2 = 120 solutions without the limits; removing 7C2=21{}^7C_2 = 21 with p≥9p \geq 9 and 2×6C2=302 \times {}^6C_2 = 30 with bb or cc at least 10 leaves 69.

  2. Step 2: The lower end

    The numbers up to 212 with digit sum 15 start with 1 and have b+c=14b + c = 14: 159, 168, 177, 186 and 195. Numbers from 200 to 212 have digit sum at most 5. So the count is 69−5=6469 - 5 = 64.

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. N=n+k−1Ck−1N = {}^{n+k-1}C_{k-1}

More on Distribution Problems