%I #9 Mar 03 2016 22:48:51
%S 1,2,3,4,5,6,7,8,23,10,11,12,13,14,15,16,9,46,17,20,31,22,25,24,21,26,
%T 27,28,19,30,29,32,49,18,71,92,37,34,39,40,41,62,43,44,107,50,47,48,
%U 119,42,51,52,35,54,89,56,101,38,53,60,61,58,63,64,115,98,67,36,173,142,55,184,33,74,75,68,131,78,77,80,167
%N Permutation of natural numbers: a(1) = 1, a(2n) = 2*a(n), a(2n+1) = A269380(A250469(2n+1)).
%C This is a variant of A269355, from which it differs for the first time at n=18.
%H Antti Karttunen, <a href="/A269357/b269357.txt">Table of n, a(n) for n = 1..16384</a>
%H <a href="/index/Per#IntegerPermutation">Index entries for sequences that are permutations of the natural numbers</a>
%F a(1) = 1, after which, for even n, a(n) = 2*a(n/2) and for odd n, a(n) = A269355(n) = A269380(A250469(n)).
%F Other identities. For all n >= 1:
%F A000035(a(n)) = A000035(n). [This permutation preserves the parity of n.]
%o (Scheme, with memoization-macro definec)
%o (definec (A269357 n) (cond ((<= n 1) n) ((even? n) (* 2 (A269357 (/ n 2)))) (else (A269380 (A250469 n)))))
%Y Inverse: A269358.
%Y Cf. A000035, A250469, A269380, A269355, A269172.
%K nonn
%O 1,2
%A _Antti Karttunen_, Mar 03 2016
|