OFFSET
1,2
LINKS
Paul Tek, Table of n, a(n) for n = 1..10000
Paul Tek, PARI program for this sequence
EXAMPLE
60 is 2020 in base 3 and 330 in base 4; it uses the largest digits in the two bases (including 0's) and is therefore a term.
Similarly 240 is 22220 in base 3 and 3300 in base 4 so it is also a term.
PROG
(PARI) isokb(n, b) = {if (!n, return (1)); my(d = digits(n, b)); (#vecsort(d, , 8)==2) && (vecmin(d) == 0) && (vecmax(d) == b - 1); }
isok(n) = isokb(n, 3) && isokb(n, 4); \\ Michel Marcus, Sep 22 2015
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Robin Powell, Sep 21 2015
EXTENSIONS
More terms from Alois P. Heinz, Sep 21 2015
STATUS
approved
