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.
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!)
A160531 Those positive integers n that contain both odd-lengthed and even-lengthed runs of 0's and 1's when n is represented in binary. 1
4, 6, 9, 11, 13, 16, 18, 19, 20, 22, 24, 25, 26, 27, 28, 30, 33, 35, 36, 37, 38, 39, 41, 43, 44, 45, 47, 49, 50, 52, 53, 54, 55, 57, 59, 61, 64, 66, 67, 68, 70, 72, 73, 74, 75, 76, 77, 78, 79, 80, 82, 83, 84, 86, 88, 89, 90, 91, 92, 94, 96, 97, 98, 99, 100, 101, 102, 103, 104 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Let the binary representation of n be thought of as a string of 0's and 1's. By a "run" of 0's or 1's, it is meant either a contiguous substring all of 0's bounded by 1's or the by the edge of the string, or a contiguous substring all of 1's bounded by 0's or the by the edge of the string.
This sequence contains precisely those positive integers that are in neither sequence A001196 nor sequence A160530.
LINKS
MATHEMATICA
Select[Range[120], Select[l=Length/@Split[IntegerDigits[ #, 2]], EvenQ]!={}&&Select[l, OddQ]!={}&] (* Ray Chandler, May 19 2009 *)
CROSSREFS
Sequence in context: A258979 A258026 A246779 * A190348 A189363 A189926
KEYWORD
base,nonn
AUTHOR
Leroy Quet, May 17 2009
EXTENSIONS
Extended by Ray Chandler, May 19 2009
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 May 19 00:35 EDT 2024. Contains 372666 sequences. (Running on oeis4.)