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!)
A044873 Numbers having, in base 2, (sum of even run lengths)=(sum of odd run lengths). 3
9, 11, 13, 133, 135, 140, 143, 146, 148, 150, 152, 154, 156, 161, 164, 166, 172, 175, 178, 180, 182, 189, 196, 198, 200, 202, 206, 210, 212, 214, 216, 218, 220, 225, 228, 230, 236, 239, 241, 245, 247, 2065, 2069, 2071, 2077 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
PROG
(Python)
from itertools import groupby
def ok(n):
rl_sums = [0, 0]
for k, g in groupby(bin(n)[2:]):
rl = len(list(g))
rl_sums[rl%2] += rl
return rl_sums[0] == rl_sums[1]
print(list(filter(ok, range(2078)))) # Michael S. Branicky, Sep 11 2021
CROSSREFS
Cf. A007088.
Sequence in context: A254936 A117675 A027726 * A341080 A279519 A307188
KEYWORD
nonn,base
AUTHOR
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 25 10:51 EDT 2024. Contains 371967 sequences. (Running on oeis4.)