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

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

%S 0,2,5,20,45,50,55,200,205,235,450,452,500,502,505,550,2000,2005,2050,

%T 2055,2245,2335,2350,4500,4520,5000,5002,5005,5020,5045,5050,5055,

%U 5500,5505,20000,20005,20050,20055,20500,20502,20505,20550,22450,23245,23335,23350,23500,23502,45000,45005,45200,45305,50000,50002,50005,50020,50045,50050,50055

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

%C Generated with DrScheme.

%H Jonathan Wellons, <a href="/A136882/b136882.txt">Table of n, a(n) for n = 1..1406</a>

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

%e 5043245235^2 = 25434322500350205225.

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

%K base,nonn

%O 1,2

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