For n odd, a(n) is the least positive integer not already used. For n even, a(n) is the least positive integer not already used that is coprime to a(n/2).

A082746

For n odd, a(n) is the least positive integer not already used. For n even, a(n) is the least positive integer not already used that is coprime to a(n/2).

Terms

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

External references