Permutation of natural numbers: a(1) = 0, a(2) = 1, and for n > 1, a(2n) = nthcomposite(a(n)), a(2n-1) = nthprime(a(A064989(2n-1))), where nthprime = A000040, nthcomposite = A002808, and A064989(n) shifts the prime factorization of n one step towards smaller primes.

A246682

Permutation of natural numbers: a(1) = 0, a(2) = 1, and for n > 1, a(2n) = nthcomposite(a(n)), a(2n-1) = nthprime(a(A064989(2n-1))), where nthprime = A000040, nthcomposite = A002808, and A064989(n) shifts the prime factorization of n one step towards smaller primes.

Terms

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

External references