OFFSET
1,5
COMMENTS
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
S. A. Shirali, A family portrait of primes-a case study in discrimination, Math. Mag. Vol. 70, No. 4 (Oct., 1997), pp. 263-272.
MATHEMATICA
Table[Sum[PowerMod[k, 2, n], {k, (n-1)/2}], {n, 60}] (* Harvey P. Dale, Jan 30 2016 *)
PROG
(PARI) a(n) = sum(k=1, (n-1)\2, k^2 % n);
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Marcus, Nov 11 2013
STATUS
approved