QlarIITy

MathematicsJEE Main 2023 · 10 AprilInteger

The sum of all the four-digit numbers that can be formed using all the digits 2, 1, 2, 3 is equal to ____.

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. The sum of all arrangements is found place by place.

Concept refresher. If the digits in each place of a set of four-digit numbers add to ss, the sum of the numbers is

T=s×(1000+100+10+1)T = s \times (1000 + 100 + 10 + 1)

Picture the situation. The digits are 1, 2, 2, 3, so the numbers are the different arrangements of these four digits, and the repeated 2 reduces their number. Adding the numbers directly is long; adding one place at a time is quick, because every place sees the same collection of digits.

Approach. Count the numbers, add the digits appearing in one place, and multiply by the sum of the place values.

  1. Step 1: How many numbers

    The digits 1, 2, 2, 3 can be arranged in 4!2!=12\dfrac{4!}{2!} = 12 ways, so there are 12 numbers.

  2. Step 2: One place

    In any one place the digit 2 appears in 6 of the numbers, and 1 and 3 appear in 3 each. So each place adds up to 2×6+1×3+3×3=242 \times 6 + 1 \times 3 + 3 \times 3 = 24.

  3. Step 3: The sum

    Every place has the same total, so the sum of the numbers is 24×1111=2666424 \times 1111 = 26664.

Answer. 26664

Sanity check. The average digit is 1+2+2+34=2\dfrac{1 + 2 + 2 + 3}{4} = 2, so the average number is 2222, and 12×2222=2666412 \times 2222 = 26664.

Common wrong answers

  • 53328: Treating the two 2s as different gives 24 numbers and a sum of 53328, which counts every number twice.

Key takeaway

The trap. Alike digits reduce the number of different arrangements.

How toppers think. They multiply the number of arrangements by the average number.

Remember. T=s×1111T = s \times 1111

More on Permutations