login
Numbers k such that k and k^2 use only the digits 0, 1, 2, 3 and 5.
6

%I #9 Apr 12 2024 09:51:26

%S 0,1,5,10,11,15,35,50,55,100,101,105,110,111,115,150,235,335,350,351,

%T 500,501,505,550,1000,1001,1005,1010,1011,1015,1050,1055,1100,1101,

%U 1105,1110,1150,1235,1500,1501,2305,2350,3211,3335,3350,3500,3510,3515,5000,5001,5005,5010,5011,5015,5035,5050,5055,5500,5505,10000,10001,10005,10010,10011,10015

%N Numbers k such that k and k^2 use only the digits 0, 1, 2, 3 and 5.

%C Generated with DrScheme.

%H Jonathan Wellons, <a href="/A136811/b136811.txt">Table of n, a(n) for n = 1..1227</a>

%H J. Wellons, <a href="https://web.archive.org/web/20090206165028/http://jonathanwellons.com/shared-digits/">Tables of Shared Digits</a> [archived]

%e 50530501^2 = 2553331531311001.

%t With[{c={0,1,2,3,5}},Select[FromDigits/@Tuples[c,5],SubsetQ[c,IntegerDigits[#^2]]&]] (* _Harvey P. Dale_, Jun 25 2023 *)

%K base,nonn

%O 1,3

%A Jonathan Wellons (wellons(AT)gmail.com), Jan 22 2008