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”).

A257086
Numbers n such that the decimal expansions of both n and n^2 only use the digits 0..5.
3
0, 1, 2, 5, 10, 11, 12, 15, 20, 21, 32, 35, 45, 50, 55, 100, 101, 102, 105, 110, 111, 112, 115, 120, 145, 150, 152, 155, 200, 201, 205, 210, 211, 235, 320, 321, 332, 335, 350, 351, 450, 451, 452, 500, 501, 502, 505, 550, 1000, 1001, 1002, 1005, 1010, 1011, 1012, 1015, 1020, 1021, 1050, 1055, 1100
OFFSET
1,3
LINKS
EXAMPLE
115 is in the list because 115 and 115^2 = 13225 do not use the digits 6, 7, 8, or 9.
121 is not in the list because 121^2 = 14641 uses the digit 6.
149 is not in the list because it uses the digit 9 (even though 149^2 = 22201 would be okay).
MATHEMATICA
Select[Range@ 1100, Total@ Take[DigitCount[#], {6, 9}] == 0 && Total@ Take[DigitCount[#^2], {6, 9}] == 0 &] (* Michael De Vlieger, Apr 17 2015 *)
CROSSREFS
Cf. A178501 (0..1), A136808(0..2), A136809(0..3), A136810 (0..4), A257085 (0..6).
Sequence in context: A123466 A144793 A140707 * A136817 A140180 A175324
KEYWORD
nonn,easy,base
AUTHOR
Danny Rorabaugh, Apr 15 2015
STATUS
approved