OFFSET
0,1
MATHEMATICA
a[n_] := If[EvenQ[IntegerExponent[n, 2]] && OddQ[DigitCount[n, 2, 1]], -1, 1]; Array[a, 100, 0] (* Amiram Eldar, Aug 04 2023 *)
CROSSREFS
KEYWORD
sign,base
AUTHOR
Paul Barry, Jan 10 2007
EXTENSIONS
More terms from Amiram Eldar, Aug 04 2023
STATUS
approved