a(n) is smallest positive integer not among the earlier terms of the sequence, not equal to n and which is coprime to its adjacent terms in the sequence.

A114861

a(n) is smallest positive integer not among the earlier terms of the sequence, not equal to n and which is coprime to its adjacent terms in the sequence.

Terms

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

External references