OFFSET
1,5
COMMENTS
While terms with even indices are never negative, this is the case for most terms with odd indices; exceptions are listed in A229978.
LINKS
Douglas E. Iannucci, On the Equation sigma(n) = n + phi(n), Journal of Integer Sequences, Vol. 20 (2017), Article 17.6.2.
FORMULA
a(n) = 0 <=> n = 2 (conjectured).
a(2n) > 0 for all n > 1.
a(2n+1) > 0 <=> n in A229978.
a(p) = 2 - p for p prime. - Alonso del Arte, Oct 05 2013
Sum_{k=1..n} a(k) = c * n^2 / 2 + O(n*log(n)), where c = Pi^2/6 - 6/Pi^2 - 1 = 0.0370069... . - Amiram Eldar, Dec 04 2023
MATHEMATICA
Table[DivisorSigma[1, n] - EulerPhi[n] - n, {n, 75}] (* Alonso del Arte, Oct 05 2013 *)
PROG
(PARI) A228947(n)=sigma(n)-eulerphi(n)-n
CROSSREFS
KEYWORD
sign,easy
AUTHOR
M. F. Hasler, Oct 05 2013
STATUS
approved