Self-inverse permutation: reverse the bits in binary expansion of n and also complement them (0->1, 1->0) if the run count (A005811) is even.
A056539
Self-inverse permutation: reverse the bits in binary expansion of n and also complement them (0->1, 1->0) if the run count (A005811) is even.
Terms
- a(0) =0a(1) =1a(2) =2a(3) =3a(4) =6a(5) =5a(6) =4a(7) =7a(8) =14a(9) =9a(10) =10a(11) =13a(12) =12a(13) =11a(14) =8a(15) =15a(16) =30a(17) =17a(18) =22a(19) =25a(20) =26a(21) =21a(22) =18a(23) =29a(24) =28a(25) =19a(26) =20a(27) =27a(28) =24a(29) =23
External references
- oeis: A056539