%I
%S 0,1,2,3,4,5,8,9,6,7,16,15,32,11,10,27,64,25,128,21,14,13,256,45,12,
%T 17,18,33,512,35,1024,81,22,19,20,75,2048,23,26,63,4096,55,8192,39,30,
%U 29,16384,135,24,49,34,51,32768,125,28,99,38,31,65536,105,131072,37,42,243,44,65,262144,57,46,77,524288,225,1048576,41,50,69,40,85
%N Permutation of nonnegative integers: a(n) = A005940(A156552(n)), a(1) = 0.
%C Note the indexing: although the domain starts from 1, the range includes also zero.
%H Antti Karttunen, <a href="/A297166/b297166.txt">Table of n, a(n) for n = 1..10000</a>
%H <a href="/index/Bi#binary">Index entries for sequences related to binary expansion of n</a>
%H <a href="/index/Per#IntegerPermutation">Index entries for sequences that are permutations of the natural numbers</a>
%H <a href="/index/Pri#prime_indices">Index entries for sequences computed from indices in prime factorization</a>
%F a(1) = 0; for n > 1, a(n) = A005940(A156552(n)).
%o (Scheme) (define (A297166 n) (if (= 1 n) 0 (A005940 (A156552 n))))
%Y Inverse: A297165.
%Y Cf. A005940, A156552.
%Y Cf. also A297164.
%K nonn
%O 1,3
%A _Antti Karttunen_, Jan 05 2018
