login
Permutation of natural numbers which maps between the partitions as encoded in A112798 (prime-index based system, one-based) to A227739 (binary based system, zero-based).
10

%I #14 Jun 29 2014 00:08:13

%S 0,1,3,2,7,6,15,5,4,14,31,13,63,30,12,10,127,9,255,29,28,62,511,26,8,

%T 126,11,61,1023,25,2047,21,60,254,24,18,4095,510,124,58,8191,57,16383,

%U 125,27,1022,32767,53,16,17,252,253,65535,22,56,122,508,2046,131071

%N Permutation of natural numbers which maps between the partitions as encoded in A112798 (prime-index based system, one-based) to A227739 (binary based system, zero-based).

%C Note the indexing: the domain starts from one, but the range also includes zero.

%H Antti Karttunen, <a href="/A243354/b243354.txt">Table of n, a(n) for n = 1..1024</a>

%H <a href="/index/Per#IntegerPermutation">Index entries for sequences that are permutations of the natural numbers</a>

%F a(n) = A006068(A156552(n)).

%F a(n) = A075158(A241909(n)-1). [With A075158's original starting offset].

%F For all n >= 1, A243353(a(n)) = n.

%F A056239(n) = A227183(a(n)).

%F A003963(n) = A227184(a(n)).

%F A037481(n) = a(A002110(n)).

%o (Scheme) (define (A243354 n) (A006068 (A156552 n)))

%Y Inverse: A243353.

%Y Cf. A227739, A112798, A006068, A156552, A075158, A241909.

%K nonn

%O 1,3

%A _Antti Karttunen_, Jun 05 2014