a(1) = 1, a(2) = 2; for n >= 3, a(n) = the smallest positive integer not occurring earlier in the sequence such that gcd(a(n-1), a(n)) is a prime.

A122280

a(1) = 1, a(2) = 2; for n >= 3, a(n) = the smallest positive integer not occurring earlier in the sequence such that gcd(a(n-1), a(n)) is a prime.

Terms

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

External references