MathDB
Sum of digits of $n^2$

Source: Cono Sur Olympiad 2017, problem 1

August 17, 2017
number theorycono sur

Problem Statement

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