Free Mathematics Class 8 ICSE notes · practise this chapter with an AI quiz

← All study notes

Subtract Any Three-Digit Number From Its Reverse and 99 Divides It

Learn to write a two-digit or three-digit number in generalised form, prove the reversal and cyclic results that follow from it, and solve cryptarithm puzzles where letters stand for digits.

Why does reversing a three-digit number and subtracting always give a multiple of 99?

Because the middle digit cancels out and what is left is 9999 times something.

Take 742742 and its reverse 247247:

742−247=495=99×5742 - 247 = 495 = 99 \times 5

The 55 is no accident — it is the difference between the first and last digits, 7−27 - 2. Try any other three-digit number and the same thing happens, because the tens digit contributes 10b10b to both numbers and vanishes in the subtraction.

One line of algebra proves it for every case at once, which is what the generalised form of a number is for. This page covers the first part of the ICSE Class 8 Mathematics chapter on playing with numbers.

How do you write a number in generalised form?

Replace each digit by a letter and multiply it by its place value.

A two-digit number with tens digit aa and units digit bb is written ab‾\overline{ab}, and

ab‾=10a+b\overline{ab} = 10a + b

Its reverse is

ba‾=10b+a\overline{ba} = 10b + a

A three-digit number with digits aa, bb, cc from the left:

abc‾=100a+10b+c\overline{abc} = 100a + 10b + c

and its reverse is

cba‾=100c+10b+a\overline{cba} = 100c + 10b + a

Checking the notation on a real number. For 742742 we have a=7a = 7, b=4b = 4, c=2c = 2, so

100(7)+10(4)+2=700+40+2=742100(7) + 10(4) + 2 = 700 + 40 + 2 = 742

Correct.

Why the bar matters. ab‾\overline{ab} means the two-digit number whose digits are aa and bb; abab without the bar means aa multiplied by bb. These are completely different things — for a=7a = 7 and b=4b = 4, ab‾=74\overline{ab} = 74 while ab=28ab = 28 — and mixing them up makes every subsequent line meaningless.

The constraints on the letters. Each letter stands for a single digit, so 0≤a,b,c≤90 \leq a, b, c \leq 9. And the leading digit cannot be 00, since a three-digit number cannot begin with zero — it would simply be a two-digit number instead. Those two conditions are what make the puzzles in the last section solvable.

What generalised form buys you. Testing 742742 tells you about 742742. Working with 100a+10b+c100a + 10b + c tells you about every three-digit number in one go — so a single line of algebra replaces nine hundred separate checks. That is the whole reason this notation is introduced.

What number results can you prove with generalised form?

Several, and each is proved by expanding, then factorising until a divisor appears.

Result 1 — two digits, reverse and subtract.

(10a+b)−(10b+a)=9a−9b=9(a−b)(10a + b) - (10b + a) = 9a - 9b = 9(a - b)

So the difference is always divisible by 99. Checking with 7272 and 2727: 72−27=45=9×572 - 27 = 45 = 9 \times 5, and a−b=5a - b = 5. Correct.

Result 2 — two digits, reverse and add.

(10a+b)+(10b+a)=11a+11b=11(a+b)(10a + b) + (10b + a) = 11a + 11b = 11(a + b)

Always divisible by 1111. Checking: 72+27=99=11×972 + 27 = 99 = 11 \times 9, and a+b=9a + b = 9. Correct.

Result 3 — three digits, reverse and subtract.

(100a+10b+c)−(100c+10b+a)=99a−99c=99(a−c)(100a + 10b + c) - (100c + 10b + a) = 99a - 99c = 99(a - c)

Always divisible by 9999, and therefore by 99 and by 1111 as well.

Checking with 742742 and 247247: 742−247=495742 - 247 = 495, and 99(7−2)=99×5=49599(7 - 2) = 99 \times 5 = 495. Correct.

Notice what the algebra reveals: the middle digit bb plays no part whatever. Every three-digit number beginning with 77 and ending with 22 gives the same difference of 495495, whatever its tens digit — which is a stronger statement than the original claim and could not be guessed from one example.

Result 4 — the three cyclic rearrangements. Take a three-digit number and form the two numbers got by moving each digit one place round:

abc‾+bca‾+cab‾\overline{abc} + \overline{bca} + \overline{cab}

Expanding all three:

(100a+10b+c)+(100b+10c+a)+(100c+10a+b)(100a + 10b + c) + (100b + 10c + a) + (100c + 10a + b)

Collecting the terms for each letter gives 111a+111b+111c111a + 111b + 111c, so

abc‾+bca‾+cab‾=111(a+b+c)\overline{abc} + \overline{bca} + \overline{cab} = 111(a + b + c)

And since 111=3×37111 = 3 \times 37, the sum is always divisible by 33, by 3737 and by 111111.

Checking with 742742, 427427 and 274274:

742+427+274=1443742 + 427 + 274 = 1443

and 111×(7+4+2)=111×13=1443111 \times (7 + 4 + 2) = 111 \times 13 = 1443. Correct. Dividing by 3737 gives 3939, confirming that divisor too.

A boundary case — where there is no neat rule. Adding a three-digit number to its reverse gives

(100a+10b+c)+(100c+10b+a)=101(a+c)+20b(100a + 10b + c) + (100c + 10b + a) = 101(a + c) + 20b

which does not factorise into a single divisor, because the bb term survives. So the three-digit add case has no rule matching the two-digit one — and knowing when a pattern fails is as much a result as knowing when it holds.

How do you solve a cryptarithm puzzle?

A cryptarithm is an arithmetic problem in which letters stand for digits. Solving one means finding which digit each letter is.

The rules of the game:

- Each letter stands for one digit from 00 to 99.
- Different letters stand for different digits, and the same letter always means the same digit.
- The leading digit of a number cannot be 00.
- Work from the units column leftwards, carrying as usual.

Worked example 1 — an addition. Find AA and BB:

3 A

+ 2 5

-------

B 2

- Units column: A+5A + 5 must end in 22. Since AA is a single digit, A+5=12A + 5 = 12, giving A=7A = 7 with a carry of 11.
-
Tens column
: 3+2+1=63 + 2 + 1 = 6, so B=6B = 6.

Checking: 37+25=6237 + 25 = 62. Correct.

Worked example 2 — a multiplication. Find AA, BB and CC:

A B

× 3

-------

C A B

Use generalised form. The two-digit number is 10A+B10A + B, and the three-digit answer is 100C+10A+B100C + 10A + B:

3(10A+B)=100C+10A+B3(10A + B) = 100C + 10A + B

30A+3B=100C+10A+B30A + 3B = 100C + 10A + B

20A+2B=100C  ⇒  10A+B=50C20A + 2B = 100C \;\Rightarrow\; 10A + B = 50C

So the two-digit number AB‾\overline{AB} equals 50C50C. Since it must have two digits, CC can only be 11, giving AB‾=50\overline{AB} = 50.

So A=5A = 5, B=0B = 0, C=1C = 1. Checking: 50×3=15050 \times 3 = 150. Correct.

Worked example 3 — a single letter. Find AA:

1 A

× A

-------

9 A

In generalised form:

A(10+A)=90+AA(10 + A) = 90 + A

10A+A2=90+A  ⇒  A2+9A−90=010A + A^2 = 90 + A \;\Rightarrow\; A^2 + 9A - 90 = 0

(A+15)(A−6)=0(A + 15)(A - 6) = 0

Since AA is a digit it cannot be −15-15, so A=6A = 6. Checking: 16×6=9616 \times 6 = 96. Correct.

Worked example 4 — a puzzle with many answers. Find AA and BB:

A B

+ B A

-------

1 3 2

By Result 2 of the previous section, AB‾+BA‾=11(A+B)\overline{AB} + \overline{BA} = 11(A + B), so

11(A+B)=132  ⇒  A+B=1211(A + B) = 132 \;\Rightarrow\; A + B = 12

That is all the puzzle tells you. Any pair of digits adding to 1212 works: 48+84=13248 + 84 = 132, and 57+75=13257 + 75 = 132, and 39+93=13239 + 93 = 132.

So a cryptarithm need not have a unique answer. When a puzzle reduces to a single equation in two unknowns, the honest answer is to state the condition and give examples — and claiming one particular pair as the answer would be wrong.

The strategy that cracks most of these. Start wherever the information is tightest — usually the units column, or a column with a known digit. Then use the fact that a carry can only be 00 or 11 in an addition, which is often enough to pin a letter down completely.
Exam tip

Exam tip: expand first, then factorise to find the divisor

Every proof in this chapter follows the same three steps: write the numbers in generalised form, expand and collect, then factorise until a divisor appears. Show all three lines — the factorised form is where the mark is.

Name the divisor explicitly. *The difference is 99(a−c)99(a - c), which is divisible by 9999* is a complete answer; stopping at 99a−99c99a - 99c is not.

Use the bar notation carefully: ab‾\overline{ab} is the two-digit number 10a+b10a + b, while abab means aa times bb.

Remember the constraints — each letter is a single digit, and a leading digit cannot be 00. These are what make a puzzle solvable, and they are worth stating.

In a cryptarithm, start from the
units column and remember a carry in an addition is only ever 00 or 11.

For a multiplication cryptarithm, converting to
generalised form and solving the equation is usually quicker and safer than trial.

If a puzzle leaves you with
one equation in two unknowns, say so and give the condition plus an example. Inventing a unique answer where none exists is a genuine error.

And always
check
the finished puzzle by doing the arithmetic with the digits substituted. It takes one line.
Did you know

Why does the middle digit never matter in the reversal trick?

Ask someone to pick any three-digit number, reverse it, and subtract the smaller from the larger. If you know only the first and last digits of their number, you can name the answer exactly — and you never need to ask what the middle digit was.

The algebra says why. The tens digit contributes 10b10b to the number and 10b10b to its reverse, and in the subtraction those two terms are identical and cancel completely. Only 100a+c100a + c and 100c+a100c + a survive, and their difference is 99(a−c)99(a - c).

So every number starting with 77 and ending with 22 — 702702, 712712, 722722, all the way to 792792 — gives the same difference of 495495.

What makes this worth noticing is that no amount of testing examples would have told you. Trying 742742 and getting 495495 suggests a rule about 742742; trying 752752 and getting 495495 again looks like a coincidence. Only the algebra shows that the middle digit was never involved — which is the difference between spotting a pattern and understanding one.
Key takeaways

Generalised form and cryptarithms: quick revision

- Generalised form: ab‾=10a+b\overline{ab} = 10a + b and ba‾=10b+a\overline{ba} = 10b + a; abc‾=100a+10b+c\overline{abc} = 100a + 10b + c and cba‾=100c+10b+a\overline{cba} = 100c + 10b + a.
- ab‾\overline{ab} is a number; abab is a product. Each letter is a single digit and a leading digit is never 00.
-
Two digits, subtract the reverse
: (10a+b)−(10b+a)=9(a−b)(10a+b) - (10b+a) = 9(a-b), divisible by 99. Check: 72−27=45=9×572 - 27 = 45 = 9 \times 5.
- Two digits, add the reverse: 11(a+b)11(a+b), divisible by 1111. Check: 72+27=99=11×972 + 27 = 99 = 11 \times 9.
- Three digits, subtract the reverse: 99(a−c)99(a-c), divisible by 9999, and so by 99 and 1111. Check: 742−247=495=99×5742 - 247 = 495 = 99 \times 5. The middle digit cancels and plays no part.
- Three cyclic rearrangements: abc‾+bca‾+cab‾=111(a+b+c)\overline{abc} + \overline{bca} + \overline{cab} = 111(a+b+c), divisible by 33, 3737 and 111111. Check: 742+427+274=1443=111×13742 + 427 + 274 = 1443 = 111 \times 13.
- No rule for three digits added to the reverse: it gives 101(a+c)+20b101(a+c) + 20b, which does not factorise.
- Cryptarithms: each letter is one digit, different letters differ, no leading zero; work from the units column and remember an addition carry is 00 or 11.
- 3A+25=B23A + 25 = B2 gives A=7A = 7, B=6B = 6 — that is 37+25=6237 + 25 = 62.
- AB‾×3=CAB‾\overline{AB} \times 3 = \overline{CAB} reduces to 10A+B=50C10A + B = 50C, so AB‾=50\overline{AB} = 50 with A=5A=5, B=0B=0, C=1C=1 — that is 50×3=15050 \times 3 = 150.
- 1A‾×A=9A‾\overline{1A} \times A = \overline{9A} gives A2+9A−90=0A^2 + 9A - 90 = 0, so A=6A = 6 — that is 16×6=9616 \times 6 = 96.
- AB‾+BA‾=132\overline{AB} + \overline{BA} = 132 reduces to A+B=12A + B = 12, which has many solutions — 48+8448 + 84, 57+7557 + 75, 39+9339 + 93. A cryptarithm need not be unique.

Try proving one of these results yourself from scratch and then testing it on three different numbers — the algebra tells you why, and the tests tell you that you expanded it correctly.

Ready to put this into practice?

Create a personalized quiz on this exact topic — free to start.

Create your own quiz on Playing with Numbers — Part 1Create a free account
← Back to all articles