a(0)=1. For n >=1, a(n) = largest positive integer < a(n-1) that is not coprime to the n-th composite, if such an integer exists. Otherwise, a(n) = smallest integer > a(n-1) that is not coprime to the n-th composite.

A139713

a(0)=1. For n >=1, a(n) = largest positive integer < a(n-1) that is not coprime to the n-th composite, if such an integer exists. Otherwise, a(n) = smallest integer > a(n-1) that is not coprime to the n-th composite.

Terms

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

External references