OFFSET
0,2
LINKS
Antti Karttunen, Table of n, a(n) for n = 0..8191
PROG
(Python)
def A268716(n):
k, m = n, n>>1
while m > 0:
k ^= m
m >>= 1
return k<<1 # Chai Wah Wu, Jun 30 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Feb 12 2016
STATUS
approved