OFFSET
1,4
COMMENTS
The first negative term is a(360) = -12947.
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..65537
FORMULA
a(n) = numerator of f(n), where f(1) = 1, f(n) = (1/2) * (A001065(n) - Sum_{d|n, d>1, d<n} f(d) * f(n/d)) for n > 1.
PROG
(PARI)
A317845aux(n) = if(1==n, n, ((sigma(n)-n)-sumdiv(n, d, if((d>1)&&(d<n), A317845aux(d)*A317845aux(n/d), 0)))/2);
A317845(n) = numerator(A317845aux(n));
CROSSREFS
KEYWORD
sign,frac
AUTHOR
Antti Karttunen, Aug 12 2018
STATUS
approved