login

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”).

A289168
Length of n-th iterate of the mapping 00->0010, 01->100, 10->001 in A289165.
2
2, 4, 7, 12, 20, 34, 57, 96, 163, 277, 472, 803, 1368, 2328, 3963, 6745, 11481, 19542, 33260, 56612, 96369, 164036, 279208, 475288, 809027, 1377074, 2344072, 3990031, 6791680, 11560716, 19678465, 33496200, 57016621, 97052630
OFFSET
0,1
MATHEMATICA
z = 22; (* number of iterates *)
s = {0, 0}; w[0] = StringJoin[Map[ToString, s]];
w[n_] := StringReplace[w[n - 1], {"00" -> "0010", "01" -> "100", "10" -> "001"}];
st = ToCharacterCode[w[z]] - 48 ; (* A289165 *)
v = Table[StringLength[w[n]], {n, 0, 30}] (* A289168 *)
CROSSREFS
Cf. A289165.
Sequence in context: A329397 A172524 A094925 * A340217 A289000 A289028
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Jun 29 2017
STATUS
approved