login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A094928 Let p = n-th prime == 1 mod 8 (A007519); a(n) = smallest prime q such that p is not a square mod q. 2
3, 3, 5, 3, 5, 3, 3, 5, 3, 7, 3, 3, 5, 5, 3, 3, 7, 5, 3, 5, 3, 3, 5, 3, 7, 3, 3, 5, 3, 7, 3, 3, 3, 3, 5, 3, 3, 11, 5, 3, 3, 11, 5, 3, 11, 3, 7, 3, 5, 7, 3, 3, 3, 3, 7, 3, 3, 7, 5, 3, 3, 5, 5, 11, 5, 3, 3, 5, 5, 3, 7, 5, 3, 5, 3, 7, 3, 7, 3, 5, 3, 3, 3, 5, 11, 5, 3, 5, 3, 3, 13, 5, 3, 3, 3, 3, 5, 5, 3, 5, 3, 7 (list; graph; refs; listen; history; internal format)
OFFSET

1,1

REFERENCES

M. Kneser, Quadratische Formen, Springer, 2002; see Hilfssatz 18.3.

EXAMPLE

n=3, p = 73, a(3) = q = 5: Legendre(73,5) = -1.

MATHEMATICA

f[n_] := Prime[ Position[ JacobiSymbol[n, Select[Range[3, n - 1], PrimeQ[ # ] &]], -1][[1, 1]] + 1]; f /@ Select[ Prime[ Range[435]], Mod[ #, 8] == 1 &] (from Robert G. Wilson v Jun 23 2004)

CROSSREFS

Cf. A094929, A002224.

Sequence in context: A060397 A014780 A073081 * A178984 A065507 A182731

Adjacent sequences:  A094925 A094926 A094927 * A094929 A094930 A094931

KEYWORD

nonn,easy

AUTHOR

N. J. A. Sloane (njas(AT)research.att.com), Jun 19 2004

EXTENSIONS

More terms from Robert G. Wilson v (rgwv(AT)rgwv.com), Jun 23 2004

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 16 16:00 EST 2012. Contains 205938 sequences.