MathDB
Sum of squares is twice sum of digits

Source: Mexico 2023/1

November 8, 2023
number theory

Problem Statement

Find all four digit positive integers such that the sum of the squares of the digits equals twice the sum of the digits.