Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).
%I #21 Mar 22 2022 18:46:54
%S 0,0,1,0,0,1,0,0,1,0,0,0,1,0,0,1,0,0,0,1,0,0,1,0,0,1,0,0,0,1,0,0,1,0,
%T 0,0,1,0,0,1,0,0,1,0,0,0,1,0,0,1,0,0,0,1,0,0,1,0,0,0,1,0,0,1,0,0,1,0,
%U 0,0,1,0,0,1,0,0,0,1,0,0,1,0,0,1,0,0
%N Fixed point of the mapping 00->0010, 01->010, 10->010, starting with 00.
%C Conjecture: the number of letters (0's and 1's) in the n-th iterate of the mapping is given by A289004.
%C The mapping is applied as in the Mathematica command StringReplace. In particular, for a word of odd length, the final letter is retained, as in 0010010 -> 00100100100. (If the final letter is removed, the iterates are changed, but the limiting fixed point remains unchanged. See A293077.)
%C More generally, to describe the result of the command StringReplace[w, {u(1)->v(1), u(2)->v(2) ... u(n)-<v(n)}], assume that no u(i) is a subword of any other u(j). The word w is then a concatenation of subwords u(i(0)), g(1), u(i(1)), g(2), u(i(2)), ..., such that u(i(0)) is the empty word, and each g(j) is the subword, g, possibly empty, of least length immediately following u(i(j-1)), such that no subword of g is one of the words u(i). The result of the command is then the concatenation of g(1), v(i(1)), g(2), v(i(2)), ... That is, each u(i) is replaced by v(i), and the words g(i) are left unchanged.
%C Conjecture: a(n) = A171588(n-3) for n>3. - _Michel Dekking_, Mar 20 2022
%H Clark Kimberling, <a href="/A289035/b289035.txt">Table of n, a(n) for n = 1..10000</a>
%e First seven iterates of the mapping:
%e 00
%e 0010
%e 0010010
%e 00100100100
%e 001001001000100100
%e 0010010010001001000100100100010
%e 0010010010001001000100100100010010001001001000100100
%t z = 10; (* number of iterates *)
%t s = {0, 0}; w[0] = StringJoin[Map[ToString, s]];
%t w[n_] := StringReplace[w[n - 1], {"00" -> "0010", "01" -> "010", "10" -> "010"}]
%t TableForm[Table[w[n], {n, 0, 10}]]
%t st = ToCharacterCode[w[z]] - 48 (* A289035 *)
%t Flatten[Position[st, 0]] (* A289036 *)
%t Flatten[Position[st, 1]] (* A289037 *)
%t Table[StringLength[w[n]], {n, 0, 20}] (* A289004 *)
%Y Cf. A289036, A289037, A289004, A293076.
%K nonn,easy
%O 1
%A _Clark Kimberling_, Jun 27 2017
%E Updated by _Clark Kimberling_, Sep 30 2017