OFFSET
0
COMMENTS
An infinite binary word.
b(n) = sum of the first 10^n terms begins: 0, 4, 50, 534, 5218, 48127, 517287, 5390832, 53047574, 504439952, 4838747337.
EXAMPLE
01 -> 01 1 0 -> 0110 10 01 -> 01101001 001 011 etc.
PROG
(Python)
TOP = 1000
a = [0]*TOP
a[1] = 1
n = 2
k = 1
while n+k*2 < TOP:
a[n:] = a[n-k:n]
n += k
a[n:] = a[:k]
n += k
k += 1
for k in range(n):
print a[k],
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Alex Ratushnyak, Aug 16 2012
STATUS
approved