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

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

%S 0,1,2,4,10,11,12,20,21,40,46,100,101,102,110,120,121,142,162,200,201,

%T 204,210,400,402,460,642,1000,1001,1002,1010,1011,1012,1020,1021,1100,

%U 1101,1102,1200,1201,1210,1420,1620,2000,2001,2004,2010,2011,2040,2100,2101,2462,4000,4002,4020,4600,6404,6420,6642,10000,10001,10002,10010,10011,10012,10020

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

%C Generated with DrScheme.

%H Jonathan Wellons, <a href="/A136818/b136818.txt">Table of n, a(n) for n = 1..1281</a>

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

%e 641416101^2 = 411414614622042201.

%t Module[{c={0,1,2,4,6}},Select[FromDigits/@Tuples[c,5],SubsetQ[c,IntegerDigits[ #^2]]&]] (* _Harvey P. Dale_, Aug 27 2022 *)

%K base,nonn

%O 1,3

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