Define as a function which reverses the given integer. For example, and .
Now, some natural numbers have a property that always consists of odd digits. For example, and .
We call such numbers Reversible Numbers . Thus, are Reversible Numbers.
Calculate the total number of Reversible numbers less than .
Details and Assumptions :
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
For n = 2 k , there are 2 0 × 3 0 k − 1 n-digit Reversible numbers
For n = 4 k + 1 , there are no n-digit Reversible numbers
For n = 4 k + 3 , there are 1 0 0 × 5 0 0 k Reversible numbers
Analysis
There are no 1-digit reversible numbers
In case of a two digit number ab , a + b must be odd and less than 10. There are 2 0 such numbers.
For abc to be a three-digit solution, a + c must be odd and greater than 10, 2 b must be less than 10. Five choices for b, 20 choices for ac, 100 solutions.
For abcd to be a four-digit solution, a + d must be odd and less than 10, neither a nor d can be zero, b + c must be odd and less than 10. Twenty choices for a d , thirty for b c , 600 solutions.
There are no five-digit solutions.
For abcdef to be a six-digit solution, a + f , b + e , c + d must all be odd and less than 10. a and f cannot be zero. 20 choices for a f , 30 for b e , 30 for c d , 18000 solutions.
For abcdefg to be a seven digit solution, a + g odd and greater than 10, b + f even and greater than 10, c + e odd and greater than 10, 2 d less than 10. 5 choices for d , 20 for c e , 25 for b f , 20 for a g , 50000 solutions.
Eight digit numbers will be same as 2 digit, 4 digit and 6 digit.
In general, the result given above, holds good.