OFFSET
0,13
LINKS
FORMULA
EXAMPLE
PROG
(Scheme, with memoization-macro definec)
(definec (A292373 n) (if (zero? n) n (let ((d (modulo n 4))) (+ (if (= 3 d) 1 0) (* 2 (A292373 (/ (- n d) 4)))))))
(Python)
def A292373(n): return int(bin(n&n>>1)[:1:-2][::-1], 2) # Chai Wah Wu, Jun 30 2022
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Antti Karttunen, Sep 15 2017
STATUS
approved