A280798 a(n) is the smallest integer m such that sumdigits(m^2) = 4^n.
1, 2, 13, 16667
Offset: 0
Examples
a(1)=2 since 2^2=4 with sum of digits 4.
Links
- Mathematical Reflections, Solution to Problem J307, Issue 5, 2015, p. 1.
Programs
-
PARI
a(n) = my(k=1); while (sumdigits(k^2) != 4^n, k++); k;
Comments