[go: up one dir, main page]

login
Permutation of natural numbers: a recursed variant of A122155.
4

%I #10 Apr 21 2024 10:17:23

%S 0,1,2,3,4,7,6,5,8,15,14,13,12,9,10,11,16,31,30,29,28,25,26,27,24,17,

%T 18,19,20,23,22,21,32,63,62,61,60,57,58,59,56,49,50,51,52,55,54,53,48,

%U 33,34,35,36,39,38,37,40,47,46,45,44,41,42,43,64,127,126,125,124,121

%N Permutation of natural numbers: a recursed variant of A122155.

%C Maps between A096115 and A096111.

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

%F a(0)=0, otherwise a(n) = A122155(A053644(n)+a(A053645(n))).

%o (Scheme:) (define (A122198 n) (if (< n 1) n (A122155 (+ (A053644 n) (A122198 (A053645 n))))))

%Y Inverse: A122199.

%K nonn

%O 0,3

%A _Antti Karttunen_, Aug 25 2006