OFFSET
1,2
COMMENTS
LINKS
EXAMPLE
4, in binary A007088(4) = 100, has one run of 1-bits, with length 1 (which is an odd number), therefore 4 is included in this sequence.
103, in binary 1100111, has one run of two 1-bits and one run of three 1-bits, therefore 103 is included as a term, as there is only one run with an odd length.
107, in binary 1101011, has two runs of two 1-bits and only one run of single 1-bit, thus only one run of 1's with an odd length, therefore 107 is included as a term.
MATHEMATICA
Select[Range[210], Count[Length/@Select[Split[IntegerDigits[#, 2]], #[[1]]==1&], _?OddQ]==1&] (* Harvey P. Dale, May 24 2026 *)
PROG
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Antti Karttunen, Dec 29 2025
STATUS
approved
