Place value: writing a number by its digits
The 7 in 72 is not worth seven. It sits in the tens place, so it is worth seventy. That is all place value means: a digit is worth the digit times its place.
72 = 7 × 10 + 2
So a two-digit number with tens digit a and units digit b is 10a + b. It is not ab (that would be a times b) and it is not a + b (that is the sum of the digits). A three-digit number with digits a, b, c is 100a + 10b + c. For example, 345 = 3 × 100 + 4 × 10 + 5.
UPSC asks about digits often: by our count, ten questions in the papers from 2017 to 2026 reverse the digits of a number.
Reverse the digits
Take the number 10a + b. Reverse it and the digits change places: 10b + a.
Add the two. (10a + b) + (10b + a) = 11a + 11b = 11 × (a + b).
Subtract them. (10a + b) − (10b + a) = 9a − 9b = 9 × (a − b).
Check with 72 and 27. The sum is 99, which is 11 × 9, and 9 is 7 + 2. The difference is 45, which is 9 × 5, and 5 is 7 − 2.
So the sum of a number and its reverse is always a multiple of 11, and their difference is always a multiple of 9.
Worked examples
Example 1. The sum of the digits of a two-digit number is 9. The number exceeds the number formed by reversing its digits by 27. Find the number.
Each sentence gives one line. "The sum of the digits is 9": a + b = 9. "Exceeds its reverse by 27": 9 × (a − b) = 27, so a − b = 3. Two digits that add up to 9 and differ by 3 are 6 and 3. The number is bigger than its reverse, so the bigger digit is in the tens place: 63.
Example 2 (UPSC CSAT 2024). 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?
X + Y = 11 × (a + b) = 99, so a + b = 9. The pairs are 1 and 8, 2 and 7, 3 and 6, 4 and 5, each in two orders. That gives 18, 27, 36, 45, 54, 63, 72 and 81: eight values. What about 90? Its reverse is 09, which is just 9, not a two-digit number. So 90 does not count.
Three digits
The number is 100a + 10b + c. Its reverse is 100c + 10b + a. Subtract:
(100a + 10b + c) − (100c + 10b + a) = 99a − 99c = 99 × (a − c).
The middle digit cancels. The difference depends only on the first and last digits, and it is always a multiple of 99.
Example 3 (adapted from UPSC CSAT 2018). A three-digit number has middle digit zero and its digits add up to 4. Interchanging the first and last digits makes it greater by 198. What is the difference between the first and last digits?
99 × (difference of the two digits) = 198, so the difference is 2. That is the answer. You do not need the number at all. (It is 103, and 301 − 103 = 198.)
Largest and smallest numbers from given digits
Suppose the digits are 4, 0, 7 and 2, each used once.
- Largest: the biggest digit goes in the biggest place. Write the digits from big to small: 7420.
- Smallest: write them from small to big, but zero cannot come first. 0247 is only 247, a three-digit number. So put the smallest non-zero digit first, then zero, then the rest from small to big: 2047.
Summary
| What the question says | What you write |
|---|---|
| A two-digit number | 10a + b |
| The number formed by reversing its digits | 10b + a |
| The number plus its reverse | 11 × (a + b) |
| The number minus its reverse | 9 × (a − b) |
| A three-digit number | 100a + 10b + c |
| A three-digit number minus its reverse | 99 × (a − c) |
| Largest number from given digits | digits from big to small |
| Smallest number from given digits | smallest non-zero digit, then zero, then small to big |
Where students slip
- Reading ab as a times b. The number with digits 7 and 2 is 72, not 14. Always write 10a + b.
- Forgetting zero. The first digit of a number is never zero. If the reverse must also be a two-digit number, the last digit cannot be zero either. Questions that ask "how many such numbers" are built around this.
- Which digit is bigger. "The number exceeds its reverse" means the tens digit is bigger. "The number increases when the digits are interchanged" means the units digit is bigger.
- Finding the number when it is not asked. If only the difference of the digits is asked, divide by 9 (or by 99) and stop.
How to practise
Pick any two-digit number and reverse it. Check that the sum is 11 times the digit sum and the gap is 9 times the digit difference. Do this for five numbers.
Then take a gap such as 36 and list every two-digit number that is 36 more than its reverse: the digits differ by 4, so 51, 62, 73, 84, 95. Keep an eye on zero: 40 joins the list only if the reverse may be 04, which is just 4.