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!)
A044887 Numbers having, in base 16, (sum of even run lengths)=(sum of odd run lengths). 3
4097, 4098, 4099, 4100, 4101, 4102, 4103, 4104, 4105, 4106, 4107, 4108, 4109, 4110, 4111, 4113, 4130, 4147, 4164, 4181, 4198, 4215, 4232, 4249, 4266, 4283, 4300, 4317, 4334, 4351, 4353, 4354, 4355, 4356, 4357, 4358 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

Table of n, a(n) for n=1..36.

PROG

(Python)

from itertools import groupby

def ok(n):

    rl_sums = [0, 0]

    for k, g in groupby(hex(n)[2:]):

        rl = len(list(g))

        rl_sums[rl%2] += rl

    return rl_sums[0] == rl_sums[1]

print(list(filter(ok, range(4359)))) # Michael S. Branicky, Sep 11 2021

CROSSREFS

Cf. A104619.

Cf. A044873, A044874, A044875, A044876, A044877, A044878, A044879.

Cf. A044880, A044881, A044882, A044883, A044884, A044885, A044886.

Sequence in context: A017424 A017556 A309112 * A217196 A342685 A342686

Adjacent sequences:  A044884 A044885 A044886 * A044888 A044889 A044890

KEYWORD

nonn,base

AUTHOR

Clark Kimberling

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified January 28 15:20 EST 2022. Contains 350657 sequences. (Running on oeis4.)