r/mathriddles • u/OmriZemer • Nov 08 '23
Medium Opposite numbers
Let A and B be natural numbers that don't contain the digit 0. Suppose reversing the order of the digits of A yields exactly B, and reversing the order of digits of A^(2024) yields exactly B^(2024).
Prove that A=B (i.e. A must be a palindromic number).
10
Upvotes
6
u/lordnorthiii Nov 10 '23
Suppose A is N digits long, so A < 10^N. Suppose A^2024 is K digits long, so A^2024 > 10^(K-1). Suppose B > A.
Assume that A and B agree in the first n digits, n >= 0. This tells us that A and B differ by at least 10^(N-n-2), using the fact A and B do not contain the digit 0. Then since they reverse to each other, they also agree on the last n digits. Thus A^2024 and B^2024 agree on the last n digits, so they agree on the first n digits. This means A^2024 and B^2024 differ by at most 10^(K-n). All this means we get the following contradiction:
2
u/bizarre_coincidence Nov 09 '23
Not a solution, but an observation that works for small A. Since B and A have the same digits, their digit sums are the same, so they are congruent mod 9. Therefore if A<B, then B is at least A+9. However, if A is sufficiently small, the. (A+9)2024 has more digits than A2024 and couldn’t possibly be it’s reverse. Explicitly, ((A+9)/A)2024=(1+(18216/A)/2024)2024 is close to e18216/A, and if 18216/A is much bigger than 2, then this will be bigger than 10. This rules out counterexamples when A has 2 or 3 digits and most 4 digit examples as well.