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!)
A044881 Numbers having, in base 10, (sum of even run lengths)=(sum of odd run lengths). 3
1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1011, 1022, 1033, 1044, 1055, 1066, 1077, 1088, 1099, 1101, 1102, 1103, 1104, 1105, 1106, 1107, 1108, 1109, 1120, 1121, 1123, 1124, 1125, 1126, 1127, 1128, 1129 (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(str(n)):
rl = len(list(g))
rl_sums[rl%2] += rl
return rl_sums[0] == rl_sums[1]
print(list(filter(ok, range(1130)))) # Michael S. Branicky, Sep 11 2021
CROSSREFS
Cf. A000027.
Sequence in context: A282955 A282985 A262859 * A291269 A317291 A362921
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 00:30 EDT 2024. Contains 371917 sequences. (Running on oeis4.)