a(n) = the smallest composite positive integer that is not yet in the sequence and that is coprime to n.

A163642

a(n) = the smallest composite positive integer that is not yet in the sequence and that is coprime to n.

Terms

    a(0) =4a(1) =9a(2) =8a(3) =15a(4) =6a(5) =25a(6) =10a(7) =21a(8) =14a(9) =27a(10) =12a(11) =35a(12) =16a(13) =33a(14) =22a(15) =39a(16) =18a(17) =49a(18) =20a(19) =51a(20) =26a(21) =45a(22) =24a(23) =55a(24) =28a(25) =57a(26) =32a(27) =65a(28) =30a(29) =77

External references