OFFSET
1,2
COMMENTS
Generated with DrScheme.
LINKS
Jonathan Wellons, Tables of Shared Digits [archived]
EXAMPLE
2777177421^2 = 7712714427712211241.
MATHEMATICA
Module[{c = {1, 2, 4, 7}}, Select[Flatten[Table[FromDigits /@ Tuples[c, n], {n, 10}]], SubsetQ[c, IntegerDigits[#^2]] &]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Jan 02 2017 *)
CROSSREFS
KEYWORD
base,nonn,more
AUTHOR
Jonathan Wellons (wellons(AT)gmail.com), Jan 22 2008
STATUS
approved