Problem

Source: Mexico 2023/1

Tags: number theory



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