OFFSET
1,1
COMMENTS
a(n) is odd, by construction, and can be defined as a(n) = n/2^e + 2*2^e for the largest e >= 0 which makes a(n) an integer (an odd integer), that being e = A007814(n).
Every positive odd number k appears exactly M times in this sequence, where M = floor(log_2(k)), being at n = (k - 2*2^e)*2^e for 0 <= e < M, which is n = A386386(i) + 1 for terms there of odd k >= 3 and m = e + 1 (consecutive terms).
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
MATHEMATICA
OddPart[n_]:=n/2^IntegerExponent[n, 2]; a[n_]:=OddPart[n]+2n/OddPart[n]; Array[a, 70] (* Stefano Spezia, Aug 20 2025 *)
PROG
(PARI) a(n) = my(o=n >> valuation(n, 2)); o + 2*n/o; \\ Michel Marcus, Aug 20 2025
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Thomas Ordowski, Aug 20 2025
EXTENSIONS
More terms from Michel Marcus, Aug 20 2025
STATUS
approved
