OFFSET
1,1
COMMENTS
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
MATHEMATICA
Array[3*2^(IntegerExponent[#, 2] - 1) + #/2 &, 68] (* Michael De Vlieger, Jul 10 2022 *)
PROG
(PARI) a(n) = (3*2^valuation(n, 2) + n)/2; \\ Michel Marcus, Mar 03 2020
(Python)
def A329486(n): return (3*(n&-n)+n)>>1 # Chai Wah Wu, Jul 10 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Markus Rissanen, Nov 14 2019
EXTENSIONS
Edited and more terms from Michel Marcus, Mar 03 2020
STATUS
approved