OFFSET
0,5
LINKS
FORMULA
a(n) = A006068(n) - n.
PROG
(Python)
def A286546(n):
k, m = n, n>>1
while m > 0:
k ^= m
m >>= 1
return k-n # Chai Wah Wu, Jun 30 2022
CROSSREFS
KEYWORD
sign,base
AUTHOR
Antti Karttunen, May 18 2017
STATUS
approved