The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A237437 Least prime p > prime(n+1) such that p is not a square mod the first n odd primes 3, 5, 7, 11, ..., prime(n+1). 1
5, 17, 17, 17, 83, 167, 167, 227, 2273, 5297, 5297, 69467, 69467, 116387, 348563, 348563, 2004917, 5472953, 8062073, 8062073 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Least prime p > prime(n+1) such that p is a quadratic nonresidue mod the first n odd primes 3, 5, 7, 11, ..., prime(n+1).
Least odd prime p such that the Legendre symbol (p|q) = -1 for q = 3, 5, 7, 11, ..., prime(n+1).
LINKS
Wipawee Tangjai, Kodchaphon Wanichang, Montathip Srikao, and Punyanuch Kheawkrai, A Congruent Property of Gibonacci Number Modulo Prime, Int'l. J. Analysis Appl. (2023), Vol. 21, No. 24.
Wikipedia, Legendre symbol
FORMULA
a(n) = a(n+1) if and only if Legendre (a(n)|prime(n+2)) = -1.
EXAMPLE
Let f(p) = list of Legendre (p|q) for q = 3, 5, 7, 11, 13, 17, 19, 23, ...
Then f(p) is
p=3: 0, -1, -1, 1, 1, -1, -1, 1, ...
p=5: -1, 0, -1, 1, -1, -1, 1, -1, ...
p=7: 1, -1, 0, -1, -1, -1, 1, -1, ...
p=11: -1, 1, 1, 0, -1, -1, 1, -1, ...
p=13: 1, -1, -1, -1, 0, 1, -1, 1, ...
p=17: -1, -1, -1, -1, 1, 0, 1, -1, ...
p=19: 1, 1, -1, -1, -1, 1, 0, -1, ...
f(5) is the first list that begins with -1, so a(1) = 5.
f(17) is the first list that begins with -1, -1, so a(2) = 17.
MATHEMATICA
Table[p = Prime[n + 2]; While[Length[Select[Prime[Range[2, n + 1]], JacobiSymbol[p, #] == -1 &]] < n, p = NextPrime[p]]; p, {n, 1, 20}]
CROSSREFS
Cf. A237436.
Sequence in context: A303678 A303804 A304851 * A128895 A141558 A304217
KEYWORD
nonn
AUTHOR
Jonathan Sondow, Feb 15 2014
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 2 21:38 EDT 2024. Contains 373051 sequences. (Running on oeis4.)