Choose a three-digit number whose first and last digits are different, such as , reverse its digits to get , and subtract the smaller number from the larger to get . Reverse that answer to and add, and the total is , the same total that every other allowed starting number gives. Why should the starting number make no difference? This page answers with nothing more than the value of each digit place, and explains the two cases in which the trick seems to fail.
Key terms
1089 trick
Definition The 1089 trick is a number trick in base ten. Start with a three-digit number, from to , whose first digit and last digit are different. Write its digits in reverse order, keeping three digit places, so that a last digit becomes a leading zero, as when reverses to . Subtract the smaller of the two numbers from the larger and write the difference with three digit places, again keeping a leading zero, as in . Reverse the three digits of the difference and add the result to the difference. The final sum is always . The reason is that the difference equals times the gap between the first and last digits, so it is one of only nine numbers, and each of those nine adds to its own reverse to make . Both conditions matter. When the first and last digits are equal, the number equals its reverse, the difference is and the final sum is . When a difference such as loses its leading zero and is reversed as , the final sum is .
In plain words Reversing a three-digit number leaves its middle digit in place, so the middle digit cancels in the subtraction and only the gap between the outside digits survives. That gap can only be one of the numbers to , which leaves nine possible differences, and each of them finishes at the same total.
Example Start with . Its reverse is the larger number, so the subtraction is , and then the difference is added to its reverse,
The outside digits and differ by , and , so the difference could have been predicted before subtracting. Of the three-digit numbers, have different first and last digits, and every one of them ends at . The other , such as , equal their own reverses and end at .
Place value
Definition In base ten, the value of a digit depends on its place in the number. The rightmost place counts units, the next counts tens, the next hundreds, and each place is worth ten times the place to its right. Three digits , and , each a whole number from to , written in that order, stand for
This is a three-digit number in the usual sense when is not . A zero adds nothing to the value, but it still holds its place, so is the number written with three places.
In plain words A digit is worth more the further left it stands. Moving a digit from the units place to the hundreds place multiplies its contribution by .
Example The number is , and its reverse is . The contributes to both, so it drops out of the difference. The hundreds places differ by and the units places by , so
Digit reversal
Definition Reversing a number written with a fixed number of digit places means writing the same digits in the opposite order, in the same number of places. Leading zeros count as digits, so with three places reverses to , and reverses to , which is . The number of places has to be fixed first, because written with two places reverses to , while reverses to . With three places, reversal sends to and leaves the middle digit in the tens place, so a number minus its reverse is
This is a multiple of that does not depend on the middle digit . Reversing twice in the same number of places gives back the original digits.
In plain words Reversal swaps the first and last digits and leaves the middle digit alone. Only the swap changes the value, and it always changes it by a multiple of .
Example The numbers , and have the same outside digits and different middle digits. Subtracting their reverses gives the same difference every time,
and , where is the gap between the outside digits. All three runs of the trick then end with .
Multiples of 99
Definition A multiple of is a number for a whole number . In the 1089 trick the difference is , where is the gap between the first and last digits, a whole number from to . So the difference is one of the nine multiples
Written with three places, the number has the digits , and , because . Its reverse is , which equals , so the final sum of the trick is
In plain words Every possible difference has a in the middle and outside digits that add to . Its reverse is another multiple of , and the two multipliers always add to .
Example A gap of gives the difference . Its reverse is , and . Column by column, the units give , the tens give , so is written and is carried, and the hundreds give . That makes hundreds, tens and units, which is . The columns work the same way for every gap. The units column and the hundreds column both add the two outside digits, which sum to , the tens column adds , and its carry makes the hundreds total .
Check yourself
- Predict the difference for the starting number from its outside digits, then finish the trick.
Show the answer
The outside digits are and , with gap , so the difference should be . Indeed . Reversing gives , and
- Two people try the trick. One starts from and ends at . The other starts from , gets the difference , reverses it to and ends at . Which rule did each of them miss, and what should the second person get?
Show the answer
The number has equal first and last digits, so it is not an allowed start. It equals its own reverse, the difference is , and no later step can turn into .
The number is allowed, since its outside digits and are different. The difference is , which must be written with three places as . Its three-place reverse is , and
Reversing as a two-digit number changed the rule of the trick, and that is why the sum came out as .
- Extend the trick to four digits. Start with a four-digit number whose first and last digits are different, reverse it with four places, subtract the smaller number from the larger, reverse the difference with four places and add. Try and . Is the final sum always the same?
Show the answer
No. The reverse of is , and the reverse of is . For
while for
With four places the two middle digits swap places too, so they no longer cancel. If the larger of the two numbers has the digits , , and , the difference is
which depends on the inner gap as well as on the outer gap . Checking all four-digit numbers with different first and last digits shows exactly three final sums. The sum is when is larger than , it is when is smaller than , and it is when , as for , whose difference is .