|
|
A037416
|
|
Positive numbers having the same set of digits in base 3 and base 4.
|
|
1
|
|
|
1, 2, 22, 25, 33, 41, 66, 73, 81, 84, 88, 96, 97, 98, 100, 104, 129, 132, 137, 144, 145, 146, 149, 162, 168, 256, 258, 262, 264, 265, 266, 273, 278, 281, 288, 289, 290, 292, 293, 294, 296, 297, 298, 322, 324, 325, 326, 329, 330, 336, 337, 338, 344, 353, 356
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
MAPLE
|
q:= n-> (f-> is(f(3)=f(4)))(k-> {convert(n, base, k)[]}):
|
|
MATHEMATICA
|
Select[Range[400], Union[IntegerDigits[#, 3]]==Union[IntegerDigits[#, 4]]&] (* Harvey P. Dale, Sep 15 2023 *)
|
|
PROG
|
(PARI) isok(n) = Set(digits(n, 3)) == Set(digits(n, 4)); \\ Michel Marcus, Jan 22 2017
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|