Consider concatenating the first Fibonacci integers into a continuous integer. For example, for the string would be Let be the smallest palindrome greater than . What are the last three digits of the sum of the digits of .
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.
First of all, I defined a function F which returns the concatenated string.
Now, since we want the smallest palindrome, I replaced the later half of the list by the former half.
Now I compared the
cd
withF(100)
,Thus, the list
cd
is maximum palindrome smaller thanF100
Hence, we'll increase the middle digit by 1 ,
Adding 1 to middle digit would make it
4581