a(n) = the smallest positive integer which does not occur earlier in the sequence and which is coprime to the n-th composite integer.
A125844
a(n) = the smallest positive integer which does not occur earlier in the sequence and which is coprime to the n-th composite integer.
Terms
- a(0) =1a(1) =5a(2) =3a(3) =2a(4) =7a(5) =11a(6) =9a(7) =4a(8) =13a(9) =17a(10) =19a(11) =8a(12) =15a(13) =23a(14) =6a(15) =21a(16) =10a(17) =25a(18) =29a(19) =27a(20) =14a(21) =31a(22) =12a(23) =35a(24) =33a(25) =16a(26) =37a(27) =41a(28) =39a(29) =22
External references
- oeis: A125844