Problem 1
Determine all three-digit numbers that are divisible by , such that equals the sum of the squares of the digits of .
Step 5 of 6: Case B (with carry): a+b ≥ 10, digits become a+1, a+b−10, b
Detailed analysis
When , adding to causes a carry: the hundreds digit becomes and the tens digit becomes (with unchanged as the units digit). The digit-square condition now reads , which expands to . The same kind of parity argument as before (writing and checking evenness) shows must be odd, and in fact or .