login
A362749
Run length transform of A362240.
1
1, 1, 2, 2, 3, 1, 1, 4, 4, 1, 1, 1, 1, 2, 1, 1, 8, 2, 2, 1, 4, 3, 1, 3, 1, 5, 3, 1, 4, 1, 2, 1, 2, 2, 1, 1, 2, 4, 1, 1, 3, 1, 1, 1, 1, 1, 3, 2, 1, 2, 1, 3, 2, 1, 2, 1, 1, 2, 1, 2, 2, 2, 2, 4, 1, 1, 1, 7, 5, 1, 4, 4, 2, 1, 3, 1, 2, 1, 1, 1, 4, 3, 4, 5, 1, 1, 1, 1, 2
OFFSET
1,3
COMMENTS
Length of the runs of 0s and 1s in A362240.
LINKS
PROG
(Python)
from itertools import chain, count, groupby, islice, product
def bins(): yield from ("".join(b) for d in count(1) for b in product("01", repeat=d))
def bgen(s=""): yield from chain.from_iterable(map(int, t) for t in bins() if t not in s and (s:=s+t))
def agen(): yield from (len(list(g)) for k, g in groupby(bgen()))
print(list(islice(agen(), 89))) # Michael S. Branicky, May 02 2023
CROSSREFS
Cf. A362240.
Sequence in context: A130795 A367634 A195663 * A264010 A071435 A365484
KEYWORD
nonn
AUTHOR
Neal Gersh Tolunsky, May 02 2023
STATUS
approved