The digits of a four-digit number that is divisible by are written in reverse order, and the result is again a four-digit number. Subtracting the reversed number from the original gives . Find one number with this property.
Write both numbers in expanded place-value form. Let the digits be , so the original number is
and the reversed number is
Turning the digit statement into arithmetic is the entire trick; everything after this is routine.
Force the last digit using both conditions. Divisibility by leaves . But the reversed number must also be a four-digit number, so its leading digit cannot be . Hence
This is the step that decides the problem: with the reversal would collapse to at most three digits.
Subtract and simplify.
Setting this equal to and moving the constant across:
Search over the single digit , allowing to be negative. The term can range from to , so must land within of : only qualifies (, and is short, which is not a multiple of ). With :
Note that is negative here. Testing only nonnegative differences is the trap that makes this problem look unsolvable.
List the numbers and pick one. Digits with are , giving
Any of them answers the question; the smallest is
Verify. ends in , so it is divisible by . Reversing gives the four-digit number , and
as required. The same method with a right-hand side of gives , i.e. and , whose smallest solution is .
Need to solve a different problem like this? Open the solver →