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

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

%S 0,1,10,88,100,878,880,1000,1071,4141,8780,8800,8878,10000,10401,

%T 10710,41410,87800,88000,88780,100000,104010,107100,108848,414100,

%U 878000,880000,887800,1000000,1004001,1008701,1040100,1071000,1088480,1187478,4141000,8418441,8478448,8780000,8784878,8800000,8878000,10000000,10007401,10040010

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

%C Generated with DrScheme.

%H Jonathan Wellons, <a href="/A136864/b136864.txt">Table of n, a(n) for n = 1..544</a>

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

%e 878470717087478^2 = 771710800780187811771104400484.

%t Select[Range[0,10050000],Union[DigitCount[#,10,{2,3,5,6,9}]]==Union[ DigitCount[#^2,10,{2,3,5,6,9}]]=={0}&] (* _Harvey P. Dale_, Apr 06 2011 *)

%K base,nonn

%O 1,3

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