UPSC CSAT 2024 Q35: Number Plus Its Digit Reversal — Solved

Let X be a two-digit number and Y be another two-digit number formed by interchanging the digits of X. If (X + Y) is the greatest two-digit number, then what is the number of possible values of X?

  1. 2
  2. 4
  3. 6
  4. 8

Answer: (d) 8

Solution

  1. Write X with its digits. Let X = 10a + b, where a is the tens digit and b is the units digit.
  2. Interchanging the digits gives Y = 10b + a.
  3. Both X and Y must be two-digit numbers. X is two-digit, so a ≥ 1. Y is two-digit, so its tens digit b must also be ≥ 1. So both a and b lie between 1 and 9.
  4. Add them: X + Y = (10a + b) + (10b + a) = 11a + 11b = 11(a + b).
  5. The greatest two-digit number is 99. So 11(a + b) = 99, which gives a + b = 99 ÷ 11 = 9.
  6. List every pair of digits with a + b = 9 and a, b ≥ 1: - a = 1, b = 8 → X = 18, Y = 81 - a = 2, b = 7 → X = 27, Y = 72 - a = 3, b = 6 → X = 36, Y = 63 - a = 4, b = 5 → X = 45, Y = 54 - a = 5, b = 4 → X = 54, Y = 45 - a = 6, b = 3 → X = 63, Y = 36 - a = 7, b = 2 → X = 72, Y = 27 - a = 8, b = 1 → X = 81, Y = 18

  7. Check the boundary case a = 9, b = 0. That gives X = 90 and Y = 09 = 9. Y is then a one-digit number, which the question does not allow. So 90 is excluded.

  8. Check one pair: 18 + 81 = 99. Correct. Every pair in step 6 gives 99 the same way, since a + b = 9 each time.
  9. Each value of X counts separately. 18 and 81 are two different values of X, because the question asks how many values X can take, not how many pairs {X, Y} exist.
  10. Count: 18, 27, 36, 45, 54, 63, 72, 81 gives 8 values.

Answer: 8 possible values of X.

Option-wise explanation

  • a: incorrect — No reasonable reading of the question gives 2. You would get 2 only by stopping after a couple of examples such as 18 and 81 and not listing every digit pair that adds up to 9.
  • b: incorrect — This is the unordered-pair trap. There are 4 pairs {18, 81}, {27, 72}, {36, 63} and {45, 54}, but the question asks for values of X. Each pair gives two values, because X can be either number.
  • c: incorrect — Getting 6 means some valid cases were dropped, usually the end cases 18 and 81 when a and b are wrongly limited to 2–7. Every value of a from 1 to 8 works, which gives 8.
  • d: correct — X + Y = 11(a + b) = 99 gives a + b = 9. With both digits non-zero, a can be any of 1 to 8, so X can be 18, 27, 36, 45, 54, 63, 72 or 81. That is 8 values. 90 is excluded because 09 is not a two-digit number.

How to eliminate

Use the reversal identity straight away: a number plus its reverse is always 11 × (sum of digits). So 99 means the digit sum is 9. Two-digit numbers with digit sum 9 are 18, 27, 36, 45, 54, 63, 72, 81 and 90, which is nine numbers. Drop 90, because its reverse 09 is not two-digit. That leaves 8. You can also see it from parity. The values of X come in reverse pairs (18 with 81, and so on), and no number with digit sum 9 is its own reverse, because a = b would need 2a = 9. So the count must be even, and it is twice the number of pairs, 2 × 4 = 8. If you picked 4, you counted pairs instead of values. About 30–45 seconds once you know the 11(a + b) identity. Attempt this one first.

Know more

Digit reversal: sum and difference

For a two-digit number X = 10a + b and its reverse Y = 10b + a:

Operation Result Always divisible by
X + Y 11(a + b) 11
X − Y 9(a − b) 9

This turns any "number and its reverse" question into a question about the digits.

Constraints to check every time

  • Tens digit of X: a ≥ 1.
  • If Y must also be two-digit: b ≥ 1. This removes numbers ending in 0, such as 90.
  • "Values of X" counts ordered numbers. "Pairs" counts unordered ones, so you halve the total, unless a = b, where the number is its own reverse.

Counting digit pairs with a + b = S (both 1–9)

  • For S from 2 to 10: S − 1 pairs.
  • For S from 10 to 18: 19 − S pairs.

Worked variant: A two-digit number and its reverse differ by 27. How many such numbers X are there, with X > Y and both two-digit?

  • 9(a − b) = 27, so a − b = 3.
  • b ≥ 1 and a ≤ 9 give b = 1 to 6: X = 41, 52, 63, 74, 85, 96.
  • 30 is excluded because 03 is not two-digit.
  • Answer: 6 numbers.

The same idea works for three digits: (100a + 10b + c) − (100c + 10b + a) = 99(a − c).