OFFSET
1,2
COMMENTS
All entries lack the digit 9, because this digit is absent in the representations in bases 2 to 9.
The sequence is finite because for every n > 10^22 the representation of n in a base b < 10 has more digits than the representation of n in base 10. a(20) is the last term. - Giovanni Resta, Aug 13 2019
EXAMPLE
13 is 31 in base 4. 23 is 32 in base 7. 46 is 64 in base 7.
801 is not a term since it is 1080 in base 9, so with an extra 0.
PROG
(PARI) isok(n) = {my(d = digits(n)); for (b=2, 9, my(rd = Vecrev(digits(n, b))); if ((#rd == #d) && fromdigits(rd) == n, return (b)); ); } \\ Michel Marcus, Aug 05 2019
CROSSREFS
KEYWORD
nonn,base,fini,full
AUTHOR
Claudio Meller, Jul 06 2009
EXTENSIONS
Keyword:base, single-digit numbers and 313725 added by R. J. Mathar, Jul 17 2009
a(16)-a(17) from Michel Marcus, Aug 05 2019
a(18)-a(19) from Giovanni Resta, Aug 06 2019
a(20) from Giovanni Resta, Aug 13 2019
STATUS
approved