|
|
A037417
|
|
Positive numbers having the same set of digits in base 3 and base 5.
|
|
1
|
|
|
1, 2, 7, 30, 35, 51, 55, 60, 127, 132, 135, 136, 137, 157, 161, 175, 176, 177, 185, 251, 257, 261, 275, 276, 277, 285, 301, 305, 627, 632, 636, 652, 657, 660, 661, 662, 675, 676, 677, 680, 681, 682, 685, 686, 687, 752, 756, 761, 762, 777, 785, 800, 801, 802
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
MAPLE
|
q:= n-> (f-> is(f(3)=f(5)))(k-> {convert(n, base, k)[]}):
|
|
MATHEMATICA
|
Select[Range[1000], Union[IntegerDigits[#, 5]]==Union[IntegerDigits[#, 3]]&] (* Harvey P. Dale, Aug 21 2013 *)
|
|
PROG
|
(PARI) isok(n) = Set(digits(n, 3)) == Set(digits(n, 5)); \\ Michel Marcus, Jan 22 2017
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|