login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 


A330423
Least nonsquare k that is a quadratic residue modulo n and is coprime to n.
2
2, 3, 7, 5, 6, 7, 2, 17, 7, 11, 3, 13, 3, 11, 19, 17, 2, 7, 5, 21, 22, 3, 2, 73, 6, 3, 7, 29, 5, 19, 2, 17, 31, 13, 11, 13, 3, 5, 10, 41, 2, 37, 6, 5, 19, 3, 2, 73, 2, 11, 13, 17, 6, 7, 14, 57, 7, 5, 3, 61, 3, 5, 22, 17, 14, 31, 6, 13, 13, 11, 2, 73, 2, 3, 19, 5, 15
OFFSET
1,1
COMMENTS
a(n) > n if and only if n is in A303704.
It seems that lim_{n->oo} a(n)/n = 0. Conjectured last term m such that a(m)/m > 1/k, k = 1, 2, 3, ...: 840, 1680, 2640, 9240, 10920, 10920, 18480, 18480, 21840, 29640, ...
LINKS
EXAMPLE
k is a coprime quadratic residue modulo 16 if and only if k == 1 (mod 8). Since 1 and 9 are squares, a(16) = 17.
k is a coprime quadratic residue modulo 24 if and only if k == 1 (mod 24). Since 1, 25 and 49 are squares, a(24) = 73.
k is a coprime quadratic residue modulo 840 if and only if k == 1, 121, 169, 289, 361, 529 (mod 840). Since 1, 121, 169, 289, 361, 529, 841, 961 are squares, a(840) = 840+169 = 1009.
PROG
(PARI) a(n) = my(k=1); while(!issquare(Mod(k, n)) || issquare(k) || gcd(k, n)>1, k++); k
CROSSREFS
Sequence in context: A205299 A222242 A069771 * A235801 A076986 A333386
KEYWORD
nonn
AUTHOR
Jianing Song, Dec 14 2019
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | 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 September 22 14:04 EDT 2024. Contains 376114 sequences. (Running on oeis4.)