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

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

%S 0,5,50,55,235,500,505,550,2350,5000,5005,5050,5055,5500,5505,23500,

%T 50000,50005,50050,50055,50235,50500,50550,55000,55005,55050,235000,

%U 235235,500000,500005,500050,500055,500235,500500,500505,500550,502350,505000,505005,505500,505505,550000,550005,550050,550500,2350000,2350005,2352350,5000000

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

%C Generated with DrScheme.

%H Jonathan Wellons, <a href="/A136887/b136887.txt">Table of n, a(n) for n = 1..1292</a>

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

%e 5005020505005^2 = 25050230255520505230050025.

%t With[{c={0,2,3,5}},Select[FromDigits/@Tuples[c,7],SubsetQ[c, IntegerDigits[ #^2]]&]] (* _Harvey P. Dale_, Dec 18 2018 *)

%K base,nonn

%O 1,2

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