A383999 Sequence obtained by replacing 3-term subwords of A003849 by 0,1,2,3 as described in Comments.
1, 2, 0, 1, 3, 1, 2, 0, 1, 2, 0, 1, 3, 1, 2, 0, 1, 3, 1, 2, 0, 1, 2, 0, 1, 3, 1, 2, 0, 1, 2, 0, 1, 3, 1, 2, 0, 1, 3, 1, 2, 0, 1, 2, 0, 1, 3, 1, 2, 0, 1, 3, 1, 2, 0, 1, 2, 0, 1, 3, 1, 2, 0, 1, 2, 0, 1, 3, 1, 2, 0, 1, 3, 1, 2, 0, 1, 2, 0, 1, 3, 1, 2, 0, 1, 2
Offset: 1
Keywords
Examples
Starting with A003849 = (0,1,0,0,1,0,1,0,0,1,0,0,1,0,1,0,0,1,0,1,0,...), the successive 3-term subwords are 0,1,0; 1,0,0; 0,0,1; 0,1,0; 1,0,1; ..., which code as 1,2,0,1,3,... .
Programs
-
Mathematica
Partition[Nest[Flatten[#/. {0->{0,1},1->{0}}]&,{0},10],3,1]/.Thread[{{0,0,1},{0,1,0},{1,0,0},{1,0,1}}->{0,1,2,3}] (* Peter J. C. Moses, May 22 2025 *)
Comments