There are 100 houses in the neighborhood where Alex and Dev live. Alex’s house number is…
- User
There are 100 houses in the neighborhood where Alex and Dev live. Alex’s house number is the reverse of Dev’s house number. The difference between their house numbers ends with 2. What are their house numbers?
- Assistant
To solve this problem, we need to find two house numbers ( N ) and ( R(N) ) between 1 and 100 such that:
- One is the reverse of the other.
- The difference between them ends with the digit 2 (i.e., the last digit of the difference is 2).
First, consider that house numbers between 1 and 100 are either one-digit or two-digit numbers. However, reversing a one-digit number doesn't change it, and the difference between the same numbers is 0, which doesn't end with 2. Therefore, we focus on two-digit numbers.
Let ( N ) be a two-digit number with digits ( a ) (the tens place) and ( b ) (the ones place), so ( N = 10a + b ). Its reverse is ( R(N) = 10b + a ).
The difference between ( N ) and ( R(N) ) is: [ |N - R(N)| = |(10a + b) - (10b + a)| = |9(a - b)|. ] Thus, the difference is always a multiple of 9 times the difference between the digits ( a ) and ( b ).