A136825 Numbers k such that k and k^2 use only the digits 0, 1, 2, 5 and 8.
0, 1, 5, 10, 11, 15, 50, 100, 101, 105, 110, 150, 151, 285, 500, 501, 505, 1000, 1001, 1005, 1010, 1011, 1050, 1100, 1101, 1105, 1500, 1510, 1585, 2255, 2285, 2850, 2851, 2855, 5000, 5001, 5005, 5010, 5011, 5015, 5050, 10000, 10001, 10005, 10010, 10011, 10050, 10100, 10105, 10110, 10500, 11000, 11001, 11005, 11010, 11050, 11205, 12255, 15000, 15005
Offset: 1
Examples
508018515^2 = 258082811582805225.
Links
- Jonathan Wellons, Table of n, a(n) for n = 1..1064
- J. Wellons, Tables of Shared Digits [archived]
Programs
-
Mathematica
With[{c={0,1,2,5,8}},Select[FromDigits/@Tuples[c,5],SubsetQ[ c,IntegerDigits[ #^2]]&]] (* Harvey P. Dale, Oct 02 2021 *)
Comments