be a real number and be a real-valued function on such that is:
Letthe next palindrome larger than (if is not a palindrome); or
(if is a palindrome).
For example, , .
Let
Find the value of .
This problem is part of the set 2015 Countdown Problems .
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.
f(1603)=1661. 1661- 58 =1603. So we get back to where we were. Iterating any number of times will get us back to 1603. So B=1603. Now for 999<x<=1001 we have f(x)= 1001. 1001<x<=1111 f(x)= 1111. Continuing in this fashion gives us f(x)= 2(1001) + 110 ( 1111+1221+ .... + 1991) + 11(2002) +13(2112) = 1586970 = A.
So A/B = 990