OFFSET
1,1
REFERENCES
N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
J. W. L. Glaisher, On the function chi(n), Quarterly Journal of Pure and Applied Mathematics, 20 (1884), 97-167.
J. W. L. Glaisher, On the function chi(n), Quarterly Journal of Pure and Applied Mathematics, 20 (1884), 97-167. [Annotated scanned copy]
MATHEMATICA
pp = Select[ Prime[ Range[200]], Mod[#, 4] == 1 & ]; (-Sum[ JacobiSymbol[x^3 - x, #], {x, 0, # - 1}] & ) /@ pp (* Jean-François Alcover, Oct 07 2011, after Michael Somos *)
PROG
(PARI) {a(n)= local(m, c); if(n<1, 0, c=0; m=0; while(c<n, m++; if(isprime(m)& m%4==1, c++)); -sum(x=0, m-1, kronecker(x^3-x, m)))} /* Michael Somos, Sep 19 2006 */
CROSSREFS
KEYWORD
nice,sign
AUTHOR
STATUS
approved