QlarIITy

MathematicsJEE Main 2020 · 3 SeptemberInteger

The total number of 3-digit numbers whose sum of digits is 10, 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.

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. 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.

  1. Step 1: Set up

    Let the digits be aa, bb, cc with a≥1a \geq 1 and a+b+c=10a + b + c = 10. With a=p+1a = p + 1 this becomes p+b+c=9p + b + c = 9 in non-negative integers.

  2. Step 2: Count

    There are 9+2C2=11C2=55{}^{9+2}C_2 = {}^{11}C_2 = 55 solutions. Only p=9p = 9, which means a=10a = 10, is not a digit, so the count is 55−1=5455 - 1 = 54.

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

More on Distribution Problems