login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

a(n) is the greatest k not yet in the sequence such that A374356(n) = A374356(k).
1

%I #23 Oct 31 2024 01:28:08

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

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

%U 33,35,34,38,39,36,37,44,45,47,46,40,41,43,42,96,97,99,98

%N a(n) is the greatest k not yet in the sequence such that A374356(n) = A374356(k).

%C This sequence is a self-inverse permutation of the nonnegative integers that preserves the binary length.

%H Rémy Sigrist, <a href="/A377355/b377355.txt">Table of n, a(n) for n = 0..8191</a>

%H Rémy Sigrist, <a href="/A377355/a377355.gp.txt">PARI program</a>

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

%e The first terms are:

%e n a(n) A374356(n) A374356(a(n))

%e -- ---- ---------- -------------

%e 0 0 0 0

%e 1 1 1 1

%e 2 3 2 2

%e 3 2 2 2

%e 4 6 4 4

%e 5 7 5 5

%e 6 4 4 4

%e 7 5 5 5

%e 8 12 8 8

%e 9 13 9 9

%e 10 15 10 10

%e 11 14 10 10

%e 12 8 8 8

%e 13 9 9 9

%e 14 11 10 10

%e 15 10 10 10

%o (PARI) \\ See Links section.

%Y Cf. A374356.

%K nonn,base

%O 0,3

%A _Rémy Sigrist_, Oct 27 2024