MathDB
2019 Iberoamerican Mathematical Olympiad, P1

Source:

September 15, 2019
number theoryDigits

Problem Statement

For each positive integer nn, let s(n)s(n) be the sum of the squares of the digits of nn. For example, s(15)=12+52=26s(15)=1^2+5^2=26. Determine all integers n1n\geq 1 such that s(n)=ns(n)=n.