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”).

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