login
A136861
Numbers k such that k and k^2 use only the digits 0, 1, 4, 6 and 8.
1
0, 1, 4, 8, 10, 40, 41, 80, 100, 104, 108, 400, 401, 408, 410, 641, 800, 801, 804, 1000, 1004, 1008, 1040, 1080, 4000, 4001, 4008, 4010, 4080, 4100, 6410, 6441, 8000, 8001, 8004, 8010, 8040, 10000, 10004, 10008, 10040, 10080, 10400, 10401, 10800, 10801, 40000, 40001, 40008, 40010, 40080, 40100, 40604, 40800, 41000, 64100, 64410, 66441, 80000, 80001
OFFSET
1,3
COMMENTS
Generated with DrScheme.
LINKS
J. Wellons, Tables of Shared Digits [archived]
EXAMPLE
68418648641^2 = 4681111481860611146881.
MATHEMATICA
id2Q[n_]:=Module[{idn2=IntegerDigits[n^2], digs={0, 1, 4, 6, 8}}, And@@Table[ MemberQ[digs, idn2[[i]]], {i, Length[idn2]}]]; Select[Union[Flatten[ Table[FromDigits/@Tuples[{0, 1, 4, 6, 8}, n], {n, 5}]]], id2Q] (* Harvey P. Dale, Aug 19 2012 *)
CROSSREFS
Sequence in context: A031073 A323151 A037004 * A109445 A316505 A293597
KEYWORD
base,nonn
AUTHOR
Jonathan Wellons (wellons(AT)gmail.com), Jan 22 2008
STATUS
approved