OFFSET
1,2
COMMENTS
Generated with DrScheme.
LINKS
Jonathan Wellons, Tables of Shared Digits [archived]
EXAMPLE
5162525125^2 = 26651665666256265625.
MATHEMATICA
okQ[n_]:=With[{idn=IntegerDigits[n^2]}, And@@Table[MemberQ[{1, 2, 5, 6}, idn[[i]]], {i, Length[idn]}]]; Flatten[Table[Select[ FromDigits/@ Tuples[{1, 2, 5, 6}, k], okQ], {k, 10}]] (* Harvey P. Dale, Jul 07 2012 *)
CROSSREFS
KEYWORD
base,nonn,more
AUTHOR
Jonathan Wellons (wellons(AT)gmail.com), Jan 22 2008
STATUS
approved