login
A074233
Numbers whose base-4 and base-5 representations are permutations of the same multiset of digits.
1
0, 1, 2, 3, 28, 137, 210, 692, 717, 933, 3138, 3213, 3416, 3467, 3538, 16068
OFFSET
1,3
COMMENTS
This sequence is finite and full. Proof: the smallest base-5 number with m digits is 5^(m-1). The largest base-4 number with m digits is 4^m - 1. For m >= 8, 5^(m-1) > 4^m - 1. So any term is <= 4^8 which has been checked. - David A. Corneth, Jan 24 2022
EXAMPLE
692 is represented as 22310 in base 4 and as 10232 in base 5. Each representation is a permutation of the multiset {0,1,2,2,3}.
PROG
(PARI) isok(m) = vecsort(digits(m, 4)) == vecsort(digits(m, 5)); \\ Michel Marcus, Jan 24 2022
CROSSREFS
KEYWORD
base,nonn,fini,full
AUTHOR
Paul Lusch, Sep 18 2002
EXTENSIONS
First four terms inserted by David A. Corneth, Jan 24 2022
STATUS
approved