1089 is the integer after 1088 and before 1090. It is a square number (33 squared), a nonagonal number, a 32-gonal number, a 364-gonal number, and a centered octagonal number. 1089 is the first reverse-divisible number. The next is 2178 , and they are the only four-digit numbers that divide their reverse. In magic 1089 is widely used in magic tricks because it can be "produced" from any two three-digit numbers. This allows it to be used as the basis for a Magician's Choice. For instance, one variation of the book test starts by having the spectator choose any two suitable numbers and then apply some basic maths to produce a single four-digit number. That number is always 1089. The spectator is then asked to turn to page 108 of a book and read the 9th word, which the magician has memorized. To the audience it looks like the number is random, but through manipulation, the result is always the same. In base 10, the following steps always yield 1089: Take any three-digit number where the first and last digits differ by more than 1. Reverse the digits, and subtract the smaller from the larger one. Add to this result the number produced by reversing its digits. For example, if the spectator chooses 237 (or 732): 732 − 237 = 495 495 + 594 = 1089 as expected. On the other hand, if the spectator chooses 102 (or 201): 201 − 102 = 99 99 + 99 ≠ 1089 contradicting the rule. However, if we amend the third rule by reading 99 as a three-digit number 099 and take its reverse, we obtain: 201 − 102 = 099 099 + 990 = 1089 as expected. Explanation The spectator's 3-digit number can be written as 100 × A + 10 × B + 1 × C, and its reversal as 100 × C + 10 × B + 1 × A, where 1 ≤ A ≤ 9, 0 ≤ B ≤ 9 and 1 ≤ C ≤ 9. Their difference is 99 × (A − C) (For convenience, we assume A > C; if A < C, we first swap A and C.). Note that if A − C is 0, the difference is 0, and we do not get a 3-digit number for the next step. If A − C is 1, the difference is 99. Using a leading 0