MathLabs

Problem 1

Determine all three-digit numbers NN that are divisible by 1111, such that N/11N/11 equals the sum of the squares of the digits of NN.
Step 3 of 6: Case A: parity forces b to be a multiple of 4
b=2B  ⟹  B=a(a−5)+2aB+4B2 is even  ⟹  b∈{0,4,8}b=2B \implies B=a(a-5)+2aB+4B^2 \text{ is even} \implies b\in\{0,4,8\}
Detailed analysis

From 2a2+2ab+2b2=10a+b2a^2+2ab+2b^2=10a+b, the left side is even, so bb is even; write b=2Bb=2B. Substituting and simplifying shows B=a(a−5)+2aB+4B2B=a(a-5)+2aB+4B^2, whose right-hand side is even, so BB itself is even. Hence b=2Bb=2B is a multiple of 44, leaving only b=0,4,8b=0,4,8 to check.