OFFSET
1,6
COMMENTS
LINKS
MATHEMATICA
s[n_] := If[n > 1 && Length[(f = FactorInteger[n])] == 1 && (e = f[[;; , 2]]) == 2^IntegerExponent[e, 2], 1, 0]; a[1] = 1; a[n_] := a[n] = -DivisorSum[n, s[n/#] * a[#] &, # < n &]; Array[a, 100] (* Amiram Eldar, Jul 19 2022 *)
PROG
CROSSREFS
KEYWORD
sign
AUTHOR
Antti Karttunen, Jul 19 2022
STATUS
approved