a(1)=1, a(2)=2, a(3)=3; for n > 3, a(n) is the smallest positive integer which does not occur earlier in the sequence and which is not coprime to a(n-2).
A121217
a(1)=1, a(2)=2, a(3)=3; for n > 3, a(n) is the smallest positive integer which does not occur earlier in the sequence and which is not coprime to a(n-2).
Terms
- a(0) =1a(1) =2a(2) =3a(3) =4a(4) =6a(5) =8a(6) =9a(7) =10a(8) =12a(9) =5a(10) =14a(11) =15a(12) =7a(13) =18a(14) =21a(15) =16a(16) =24a(17) =20a(18) =22a(19) =25a(20) =11a(21) =30a(22) =33a(23) =26a(24) =27a(25) =13a(26) =36a(27) =39a(28) =28a(29) =42
External references
- oeis: A121217