OFFSET
1,2
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
f:= proc(n) local v;
v:= numtheory:-sigma(n)+numtheory:-phi(n);
if v::even then v/2 else -1 fi
end proc:
map(f, [$1..100]); # Robert Israel, Sep 28 2017
MATHEMATICA
Table[If[EvenQ[DivisorSigma[1, n]+EulerPhi[n]], (DivisorSigma[1, n]+EulerPhi[n])/2, -1], {n, 120}] (* Harvey P. Dale, Jun 19 2022 *)
CROSSREFS
KEYWORD
sign
AUTHOR
N. J. A. Sloane, Sep 28 2017
STATUS
approved