QlarIITy

MathematicsJEE Main 2023 · 29 JanuaryInteger

If all the six digit numbers x1x2x3x4x5x6x_1x_2x_3x_4x_5x_6 with0<x1<x2<x3<x4<x5<x60 < x_1 < x_2 < x_3 < x_4 < x_5 < x_6are arranged in the increasing order, then the sum of the digits in the 72th72^{th} number 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 number with increasing digits is fixed by its set of digits.

Concept refresher. The number of ways to choose rr objects from nn different objects is

nCr=n!r!(n−r)!{}^nC_r = \dfrac{n!}{r!(n - r)!}

Independent choices multiply and separate cases add.

Picture the situation. Since the digits strictly increase and none is 0, each number corresponds to a choice of six different digits from 1 to 9, written in increasing order. In increasing order of the numbers, those with a smaller first digit come first, then those with a smaller second digit, and so on.

Approach. Count the blocks of numbers by their leading digits and locate the required position.

  1. Step 1: Starting with 1

    The other five digits are chosen from 2 to 9 in 8C5=56{}^8C_5 = 56 ways, so these are the first 56 numbers.

  2. Step 2: Starting with 23

    The next numbers start with 2, and first with 23; their other four digits are chosen from 4 to 9 in 6C4=15{}^6C_4 = 15 ways, filling positions 57 to 71.

  3. Step 3: The required number

    The next number is the first one starting with 24, which is 245678, and its digits add to 2+4+5+6+7+8=322 + 4 + 5 + 6 + 7 + 8 = 32.

Answer. 32

Sanity check. The number just before it is 236789, the last one starting with 23, and 245678 is the next larger number with increasing digits.

Common wrong answers

  • 35: Stopping one number early, at 236789, gives a digit sum of 35.

Key takeaway

The trap. The last position of a block and the first of the next are easily confused.

How toppers think. They write down the running totals after each block of numbers.

Remember. nCr=n!r!(n−r)!{}^nC_r = \dfrac{n!}{r!(n - r)!}

More on Combinations