|
|
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
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
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()))
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|