A number is said to be special if the sum of the squares of its digits on even places is equal to the sum of the squares of its digits on odd places.
For example,
is a special number, because
.
is a special number, because
.
Let be a function that counts the number of special numbers less than or equal to n, and be a function that finds the sum of special numbers less than or equal to . Find .
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.