Reverse of a number

From testwiki
Jump to navigation Jump to search
Palindrome numbers and its reverse are the same

The reverse of a number is a mathematical method to obtain from a number another written in the opposite way to the first.

For example, the reverse of 1234 is 4321.

Method

Given a positive integer x, the integer which has the same digits in the reverse order is:[1]

10log10xx99k=1log10x10kx10log10xk

Applications

Obtaining the reverse of a number is useful to predict if a number is Lychrel or not.[2][3]

References