OFFSET
0,4
COMMENTS
LINKS
PROG
(Python)
from functools import reduce
def A286387(n): return sum(reduce(lambda x, y:(x[0], x[0]+x[1]) if int(y) else (x[0]+x[1], x[1]), bin(n**2)[-1:2:-1], (1, 0))) if n else 0 # Chai Wah Wu, May 18 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, May 09 2017
STATUS
approved