Problem

Source: Cono Sur Olympiad 2017, problem 1

Tags: number theory, cono sur



A positive integer $n$ is called guayaquilean if the sum of the digits of $n$ is equal to the sum of the digits of $n^2$. Find all the possible values that the sum of the digits of a guayaquilean number can take.