Start with the sequence a(1) to a(4) = 1, 3, 2, 3. Then in step s, append "1", "1,2", or "1,2,3", whichever ends with a(s+2).

A082391

Start with the sequence a(1) to a(4) = 1, 3, 2, 3. Then in step s, append "1", "1,2", or "1,2,3", whichever ends with a(s+2).

Terms

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

External references