%I #13 Mar 02 2024 08:00:32
%S 2,1,4,3,6,9,11,5,10,14,15,18,22,31,43,7,8,17,23,16,35,36,48,24,37,54,
%T 61,66,70,76,92,12,13,27,28,26,29,39,52,40,51,73,75,83,97,133,181,30,
%U 41,63,64,42,74,85,96,65,86,105,144,126,145,190,207,19,20
%N Inverse permutation of A370727.
%C Also, lexicographically earliest sequence of distinct positive integers such that for any n > 0, prime(a(n)) AND n = n (where prime(k) denotes the k-th prime number and AND denotes the bitwise AND operator).
%H Rémy Sigrist, <a href="/A370728/b370728.txt">Table of n, a(n) for n = 1..10000</a>
%H Rémy Sigrist, <a href="/A370728/a370728.gp.txt">PARI program</a>
%H <a href="/index/Per#IntegerPermutation">Index entries for sequences that are permutations of the natural numbers</a>
%e A370727(42) = 52, hence a(52) = 42.
%o (PARI) See Links section.
%Y Cf. A370727.
%K nonn,base
%O 1,1
%A _Rémy Sigrist_, Feb 28 2024
|