A345671 Inverse permutation to A344792.
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
Examples
A344792(5) = 10, a(10) = 5.
Links
- Alois P. Heinz, Table of n, a(n) for n = 1..10000
- John-Vincent Saddic, Log/log scatterplot
- Index entries for sequences that are permutations of the natural numbers
Programs
-
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<
Kevin Ryde, Jul 10 2021
Formula
a(A344792(n)) = n.
Comments