We have a(n) = Odd(2n)+2n/Odd(2n) = Odd(n)+2n/Odd(n),
where Odd(n) = A000265(n) is the odd part of n.
Every positive odd number k appears exactly
floor(log_2(k)) times in this sequence.*
I also considered the sequence of odd integers given by
b(n) = 2n/2^m-2^m = n/2^(m-1)-2^m with m > 0.
Data b(n) : -1, -3, 1, -7, 3, -1, 5, -15, 7, 1, ... for n > 0.
We have b(n) = Odd(2n)-2n/Odd(2n) = Odd(n)-2n/Odd(n),
How many times does each odd number k
(positive and negative) appear in this sequence?
Perhaps infinitely many times [sic].
Note that b(n) < 0 iff 2n+1 is a Proth number:
Best,
Tom Ordo
__________________
The formula of (a) is an inverse of the formula of this permutation.