A317579 Integers n such that the digit set of n^2 is {0,1,4,9}.
138, 648, 701, 951, 1007, 1070, 1380, 1393, 3153, 3451, 3743, 3747, 4462, 6357, 6480, 7001, 7010, 7071, 9510, 9701, 10007, 10070, 10097, 10243, 10538, 10700, 13800, 13930, 20247, 20347, 22138, 31530, 34510, 37430, 37470, 37538, 38071, 38602, 44620, 63357, 63403, 63570, 64800
Offset: 1
Examples
138 = 19044 which has only the decimal digits 0, 1, 4 & 9. Therefore it is in the sequence.
Programs
-
Mathematica
fQ[n_] := Union[IntegerDigits[n^2]] == {0, 1, 4, 9}; Select[ Range@ 65000, fQ]
-
PARI
isok(n) = Set(digits(n^2)) == [0, 1, 4, 9]; \\ Michel Marcus, Aug 01 2018
Comments