OFFSET
1,2
COMMENTS
LINKS
MAPLE
a:= n-> (j-> (2*j+1)*2^((n/2^j-1)/2))(padic[ordp](n, 2)):
seq(a(n), n=1..50); # Alois P. Heinz, Jan 23 2019
MATHEMATICA
a[n_] := (2 IntegerExponent[2 n, 2] - 1)*2^((n/2^IntegerExponent[n, 2] + 1)/2 - 1); Array[a, 50] (* Jean-François Alcover, Mar 12 2019 *)
PROG
(Python)
def A117303(n): return (((m:=(n&-n).bit_length())<<1)-1)*(1<<(n>>m)) # Chai Wah Wu, Jul 14 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Apr 24 2006
EXTENSIONS
Spelling corrected by Jason G. Wurtzel, Aug 23 2010
STATUS
approved