login
A361482
Inverse permutation to A361481.
2
0, 1, 2, 3, 4, 6, 5, 7, 8, 10, 13, 11, 14, 12, 9, 15, 16, 18, 21, 25, 22, 28, 23, 19, 29, 26, 24, 27, 30, 20, 17, 31, 32, 34, 37, 41, 47, 53, 48, 42, 38, 54, 58, 55, 49, 56, 39, 35, 59, 43, 50, 61, 51, 57, 52, 44, 62, 45, 40, 46, 60, 36, 33, 63, 64, 66, 69, 73
OFFSET
0,3
FORMULA
a(2^k - 1) = 2^k - 1 for any k >= 0.
a(2^k) = 2^k for any k >= 0.
EXAMPLE
A361481(42) = 39, so a(39) = 42.
PROG
(PARI) See Links section.
CROSSREFS
Cf. A361481.
Sequence in context: A080541 A330081 A072759 * A257683 A343152 A267105
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Mar 14 2023
STATUS
approved