A three-digit number has a first digit different from its last digit. Writing its digits in reverse order gives a second number, and subtracting the second from the first gives .
Find the largest number with this property.
Write both numbers in expanded form. With digits , , (and ):
Subtract and watch the tens digit vanish.
The middle digit cancels completely, which is the whole point of the problem: it is entirely free.
Solve for the digit gap.
So the first digit is exactly more than the last.
Maximise digit by digit, from the left. Place value means the hundreds digit dominates, so take the largest that keeps a valid digit: , giving . Then maximise the tens digit. The problem only requires the first and last digits to differ — it says nothing about the middle one — so may be :
Check, and see why 985 is not the answer.
A common slip is to assume all three digits must be distinct, which would rule out and give the smaller (also valid: ). But is larger and satisfies every stated condition, so it is the true maximum.
Need to solve a different problem like this? Open the solver →