More generally, for k = 0, 1, 2, ..., we can define a sequence of words S_k(n) by S_k(0) = 0, S_k(1) = 0...01 (k 0's) and for n >= 1, S_k(n+1) = S_k(n)S_k(n)S_k(n)S_k(n-1). Then the limit word S_k(infinity) is a Sturmian word whose terms are given by the formula a(n) = floor((n + 2)/(k + alpha)) - floor((n + 1)/(k + alpha)), where alpha = 1/2*(sqrt(13) - 1). This sequence corresponds to the case k = 0. Compare with A080764.
(a(n)) is the unique fixed point of the substitution 0 -> 1, 1 -> 1110. - Michel Dekking, Feb 02 2017