# Greetings from The On-Line Encyclopedia of Integer Sequences! http://oeis.org/ Search: id:a001986 Showing 1-1 of 1 %I A001986 M5073 N2195 #45 Apr 10 2020 11:36:09 %S A001986 19,43,43,67,67,163,163,163,163,163,163,222643,1333963,1333963, %T A001986 2404147,2404147,20950603,51599563,51599563,96295483,96295483, %U A001986 146161723,1408126003,3341091163,3341091163,3341091163,52947440683,52947440683,52947440683,193310265163 %N A001986 Let p be the n-th odd prime. Then a(n) is the least prime congruent to 3 modulo 8 such that Legendre(-a(n), q) = -1 for all odd primes q <= p. %C A001986 Numbers so far are all congruent to 19 mod 24. - _Ralf Stephan_, Jul 07 2003 %C A001986 All terms are congruent to 19 mod 24. - _Jianing Song_, Feb 17 2019 %C A001986 Also a(n) is the least prime r congruent to 3 mod 8 such that the first n odd primes are quadratic nonresidues modulo r. Note that r == 3 (mod 8) implies 2 is a quadratic nonresidue modulo r. See A001992 for the case where r == 5 (mod 8). - _Jianing Song_, Feb 19 2019 %D A001986 N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence). %D A001986 N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence). %H A001986 Jinyuan Wang, Table of n, a(n) for n = 1..56 %H A001986 Michael John Jacobson, Jr., Computational Techniques in Quadratic Fields, Master's thesis, University of Manitoba, Winnipeg, Manitoba, 1995. %H A001986 Michael John Jacobson Jr. and Hugh C. Williams, New quadratic polynomials with high densities of prime values, Math. Comp. 72 (2003), 499-519. %H A001986 D. H. Lehmer, E. Lehmer and D. Shanks, Integer sequences having prescribed quadratic character, Math. Comp., 24 (1970), 433-451. %H A001986 D. H. Lehmer, E. Lehmer and D. Shanks, Integer sequences having prescribed quadratic character, Math. Comp., 24 (1970), 433-451 [Annotated scanned copy] %o A001986 (PARI) isok(p, oddpn) = {forprime(q=3, oddpn, if (kronecker(-p, q) != -1, return (0));); return (1);} %o A001986 a(n) = {my(oddpn = prime(n+1)); forprime(p=3, , if ((p%8) == 3, if (isok(p, oddpn), return (p));););} \\ _Michel Marcus_, Oct 17 2017 %Y A001986 Cf. A001987, A094845, A094846. %Y A001986 Cf. A001992 (the congruent to 5 mod 8 case), A094851, A094852, A094853. %Y A001986 See A094841, A094842, A094843, A094844 for the case where the terms are not restricted to the primes. %K A001986 nonn %O A001986 1,1 %A A001986 _N. J. A. Sloane_ %E A001986 Revised by _N. J. A. Sloane_, Jun 14 2004 %E A001986 a(28)-a(30) from _Jinyuan Wang_, Apr 09 2020 # Content is available under The OEIS End-User License Agreement: http://oeis.org/LICENSE