login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A136911
Numbers k such that k and k^2 use only the digits 0, 2, 5 and 6.
1
0, 5, 25, 50, 225, 250, 255, 500, 505, 2250, 2500, 2550, 5000, 5005, 5025, 5050, 22500, 25000, 25005, 25025, 25500, 25505, 50000, 50005, 50025, 50050, 50225, 50250, 50255, 50500, 225000, 250000, 250005, 250050, 250250, 255000, 255050, 256255, 500000, 500005, 500025, 500050, 500225, 500250, 500255, 500500, 500505, 502250, 502500, 502550
OFFSET
1,2
COMMENTS
Generated with DrScheme.
LINKS
J. Wellons, Tables of Shared Digits [archived]
EXAMPLE
5005050005005^2 = 25050525552600550525050025.
MATHEMATICA
odQ[n_]:=Module[{idn2=IntegerDigits[n^2]}, And@@Table[MemberQ[{0, 2, 5, 6}, idn2[[i]]], {i, Length[idn2]}]]; Union[Flatten[Table[Select[FromDigits/@ Tuples[{0, 2, 5, 6}, d], odQ], {d, 6}]]] (* Harvey P. Dale, Jul 17 2012 *)
CROSSREFS
Sequence in context: A290700 A136914 A136913 * A101654 A043106 A147184
KEYWORD
base,nonn
AUTHOR
Jonathan Wellons (wellons(AT)gmail.com), Jan 22 2008
STATUS
approved