login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A043276 a(n)=maximal run length in base 2 representation of n. 9
1, 1, 2, 2, 1, 2, 3, 3, 2, 1, 2, 2, 2, 3, 4, 4, 3, 2, 2, 2, 1, 2, 3, 3, 2, 2, 2, 3, 3, 4, 5, 5, 4, 3, 3, 2, 2, 2, 3, 3, 2, 1, 2, 2, 2, 3, 4, 4, 3, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 5, 6, 6, 5, 4, 4, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 3, 4, 4, 3, 2, 2, 2, 1, 2, 3, 3, 2, 2, 2, 3, 3, 4, 5, 5, 4, 3, 3, 2, 2, 2, 3, 3, 2 (list; graph; refs; listen; history; internal format)
OFFSET

1,3

COMMENTS

First occurrence of k is when n=2^k-1 and there is no last occurrence. [From Robert G. Wilson v (rgwv(AT)rgwv.com), Dec 14 2008]

MATHEMATICA

f[n_] := Max @@ Length /@ Split@IntegerDigits[n, 2]; Array[f, 105] [From Robert G. Wilson v (rgwv(AT)rgwv.com), Dec 14 2008]

CROSSREFS

Sequence in context: A134658 A106580 A165915 * A064742 A167489 A106638

Adjacent sequences:  A043273 A043274 A043275 * A043277 A043278 A043279

KEYWORD

nonn,base

AUTHOR

Clark Kimberling (ck6(AT)evansville.edu)

EXTENSIONS

More terms from Robert G. Wilson v (rgwv(AT)rgwv.com), Dec 14 2008

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 14 20:38 EST 2012. Contains 205663 sequences.