%I #7 Apr 07 2020 21:09:50
%S 0,0,1,0,0,1,0,1,0,0,1,0,0,0,0,1,0,0,1,0,0,0,1,0,1,0,0,0,0,1,0,0,1,0,
%T 0,0,1,0,0,1,0,0,1,0,0,0,1,0,1,0,0,0,0,1,0,0,1,0,0,0,1,0,0,1,0,1,0,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->100, 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.
%H Clark Kimberling, <a href="/A289239/b289239.txt">Table of n, a(n) for n = 1..10000</a>
%e The first six iterates of the mapping:
%e 00
%e 0010
%e 0010010
%e 00100101000
%e 001001010010000100
%e 0010010100100001001000101000010
%t z = 11; (* number of iterates *)
%t s = {0, 0}; w[0] = StringJoin[Map[ToString, s]];
%t w[n_] := StringReplace[w[n - 1], {"00" -> "0010", "01" -> "100", "10" -> "010"}]
%t TableForm[Table[w[n], {n, 0, 10}]]
%t st = ToCharacterCode[w[z]] - 48 (* A289239 *)
%t Flatten[Position[st, 0]] (* A289240 *)
%t Flatten[Position[st, 1]] (* A289241 *)
%t Table[StringLength[w[n]], {n, 0, 20}] (* A289004 conjectured *)
%Y Cf. A289240, A289241, A289004.
%K nonn,easy
%O 1
%A _Clark Kimberling_, Jun 29 2017
|