UPSC CSAT 2023 Q47: Sum of 4-Digit Numbers from Given Digits — Solved

What is the sum of all 4-digit numbers less than 2000 formed by the digits 1, 2, 3 and 4, where none of the digits is repeated?

  1. 7998
  2. 8028
  3. 8878
  4. 9238

Answer: (a) 7998

Solution

  1. Fix the first digit. The number has 4 digits and must be less than 2000, so its thousands digit must be 1. If the thousands digit were 2, 3 or 4, the number would be 2000 or more.

  2. Count the numbers. Thousands digit 1 is fixed. The digits 2, 3 and 4 fill the hundreds, tens and units places in any order, with no repeats. Number of arrangements = 3! = 3 × 2 × 1 = 6.

  3. List them as a check. 1234, 1243, 1324, 1342, 1423, 1432.

  4. Thousands place. Every one of the 6 numbers has 1 in the thousands place. Contribution = 6 × 1 × 1000 = 6000.

  5. Each of the other three places. Six numbers share three digits, so each of 2, 3 and 4 appears in each of the hundreds, tens and units places 6 ÷ 3 = 2 times. - Sum of the digits in any one of these places = 2 × (2 + 3 + 4) = 2 × 9 = 18.

  6. Apply place values. - Hundreds: 18 × 100 = 1800 - Tens: 18 × 10 = 180 - Units: 18 × 1 = 18 - Together: 18 × 111 = 1998

  7. Add. Total = 6000 + 1998 = 7998.

  8. Check by direct addition. 1234 + 1243 = 2477; 1324 + 1342 = 2666; 1423 + 1432 = 2855. Then 2477 + 2666 = 5143, and 5143 + 2855 = 7998.

Answer: 7998

Option-wise explanation

  • a: correct — Six numbers start with 1, which gives 6 × 1000 = 6000. Each of 2, 3 and 4 appears twice in each lower place, which gives 18 × 111 = 1998. The total is 6000 + 1998 = 7998.
  • b: incorrect — 8028 ÷ 6 = 1338, but the average of the six numbers must be 1333 (1 in front, and an average digit of 3 in every other place). The sum is 30 too high. Its tens digit, 2, also fails the column check: the units column sums to 18, so 1 is carried and the tens column gives 18 + 1 = 19, a tens digit of 9.
  • c: incorrect — This needs an average of about 1480 per number. That is above 1432, the largest number that can be formed, so it is impossible. A likely way to reach it is counting numbers that start with 2, 3 or 4, which breaks the 'less than 2000' condition.
  • d: incorrect — Even if all six numbers were 1432, the largest possible, the total would be only 6 × 1432 = 8592. 9238 is above that limit. It comes from ignoring the 2000 cap or mixing up the count.

How to eliminate

Average route (fastest): Every number starts with 1. In each of the other three places the digits 2, 3 and 4 appear equally often, so the average digit there is 3. The average number is therefore 1333. There are 3! = 6 numbers, so the sum is 6 × 1333 = 7998. Only one option matches.

Bounds check: The smallest number is 1234 and the largest is 1432, so the sum lies between 6 × 1234 = 7404 and 6 × 1432 = 8592. That removes 8878 and 9238 at once.

Column check: The units digit cannot separate the options, because all four end in 8 (the units column sums to 18). Go one column further: carry 1, and the tens column gives 18 + 1 = 19, so the tens digit is 9. Only 7998 has 9 in the tens place.

About 30–45 seconds with the average route. Attempt it in the first pass.

Know more

Sum of all numbers formed from distinct digits

If you use n distinct non-zero digits to form every n-digit number with no repetition, each digit appears in each place (n − 1)! times. So:

Sum = (n − 1)! × (sum of the digits) × 111…1 (n ones)

Digits used (n) Repeat count (n − 1)! Multiplier
3 2 111
4 6 1111
5 24 11111

If one place is fixed, as here (thousands digit = 1), handle that place on its own. Then apply the formula to the remaining digits and places.

Shortcut: sum = (number of numbers) × (average number). The average number has the average digit in every free place.

Worked variant: Find the sum of all 3-digit numbers formed from 2, 5 and 8 without repetition.

  • Count = 3! = 6. Digit sum = 15.
  • Sum = 2! × 15 × 111 = 30 × 111 = 3330.
  • Check with the average: average digit = 5, so the average number is 555, and 6 × 555 = 3330.

Watch for zero: if 0 is one of the digits, numbers that start with 0 are not true n-digit numbers. Work out the total for all arrangements, then subtract the sum of the arrangements that have 0 in front.