login
A365279
Inverse permutation to A365278.
2
0, 1, 3, 2, 7, 15, 6, 31, 63, 4, 5, 11, 14, 127, 255, 30, 511, 1023, 12, 13, 27, 62, 2047, 4095, 126, 8191, 16383, 8, 9, 19, 10, 23, 47, 22, 95, 191, 28, 29, 59, 254, 32767, 65535, 510, 131071, 262143, 60, 61, 123, 1022, 524287, 1048575, 2046, 2097151, 4194303
OFFSET
0,3
FORMULA
a(3*n) = 2*a(n).
a(A032924(k)) = 2^k - 1 for any k > 0.
A023416(a(n)) = A077267(n).
EXAMPLE
A365278(42) = 273, hence a(273) = 42.
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Aug 31 2023
STATUS
approved