OFFSET
0,3
EXAMPLE
a(11)=4 since 11 = 15 (base 6) = 23 (base 4) = 102 (base 3) = 1011 (base 2).
PROG
(PARI) a(n) = {nb = 0; for (b=2, 10, if (n, digs = digits(n, b), digs = [0]); for (i=1, #digs, if (digs[i] == b-1, nb++; break; ); ); ); return (nb); }\\ Michel Marcus, Jul 14 2013
CROSSREFS
KEYWORD
nonn,base
AUTHOR
EXTENSIONS
Additional comments from Larry Reeves (larryr(AT)acm.org), Mar 16 2001
a(0) corrected by Michel Marcus, Jul 14 2013
STATUS
approved