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!)
A025021 Numbers whose least quadratic nonresidue (A020649) is 3. 11
7, 14, 17, 31, 34, 41, 49, 62, 79, 82, 89, 98, 103, 113, 119, 127, 137, 151, 158, 161, 178, 199, 206, 217, 223, 226, 233, 238, 254, 257, 271, 274, 281, 287, 289, 302, 322, 329, 343, 353, 367, 391, 398, 401, 434, 439, 446, 449, 463, 466, 487, 497, 511, 514, 521, 527, 542 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
n such that n is not divisible by 4, all primes dividing n are in A038873, and at least one prime dividing n is in A003630. - Robert Israel, Jul 19 2017
LINKS
Eric Weisstein's World of Mathematics, Quadratic Nonresidue.
MAPLE
select(t -> numtheory:-quadres(2, t) = 1 and numtheory:-quadres(3, t)=-1, [$1..1000]); # Robert Israel, Jul 19 2017
MATHEMATICA
Select[Range[500], Min @ Complement[Range[# - 1], Mod[Range[#/2]^2, #]] == 3 &] (* Amiram Eldar, Oct 31 2020 *)
PROG
(PARI) residue(n, m)={local(r); r=0; for(i=1, floor(m/2), if(i^2%m==n, r=1)); r}
isA025021(n)=residue(2, n) && !residue(3, n) \\ Michael B. Porter, Apr 18 2010
CROSSREFS
Sequence in context: A092433 A056203 A178732 * A326767 A131439 A213604
KEYWORD
nonn
AUTHOR
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 15:11 EDT 2024. Contains 371794 sequences. (Running on oeis4.)