OFFSET
1
COMMENTS
Characteristic function of A295299.
LINKS
FORMULA
MATHEMATICA
Array[Mod[DivisorSigma[1, #] + DigitCount[#, 2, 1], 2] &, 120] (* Michael De Vlieger, Nov 26 2017 *)
PROG
(PARI) a(n) = (hammingweight(n) + sigma(n)) % 2; \\ Michel Marcus, Dec 02 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Nov 26 2017
STATUS
approved