OFFSET
1,1
COMMENTS
For primes p, a(p) = 0, otherwise positive, except for n = 1 where it is negative.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
MATHEMATICA
a[n_] := DivisorSigma[1, n]^2 - DivisorSigma[2, n] - 2n; Array[a, 65] (* Amiram Eldar, Jul 31 2019 *)
PROG
(PARI) a(n) = sigma(n)^2 - sigma(n, 2) - 2*n; \\ Michel Marcus, Mar 22 2020
CROSSREFS
KEYWORD
sign
AUTHOR
Labos Elemer, Dec 12 2001
STATUS
approved