a(n) is the smallest positive integer not yet in the sequence with gcd(n,a(n)) > 1 but a(n) != n; a(1) = 1 by convention.

A159193

a(n) is the smallest positive integer not yet in the sequence with gcd(n,a(n)) > 1 but a(n) != n; a(1) = 1 by convention.

Terms

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

External references