OFFSET
1,2
LINKS
Giovanni Resta, Table of n, a(n) for n = 1..10000
EXAMPLE
703 and 494209 = 703^2 both have one zero digit in their decimal expansion.
MAPLE
f:= n-> numboccur(0, convert(n, base, 10)):
q:= n-> ((x, y)-> x>0 and x=y)(f(n), f(n^2)):
select(q, [$0..1030])[]; # Alois P. Heinz, Oct 28 2019
MATHEMATICA
Select[Range[0, 1100], DigitCount[#, 10, 0] == DigitCount[#^2, 10, 0] > 0 &] (* Giovanni Resta, Feb 27 2020 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Bernard Schott, Oct 28 2019
EXTENSIONS
More terms from Alois P. Heinz, Oct 28 2019
STATUS
approved