proposed
approved
proposed
approved
editing
proposed
1, 5, 3, 21, 5, 13, 7, 85, 9, 21, 11, 53, 13, 29, 15, 341, 17, 37, 19, 85, 21, 45, 23, 213, 25, 53, 27, 117, 29, 61, 31, 1365, 33, 69, 35, 149, 37, 77, 39, 341, 41, 85, 43, 181, 45, 93, 47, 853, 49, 101, 51, 213, 53, 109, 55, 469, 57, 117, 59, 245, 61, 125, 63, 5461, 65, 133, 67, 277, 69, 141, 71, 597, 73, 149, 75
a := proc(n) padic[ordp](n, 2): n*2^% + ((2^%)^2 - 1)/3 end:
seq(a(n), n = 1..64); # Peter Luschny, Apr 27 2024
proposed
editing
editing
proposed
(Python)
def A372289(n): return (n<<(e:=(~n & n-1).bit_length()))+((1<<(e<<1))-1)//3 # Chai Wah Wu, Apr 26 2024
approved
editing
proposed
approved
editing
proposed
editing
proposed
a[n_]:=n*(2^IntegerExponent[n, 2]) + ((4^IntegerExponent[n, 2]) - 1)/3; Array[a, 75] (* Stefano Spezia, Apr 26 2024 *)
proposed
editing