login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A165316 a(n) = the number of digits in the binary representation of n that each either precede and/or follow a similarly valued digit. 1
0, 0, 2, 2, 0, 2, 3, 3, 2, 0, 2, 4, 2, 3, 4, 4, 3, 2, 4, 2, 0, 2, 3, 5, 4, 2, 4, 5, 3, 4, 5, 5, 4, 3, 5, 4, 2, 4, 5, 3, 2, 0, 2, 4, 2, 3, 4, 6, 5, 4, 6, 4, 2, 4, 5, 6, 5, 3, 5, 6, 4, 5, 6, 6, 5, 4, 6, 5, 3, 5, 6, 5, 4, 2, 4, 6, 4, 5, 6, 4, 3, 2, 4, 2, 0, 2, 3, 5, 4, 2, 4, 5, 3, 4, 5, 7, 6, 5, 7, 6, 4, 6, 7, 5, 4 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
EXAMPLE
184 in binary is 10111001. There are exactly five binary digits (the 2nd, 3rd, and 4th 1's from the left, and the 2nd and 3rd 0's from the left) that are each adjacent to a similar digit. So a(184) = 5.
CROSSREFS
Cf. A165317.
Sequence in context: A241533 A370885 A072738 * A362991 A215976 A141058
KEYWORD
base,nonn
AUTHOR
Leroy Quet, Sep 14 2009
EXTENSIONS
Extended by Ray Chandler, Mar 13 2010
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.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 10:13 EDT 2024. Contains 371905 sequences. (Running on oeis4.)