OFFSET
1,8
LINKS
Richard K. Guy, Divisors and desires, Amer. Math. Monthly, 104 (1997), 359-360.
MATHEMATICA
a[n_] := Module[{m = EulerPhi[n]*DivisorSigma[1, n]}, If[Mod[m, 4] == 2, -1, k = 0; While[!IntegerQ[Sqrt[m + k^2]], k++]; k]]; Array[a, 100] (* Amiram Eldar, Dec 07 2018 *)
PROG
(PARI) a(n) = {my(x = sigma(n)*eulerphi(n)); if ((x % 4) == 2, -1, my(k=0); while (! issquare(x+k^2), k++); k; ); } \\ Michel Marcus, Dec 07 2018
CROSSREFS
KEYWORD
sign
AUTHOR
EXTENSIONS
a(14), a(30), and a(51) corrected by Sean A. Irvine, Dec 06 2018
STATUS
approved