OFFSET
1,2
COMMENTS
Generated with DrScheme.
No additional terms through 10^10. - Harvey P. Dale, Jul 04 2012
LINKS
Jonathan Wellons, Tables of Shared Digits [archived]
EXAMPLE
911^2 = 829921.
MATHEMATICA
okQ[n_]:=Module[{u=Union[IntegerDigits[n^2]]}, And@@Table[MemberQ[ {1, 2, 8, 9}, u[[i]]], {i, Length[u]}]]; Flatten[Table[ Select[FromDigits/@ Tuples[{1, 2, 8, 9}, x], okQ], {x, 10}]] (* Harvey P. Dale, Jul 04 2012 *)
CROSSREFS
KEYWORD
base,nonn,more
AUTHOR
Jonathan Wellons (wellons(AT)gmail.com), Jan 22 2008
STATUS
approved