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!)
A235709 Least prime p < prime(n) with 2^p - 1 a quadratic residue modulo prime(n), or 0 if such a number does not exist. 6
0, 0, 0, 0, 2, 2, 7, 3, 2, 3, 3, 2, 5, 5, 2, 3, 2, 2, 7, 2, 2, 5, 2, 23, 2, 5, 3, 2, 2, 3, 5, 2, 3, 3, 3, 5, 2, 11, 2, 5, 2, 2, 2, 2, 3, 3, 11, 3, 2, 2, 3, 2, 2, 2, 5, 2, 7, 3, 2, 3, 3, 5, 3, 2, 2, 3, 5, 2, 2, 2, 7, 2, 3, 2, 7, 2, 3, 2, 3, 2, 2, 2, 2, 2, 3, 2, 3, 2, 11, 5, 2, 2, 5, 2, 5, 2, 7, 5, 3, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,5
COMMENTS
Conjecture: a(n) > 0 for all n > 4.
We have verified this for all n = 5, ..., 10^8.
Note that the conjecture in A234972 implies that for any prime p > 3 there is a prime q < p with 2^q - 1 a quadratic nonresidue modulo p.
LINKS
EXAMPLE
a(8) = 3 since 2^3 - 1 = 7 is a quadratic residue modulo prime(8) = 19, but 2^2 - 1 = 3 is not.
MATHEMATICA
Do[Do[If[JacobiSymbol[2^(Prime[k])-1, Prime[n]]==1, Print[n, " ", Prime[k]]; Goto[aa]], {k, 1, n-1}]; Print[n, " ", 0]; Label[aa]; Continue, {n, 1, 100}]
CROSSREFS
Sequence in context: A014840 A218756 A317329 * A341760 A342453 A370393
KEYWORD
nonn
AUTHOR
Zhi-Wei Sun, Apr 20 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 April 19 09:23 EDT 2024. Contains 371782 sequences. (Running on oeis4.)