What is the sum of the digits of if is the sum of all even Anderson numbers, where an Anderson number is a positive integer less than 10000 with the property that ends with the digit or digits of ?
Solution
The squares of the one-digit positive integers are , respectively.
Of these, the squares end with the digit of their square root.
In other words, are Anderson numbers.
Thus, is the only even one-digit Anderson number.
To find all even two-digit Anderson numbers, we note that any two-digit even Anderson number must have a units (ones) digit of 6. This is because the units digit of and the units digit of must match (by the definition of an Anderson number) and because the units digit of completely determines the units digit of . (We can see this by doing "long multiplication".) So we need to look for two-digit Anderson numbers with digits .
Another way of writing the number is . (This form uses the place values associated with the digits.)
In this case, . Note that and so the units digit of is 6.
For to be an Anderson number, we need the tens digit of to be , in which case the final two digits of will be .
Thus, the tens digit of is equal to the units digit of .
This means that is an Anderson number exactly when the units digit of is equal to the digit .
When we check the nine possible values for , we find that the only possibility is that .
This means that is the only two-digit even Anderson number.
Note that , which ends with the digits 76.
Next, we look for three-digit even Anderson numbers .
Using a similar argument to above, we see that must have digits .
In other words, for some digit .
In this case, .
We note that the tens and units digits of are 76, which means that, for to be an Anderson number, the hundreds digit of must be .
Now .
Thus, is an Anderson number exactly when the units digit of is equal to the digit .
Again, checking the nine possible values for shows us that is the only possibility.
This means that is the only three-digit even Anderson number.
Note that , which ends with the digits 376.
Since Anderson numbers are less than 10000, then we still need to look for four-digit even Anderson numbers.
Again, using a similar argument, we see that must have digits .
In other words, for some digit .
In this case, .
We note that the hundreds, tens and units digits of are 376, which means that, for to be an Anderson number, the thousands digit of must be .
Now .
Thus, is an Anderson number exactly when the units digit of is equal to the digit . Again, checking the nine possible values for shows us that is the only possibility.
This means that is the only four-digit even Anderson number.
Note that , which ends with the digits 9376.
Thus, , the sum of the even Anderson numbers, equals .
The sum of the digits of is .