OFFSET
1,2
COMMENTS
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..10000
John-Vincent Saddic, Log/log scatterplot
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