Qm

The 1089 trick

Choose any three-digit number whose first and last digits differ by at least 2, for example 742. Reverse it (247) and subtract the smaller from the larger (742 minus 247 = 495). Now reverse that result (594) and add the two (495 + 594).

What do you get, and why does everyone get the same answer no matter which number they start with? What goes wrong if the first and last digits differ by less than 2?

Show a hint

Write the number as 100a + 10b + c. The middle digit cancels in the subtraction. Then look carefully at the borrowing.

Your answer

Solving needs a free account

Answers, streaks and solutions unlock when you are signed in. Reading the question and the hint stays free.

Discussion

Sign in to join the discussion · reading is open to everyone

💡 Discussion rules

  1. No full solutions here. Hints and approaches only.
  2. Complexity, edge cases and intuition are the point.
  3. Interview experiences are welcome. Respect your NDAs.

Loading discussion…

Learn the concepts

The theory behind this question.

Related questions

Two-digit numbers that are seven times their digit sumThe number equal to the sum of the cubes of its digitsThe number that rotates when multipliedThe number that equals the sum of the factorials of its digitsKaprekar's constant, 6174Two numbers whose sum equals their product
All questions →