A328781 Nonnegative integers k such that k and k^2 contain the same number of zero digits in their decimal expansion.
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26, 27, 28, 29, 31, 34, 35, 36, 37, 38, 39, 41, 42, 43, 44, 46, 54, 56, 57, 58, 59, 61, 62, 63, 65, 66, 67, 68, 69, 72, 73, 74, 75, 76, 77, 79, 81, 82, 83, 85, 86, 87, 88, 89, 91, 92, 93, 94, 96, 104, 105
Offset: 1
Examples
12 and 144 = 12^2 have no digit zero in their decimal representation, so 12 is a term. 203 and 41209 = 203^2 both have one digit zero in their decimal representation, so 203 is also a term.
Links
- Giovanni Resta, Table of n, a(n) for n = 1..10000
Programs
-
Maple
select(t -> numboccur(0, convert(t^2,base,10))=numboccur(0, convert(t,base,10)), [$0..200]); # Robert Israel, Oct 27 2019
-
Mathematica
Select[Range[0, 105], Equal @@ Total /@ (1 - Sign@ IntegerDigits[{#, #^2}]) &] (* Giovanni Resta, Feb 27 2020 *)
Comments