OFFSET
0,3
COMMENTS
The digit 8 has two loops, the digits 0, 6 and 9 have one loop, and other digits (including 4) have no hole.
Least square k such that A064532(k) = n.
EXAMPLE
a(3) = 289 because 8 has two loops and 9 has one loop for a total of 3, and 289 is the smallest such square.
PROG
(PARI) a(n) = { for (k=0, oo, my (d=digits(k^2)); if (n==(k==0)+sum(i=1, #d, [1, 0, 0, 0, 0, 0, 1, 0, 2, 1][1+d[i]]), return (k^2))) } \\ Rémy Sigrist, Dec 22 2022
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Bernard Schott, Dec 22 2022
EXTENSIONS
More terms from Rémy Sigrist, Dec 22 2022
STATUS
approved