Video 3, chapter 1

The 1089 Trick

How the 1089 trick sends every three-digit number with different first and last digits to 1089, explained by place value, digit reversal and the nine three-digit multiples of 99.

  • Video 3, chapter 1
  • Numbers with a hidden mechanism

Choose a three-digit number whose first and last digits are different, such as 731731, reverse its digits to get 137137, and subtract the smaller number from the larger to get 594594. Reverse that answer to 495495 and add, and the total is 10891089, 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 100100 to 999999, whose first digit and last digit are different. Write its digits in reverse order, keeping three digit places, so that a last digit 00 becomes a leading zero, as when 910910 reverses to 019019. 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 099099. Reverse the three digits of the difference and add the result to the difference. The final sum is always 10891089. The reason is that the difference equals 9999 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 10891089. Both conditions matter. When the first and last digits are equal, the number equals its reverse, the difference is 00 and the final sum is 00. When a difference such as 099099 loses its leading zero and is reversed as 9999, the final sum is 99+99=19899 + 99 = 198.

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 11 to 99, which leaves nine possible differences, and each of them finishes at the same total.

Example Start with 368368. Its reverse 863863 is the larger number, so the subtraction is 863−368863 - 368, and then the difference is added to its reverse,

863−368=495,495+594=1089.\begin{aligned} 863 - 368 &= 495, \\[0.4em] 495 + 594 &= 1089. \end{aligned}

The outside digits 33 and 88 differ by 55, and 99⋅5=49599 \cdot 5 = 495, so the difference could have been predicted before subtracting. Of the 900900 three-digit numbers, 810810 have different first and last digits, and every one of them ends at 10891089. The other 9090, such as 525525, equal their own reverses and end at 00.

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 aa, bb and cc, each a whole number from 00 to 99, written in that order, stand for

100a+10b+c.100a + 10b + c.

This is a three-digit number in the usual sense when aa is not 00. A zero adds nothing to the value, but it still holds its place, so 099099 is the number 9999 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 100100.

Example The number 368368 is 300+60+8300 + 60 + 8, and its reverse 863863 is 800+60+3800 + 60 + 3. The 66 contributes 6060 to both, so it drops out of the difference. The hundreds places differ by 800−300=500800 - 300 = 500 and the units places by 3−8=−53 - 8 = -5, so

863−368=500−5=495.\begin{aligned} 863 - 368 &= 500 - 5 \\[0.4em] &= 495. \end{aligned}

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 099099 reverses to 990990, and 910910 reverses to 019019, which is 1919. The number of places has to be fixed first, because 9999 written with two places reverses to 9999, while 099099 reverses to 990990. With three places, reversal sends 100a+10b+c100a + 10b + c to 100c+10b+a100c + 10b + a and leaves the middle digit in the tens place, so a number minus its reverse is

(100a+10b+c)−(100c+10b+a)=99(a−c).\begin{aligned} &(100a + 10b + c) \\[0.4em] &\quad - (100c + 10b + a) \\[0.4em] &\quad = 99(a - c). \end{aligned}

This is a multiple of 9999 that does not depend on the middle digit bb. 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 9999.

Example The numbers 501501, 581581 and 591591 have the same outside digits and different middle digits. Subtracting their reverses gives the same difference every time,

501−105=396,581−185=396,591−195=396,\begin{aligned} 501 - 105 &= 396, \\[0.4em] 581 - 185 &= 396, \\[0.4em] 591 - 195 &= 396, \end{aligned}

and 396=99⋅4396 = 99 \cdot 4, where 4=5−14 = 5 - 1 is the gap between the outside digits. All three runs of the trick then end with 396+693=1089396 + 693 = 1089.

Multiples of 99

Definition A multiple of 9999 is a number 99k99k for a whole number kk. In the 1089 trick the difference is 99d99d, where dd is the gap between the first and last digits, a whole number from 11 to 99. So the difference is one of the nine multiples

099, 198, 297,396, 495, 594,693, 792, 891.\begin{gathered} 099, \ 198, \ 297, \\[0.4em] 396, \ 495, \ 594, \\[0.4em] 693, \ 792, \ 891. \end{gathered}

Written with three places, the number 99d99d has the digits d−1d - 1, 99 and 10−d10 - d, because 99d=100(d−1)+90+(10−d)99d = 100(d - 1) + 90 + (10 - d). Its reverse is 100(10−d)+90+(d−1)100(10 - d) + 90 + (d - 1), which equals 99(11−d)99(11 - d), so the final sum of the trick is

99d+99(11−d)=99⋅11=1089.\begin{aligned} &99d + 99(11 - d) \\[0.4em] &\quad = 99 \cdot 11 = 1089. \end{aligned}

In plain words Every possible difference has a 99 in the middle and outside digits that add to 99. Its reverse is another multiple of 9999, and the two multipliers always add to 1111.

Example A gap of d=3d = 3 gives the difference 297297. Its reverse is 792=99⋅8792 = 99 \cdot 8, and 3+8=113 + 8 = 11. Column by column, the units give 7+2=97 + 2 = 9, the tens give 9+9=189 + 9 = 18, so 88 is written and 11 is carried, and the hundreds give 2+7+1=102 + 7 + 1 = 10. That makes 1010 hundreds, 88 tens and 99 units, which is 10891089. 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 99, the tens column adds 9+9=189 + 9 = 18, and its carry makes the hundreds total 1010.

Check yourself

  1. Predict the difference for the starting number 903903 from its outside digits, then finish the trick.
Show the answer

The outside digits are 99 and 33, with gap 66, so the difference should be 99⋅6=59499 \cdot 6 = 594. Indeed 903−309=594903 - 309 = 594. Reversing gives 495495, and

594+495=1089.594 + 495 = 1089.
  1. Two people try the trick. One starts from 545545 and ends at 00. The other starts from 554554, gets the difference 9999, reverses it to 9999 and ends at 198198. Which rule did each of them miss, and what should the second person get?
Show the answer

The number 545545 has equal first and last digits, so it is not an allowed start. It equals its own reverse, the difference is 00, and no later step can turn 00 into 10891089.

The number 554554 is allowed, since its outside digits 55 and 44 are different. The difference is 554−455=99554 - 455 = 99, which must be written with three places as 099099. Its three-place reverse is 990990, and

099+990=1089.099 + 990 = 1089.

Reversing 9999 as a two-digit number changed the rule of the trick, and that is why the sum came out as 198198.

  1. 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 51325132 and 43214321. Is the final sum always the same?
Show the answer

No. The reverse of 51325132 is 23152315, and the reverse of 43214321 is 12341234. For 51325132

5132−2315=2817,2817+7182=9999,\begin{aligned} 5132 - 2315 &= 2817, \\[0.4em] 2817 + 7182 &= 9999, \end{aligned}

while for 43214321

4321−1234=3087,3087+7803=10890.\begin{aligned} 4321 - 1234 &= 3087, \\[0.4em] 3087 + 7803 &= 10890. \end{aligned}

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 pp, qq, rr and ss, the difference is

999(p−s)+90(q−r),999(p - s) + 90(q - r),

which depends on the inner gap q−rq - r as well as on the outer gap p−sp - s. Checking all 81008100 four-digit numbers with different first and last digits shows exactly three final sums. The sum is 1089010890 when qq is larger than rr, it is 99999999 when qq is smaller than rr, and it is 1098910989 when q=rq = r, as for 10001000, whose difference is 09990999.