login
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
OFFSET
1,2
LINKS
MAPLE
q:= n-> (f-> is(f(3)=f(4)))(k-> {convert(n, base, k)[]}):
select(q, [$1..1000])[]; # Alois P. Heinz, Oct 30 2020
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
Sequence in context: A080433 A022373 A111751 * A057871 A152243 A074160
KEYWORD
nonn,base
EXTENSIONS
More terms from Don Reble, Apr 28 2006
STATUS
approved