Problem

Source: Nordic, NMC

Tags: Nordic, algebra



Let $T(a)$ be the sum of digits of $a$. For which positive integers $R$ does there exist a positive integer $n$ such that $\frac{T(n^2)}{T(n)}=R$?