Lexicographically earliest permutation of the natural numbers such that each term has a common divisor with at least two earlier terms, a(n)=n for n<4.

A112975

Lexicographically earliest permutation of the natural numbers such that each term has a common divisor with at least two earlier terms, a(n)=n for n<4.

Terms

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

External references