%I #11 Apr 12 2024 09:51:26
%S 0,1,10,11,26,100,101,110,260,276,776,1000,1001,1010,1011,1100,1101,
%T 2600,2760,2776,7760,10000,10001,10010,10011,10100,10110,10776,11000,
%U 11001,11010,11076,26000,27600,27760,77600,100000,100001,100010,100011,100100,100101,100110,101000,101001,101100,107760,110000,110001,110010,110100,110760,161761
%N Numbers k such that k and k^2 use only the digits 0, 1, 2, 6 and 7.
%C Generated with DrScheme.
%H Jonathan Wellons, <a href="/A136828/b136828.txt">Table of n, a(n) for n = 1..1095</a>
%H J. Wellons, <a href="https://web.archive.org/web/20090206165028/http://jonathanwellons.com/shared-digits/">Tables of Shared Digits</a> [archived]
%e 1662107161761^2 = 2762600217177207020621121.
%t Module[{c={0,1,2,6,7},nn=6},Select[FromDigits/@Tuples[c,nn],SubsetQ[ c,IntegerDigits[ #^2]]&]] (* _Harvey P. Dale_, Jun 21 2022 *)
%K base,nonn,changed
%O 1,3
%A Jonathan Wellons (wellons(AT)gmail.com), Jan 22 2008
|