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

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

%S 0,1,10,100,881,1000,8776,8810,10000,10801,87760,88100,88776,100000,

%T 108010,877600,881000,887760,1000000,1008001,1077776,1080100,7866881,

%U 8776000,8810000,8877600,10000000,10080010,10777760,10801000,78668810,81778181,87760000,88100000,88776000,100000000,100080001,100800100,107777600,108010000

%N Numbers k such that k and k^2 use only the digits 0, 1, 6, 7 and 8.

%C Generated with DrScheme.

%H Jonathan Wellons, <a href="/A136876/b136876.txt">Table of n, a(n) for n = 1..260</a>

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

%e 108660810680801^2 = 11807171777808876681110001601.

%t With[{c={0,1,6,7,8}},Select[FromDigits/@Tuples[c,9],SubsetQ[c, IntegerDigits[ #^2]]&]] (* _Harvey P. Dale_, Mar 10 2017 *)

%K base,nonn

%O 1,3

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