OFFSET
1,3
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..20000
FORMULA
MATHEMATICA
f[n_] := Module[{m = 1}, While[! Divisible[m*(m + 1), n], m++]; m]; a[1] = 1; a[n_] := a[n] = -DivisorSum[n, a[#]*f[n/#] &, # < n &]; Array[a, 100] (* Amiram Eldar, Jun 12 2022 *)
PROG
CROSSREFS
KEYWORD
sign
AUTHOR
Antti Karttunen, Jun 12 2022
STATUS
approved