OFFSET
0,3
COMMENTS
LINKS
Antti Karttunen, Table of n, a(n) for n = 0..8191
FORMULA
PROG
(Scheme)
(define (A269170 n) (A003986bi n (/ (- n (A000035 n)) 2))) ;; Here A003986bi implements dyadic bitwise-OR operation (see A003986).
(PARI) a(n) = bitor(n, n\2); \\ Michel Marcus, Feb 29 2016
(Python)
def A269170(n): return n| n>>1 # Chai Wah Wu, Jun 29 2022
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Antti Karttunen, Feb 22 2016
STATUS
approved