login
A345671
Inverse permutation to A344792.
3
1, 3, 6, 2, 13, 4, 12, 27, 8, 5, 25, 54, 7, 17, 10, 24, 51, 108, 55, 15, 34, 9, 21, 48, 50, 103, 216, 109, 111, 30, 16, 69, 18, 20, 43, 96, 49, 101, 206, 26, 433, 218, 110, 223, 60, 31, 33, 138, 35, 37, 40, 42, 87, 192, 97, 99, 202, 102, 413, 52, 432, 867, 436
OFFSET
1,2
COMMENTS
This is a permutation of the natural numbers.
The apparent straight line commanding the top of the log/log graph (see Links) comprises coordinates of the form (A061419(k), floor(c * 2^(k-1))) where c is 1.6939... (A205083 read as a binary fraction).
FORMULA
a(A344792(n)) = n.
EXAMPLE
A344792(5) = 10, a(10) = 5.
PROG
(PARI) a(n) = my(ret=0, k=0, r); n<<=1; while(n>1, [n, r]=divrem(n<<1, 3); if(r!=1, if(r, ret+=1<<k); k++)); ret+1<<k; \\ Kevin Ryde, Jul 10 2021
CROSSREFS
KEYWORD
nonn,look
AUTHOR
John-Vincent Saddic, Jun 21 2021
STATUS
approved