a(1)=1, a(2) = 2; thereafter a(n) = the smallest positive integer which does not occur earlier in the sequence and which is coprime to a(n-2).

A121216

a(1)=1, a(2) = 2; thereafter a(n) = the smallest positive integer which does not occur earlier in the sequence and which is coprime to a(n-2).

Terms

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

External references