UPSC CSAT 2022 Q54: Sum of All 3-Digit Numbers from Digits — Solved
Let A, B and C represent distinct non-zero digits. Suppose x is the sum of all possible 3-digit numbers formed by A, B and C without repetition.
Consider the following statements:
1. The 4-digit least value of x is 1332.
2. The 3-digit greatest value of x is 888.
Which of the above statements is/are correct?
- 1 only
- 2 only
- Both 1 and 2
- Neither 1 nor 2
Answer: (a) 1 only
Solution
-
Count the numbers. A, B and C are three distinct non-zero digits. Without repetition they form 3 × 2 × 1 = 6 three-digit numbers: ABC, ACB, BAC, BCA, CAB, CBA.
-
Count how often each digit appears in each place. Each digit sits in the hundreds place in 2 of the 6 numbers. The same holds for the tens place and the units place.
-
Add place by place. - Hundreds: 2 × (A + B + C) × 100 = 200(A + B + C) - Tens: 2 × (A + B + C) × 10 = 20(A + B + C) - Units: 2 × (A + B + C) × 1 = 2(A + B + C) - Total: x = 222 × (A + B + C)
-
Find the range of A + B + C. The digits are distinct and non-zero. - Smallest sum: 1 + 2 + 3 = 6 - Largest sum: 7 + 8 + 9 = 24 - So 6 ≤ A + B + C ≤ 24.
-
Find the range of x. - Least x = 222 × 6 = 1332 - Greatest x = 222 × 24 = 5328
-
Check: are there any 3-digit values of x? For x to have 3 digits, x ≤ 999. Then A + B + C ≤ 999 ÷ 222 ≈ 4.5, so A + B + C ≤ 4. The digit sum is at least 6, so this cannot happen. Every possible x has 4 digits.
-
Statement 1: "The 4-digit least value of x is 1332." The least value of x is 1332, from the digits 1, 2, 3. Check: 123 + 132 + 213 + 231 + 312 + 321 = 1332. It is a 4-digit number. The statement is correct.
-
Statement 2: "The 3-digit greatest value of x is 888." 888 = 222 × 4, so it needs A + B + C = 4. Three distinct non-zero digits cannot add up to 4. You would need a repeat (1 + 1 + 2) or a zero (0 + 1 + 3), and both are ruled out. Step 6 also shows that x never has 3 digits. The statement is wrong.
-
Answer: Only Statement 1 is correct.
Option-wise explanation
- a: correct — x = 222 × (A + B + C). The least digit sum is 1 + 2 + 3 = 6, so the least x is 1332, which has 4 digits. Statement 2 fails because 888 needs a digit sum of 4, which three distinct non-zero digits cannot give.
- b: incorrect — This rejects Statement 1, but 123 + 132 + 213 + 231 + 312 + 321 = 1332 exactly. It also accepts Statement 2, which needs A + B + C = 4. No three distinct non-zero digits add up to 4.
- c: incorrect — The trap is 888 = 222 × 4. It fits the formula, so it looks right. But a digit sum of 4 needs a repeated digit (1, 1, 2) or a zero (0, 1, 3), and the question rules out both. No value of x has 3 digits.
- d: incorrect — Statement 1 holds. The digits 1, 2, 3 give the smallest possible digit sum, 6, and 222 × 6 = 1332. Students who suspect the word "4-digit" is a trick fall for this option, but every x has 4 digits, so the description is accurate.
How to eliminate
Remember that the sum of all 3-digit numbers formed from three distinct digits is 222 × (sum of the digits). Then check each statement with one division.
- 1332 ÷ 222 = 6, the digit sum of 1, 2, 3. That is the smallest sum of three distinct non-zero digits. Statement 1 is true, so options b and d are out.
- 888 ÷ 222 = 4. The smallest sum of three distinct non-zero digits is 6, so 4 is impossible. Statement 2 is false, so option c is out.
If you forget the formula, add 123 + 132 + 213 + 231 + 312 + 321 = 1332 directly. That confirms Statement 1. Since 1332 is the smallest x and it already has 4 digits, no x can have 3 digits.
Time: about 30–45 seconds if you know the 222 rule, and about 90 seconds if you add the six numbers. Attempt this one in the first pass.
Know more
Sum of all numbers formed by permuting distinct digits
Take n distinct non-zero digits and use each one exactly once in every number. There are n! such numbers. Each digit sits in each place (n − 1)! times. So:
Sum = (n − 1)! × (sum of the digits) × (11…1 with n ones)
| Digits used | Numbers formed | Multiplier |
|---|---|---|
| 2 | 2 | 1! × 11 = 11 |
| 3 | 6 | 2! × 111 = 222 |
| 4 | 24 | 3! × 1111 = 6666 |
Worked variant. Digits 2, 4, 7. The digit sum is 13, so the total is 222 × 13 = 2886. Check: 247 + 274 + 427 + 472 + 724 + 742 = 2886. ✓
Boundary questions. To find the least or greatest total, find the least or greatest digit sum allowed by the conditions:
- Three distinct non-zero digits: the sum runs from 1 + 2 + 3 = 6 to 7 + 8 + 9 = 24.
- So the total runs from 1332 to 5328, and every total is a multiple of 222.
Watch the conditions. If zero is allowed, numbers that start with 0 are not 3-digit numbers. The plain formula then over-counts, and you must subtract the cases with a leading zero. If repetition is allowed, there are n^n numbers, and each digit appears n^(n−1) times in each place. Before using the formula, check whether digits are distinct, whether zero is allowed, and whether repetition is allowed.