login
A099258
Inverse of A099257.
3
1, 3, 2, 4, 6, 7, 8, 9, 5, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 11, 22, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 23, 46, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73
OFFSET
1,2
COMMENTS
Permutation of the natural numbers;
a(A033484(n)) = A033484(n);
a(A033484(n) - 1) = A033484(n)/2 = A055010(n).
FORMULA
a(n) = if n = 3*2^k - 2 then n else (if n = 3*2^k - 3 then (n + 1)/2 else n + 1).
CROSSREFS
Sequence in context: A239516 A365533 A021312 * A264905 A374790 A254052
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Oct 09 2004
STATUS
approved