The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
The OEIS is supported by the many generous donors to the OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A043289 Maximal run length in base-15 representation of n. 8
 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,16 LINKS Antti Karttunen, Table of n, a(n) for n = 1..65537 MAPLE A043289 := proc(n) dgs := convert(n, base, 15) ; a :=1 ; rl :=1 ; for i from 2 to nops(dgs) do if op(i, dgs) <> op(i-1, dgs) then a := max(a, rl) ; rl := 1; else rl := rl+1 ; end if; end do: a := max(a, rl) ; a; end proc; # R. J. Mathar, Jan 11 2012 MATHEMATICA A043289[n_]:=Max[Map[Length, Split[IntegerDigits[n, 15]]]]; Array[A043289, 100] (* Paolo Xausa, Sep 27 2023 *) PROG (PARI) A043289(n, b=15){=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 Cf. A043276-A043290 for base-2 to base-16 analogs. Cf. A135518 (positions of records, also the first occurrence of each n). Sequence in context: A356153 A194333 A203640 * A063775 A053164 A365333 Adjacent sequences: A043286 A043287 A043288 * A043290 A043291 A043292 KEYWORD nonn,base AUTHOR Clark Kimberling STATUS approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified May 21 05:34 EDT 2024. Contains 372728 sequences. (Running on oeis4.)