a(1) = 1; for n>1, a(n) = smallest positive integer which is not among earlier terms of sequence, is coprime to a(n-1) and is not equal to a(n-1) +- 1.

A097465

a(1) = 1; for n>1, a(n) = smallest positive integer which is not among earlier terms of sequence, is coprime to a(n-1) and is not equal to a(n-1) +- 1.

Terms

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

External references