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!)
A044879 Numbers having, in base 8, (sum of even run lengths)=(sum of odd run lengths). 3
513, 514, 515, 516, 517, 518, 519, 521, 530, 539, 548, 557, 566, 575, 577, 578, 579, 580, 581, 582, 583, 592, 593, 595, 596, 597, 598, 599, 600, 601, 602, 604, 605, 606, 607, 608, 609, 610, 611, 613, 614, 615, 616, 617, 618 (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(oct(n)[2:]):
rl = len(list(g))
rl_sums[rl%2] += rl
return rl_sums[0] == rl_sums[1]
print(list(filter(ok, range(619)))) # Michael S. Branicky, Sep 11 2021
CROSSREFS
Cf. A007094.
Sequence in context: A017421 A017553 A087931 * A060947 A182108 A066697
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 24 04:14 EDT 2024. Contains 371918 sequences. (Running on oeis4.)