OFFSET
0
COMMENTS
a(n) = A108784(n+1) for n < 120 and perhaps beyond. Is this (apart from the offset) the same as A108784? - R. J. Mathar, Feb 25 2011
MAPLE
read("transforms") ;
A048881 := proc(n) wt(n+1)-1 ; end proc:
PROG
(Python 3.10+)
def A186032(n): return 1 if (n+1).bit_count()&1 else -1 # Chai Wah Wu, Nov 15 2022
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Paul Barry, Feb 11 2011
STATUS
approved