Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A160530
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A160530 Those positive integers n that contain only odd-lengthed runs of 0's and 1's when n is represented in binary. +0
2
1, 2, 5, 7, 8, 10, 14, 17, 21, 23, 29, 31, 32, 34, 40, 42, 46, 56, 58, 62, 65, 69, 71, 81, 85, 87, 93, 95, 113, 117, 119, 125, 127, 128, 130, 136, 138, 142, 160, 162, 168, 170, 174, 184, 186, 190, 224, 226, 232, 234, 238, 248, 250, 254, 257, 261, 263, 273, 277, 279 (list; graph; listen)
OFFSET

1,2

COMMENT

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.

MATHEMATICA

Select[Range[300], And@@OddQ/@Length/@Split[IntegerDigits[ #, 2]]&] (*Chandler*)

CROSSREFS

A001196, A160531

Sequence in context: A158704 A131854 A005124 this_sequence A050941 A153083 A140592

Adjacent sequences: A160527 A160528 A160529 this_sequence A160531 A160532 A160533

KEYWORD

base,nonn

AUTHOR

Leroy Quet (q1qq2qqq3qqqq(AT)yahoo.com), May 17 2009

EXTENSIONS

Extended by Ray Chandler (rayjchandler(AT)sbcglobal.net), May 19 2009

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 27 22:38 EST 2009. Contains 167602 sequences.


AT&T Labs Research