S(1)={1}. S(n) = {S(n-1) {1,2,...,(n-1),n,(n-1),...,2,1} S(n-1)}, where S(n) is a string of the first 3*2^n -2*n -3 terms of the sequence.

A126863

S(1)={1}. S(n) = {S(n-1) {1,2,...,(n-1),n,(n-1),...,2,1} S(n-1)}, where S(n) is a string of the first 3*2^n -2*n -3 terms of the sequence.

Terms

    a(0) =1a(1) =1a(2) =2a(3) =1a(4) =1a(5) =1a(6) =2a(7) =3a(8) =2a(9) =1a(10) =1a(11) =1a(12) =2a(13) =1a(14) =1a(15) =1a(16) =2a(17) =3a(18) =4a(19) =3a(20) =2a(21) =1a(22) =1a(23) =1a(24) =2a(25) =1a(26) =1a(27) =1a(28) =2a(29) =3

External references