OFFSET
1,10
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..66430
MATHEMATICA
A043283[n_]:=Max[Map[Length, Split[IntegerDigits[n, 9]]]]; Array[A043283, 100] (* Paolo Xausa, Sep 27 2023 *)
PROG
(PARI) A043283(n, b=9)={my(m, c=1); while(n>0, n%b==(n\=b)%b && c++ && next; m=max(m, c); c=1); m} \\ M. F. Hasler, Jul 23 2013
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved