OFFSET
1,1
REFERENCES
Paulo Ribenboim, "The Little Book of Big Primes", Springer-Verlag, 1991, p. 28.
LINKS
T. D. Noe, Table of n, a(n) for n=1..1000
FORMULA
"If p>2 does not divide a and if there exists an integer b such that a is congruent to b^2 (mod p), then a is called a quadratic residue modulo p; otherwise, it is a nonquadratic residue modulo p". (p. 28, Ribenboim)
MATHEMATICA
first Needs[ "NumberTheory`NumberTheoryFunctions`" ] then f[n_] := Block[{k = PrimePi[n] + 1}, While[ JacobiSymbol[n, Prime[k]] == 1, k++ ]; Prime[k]]; NestList[f, 2, 56] (* Robert G. Wilson v, Mar 16 2004 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Gary W. Adamson, Feb 29 2004
EXTENSIONS
More terms from Robert G. Wilson v, Mar 16 2004
a(17) corrected by T. D. Noe, Aug 28 2007
STATUS
approved