OFFSET
1,1
COMMENTS
If Chowla's function of n read (modulo n) is a nonzero square, print this square.
Chowla's function (A048050) = sum of divisors of n except 1 and n.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
MATHEMATICA
chowla[n_] := DivisorSigma[1, n] - n - 1; aQ[n_] := (c = chowla[n]) > 0 && IntegerQ @ Sqrt @ Mod[c, n]; Mod[chowla[#], #] & /@ Select[Range[1000], aQ] (* Amiram Eldar, Aug 28 2019 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Asher Auel, Jan 19 2000
STATUS
approved