login
A137020
Numbers k such that k and k^2 use only the digits 1, 2, 8 and 9.
0
1, 9, 11, 91, 911
OFFSET
1,2
COMMENTS
Generated with DrScheme.
No additional terms through 10^10. - Harvey P. Dale, Jul 04 2012
LINKS
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
Sequence in context: A289288 A137016 A053886 * A058304 A359457 A365221
KEYWORD
base,nonn,more
AUTHOR
Jonathan Wellons (wellons(AT)gmail.com), Jan 22 2008
STATUS
approved