Abstract
In this paper, we give some interesting identities and asymptotic formulas for one kind of counting function, by studying the computational problems involving the symmetry sums of one kind quadratic residues and quadratic non-residues . The main methods we used are the properties of the Legendre’s symbol , and the estimate for character sums. As application, we solve two open problems proposed by Zhiwei Sun.
1. Introduction
Let p be an odd prime. For any integer a satisfying (i.e., a co-prime to p), if there exists an integer x such that the congruence , then a is called a quadratic residue . Otherwise, a is called a quadratic non-residue . In order to facilitate the study of the properties of quadratic residues , Legendre first introduced the characteristic function of the quadratic residues . The defination of Legendre’s symbol is that, for any integer a,
We can find various interesting properties of the quadratic residues and Legendre’s symbol in number theory books such as [1,2].
In fact, the properties of quadratic residues and Legendre’s symbol are very meaningful in number theory, which attract attention of many experts and scholars. Valuable research results about them have been obtained. For example, Burgess [3,4] proved that the least quadratic non-residue is less than , where denotes any fixed positive number. The constant has been improved by some authors, see references [5,6,7].
Let be a prime satisfying . For any quadratic residue and quadratic non-residue , it holds that (see [2]: Theorems 4–11)
where is satisfied with the equation .
Some papers as regards quadratic residues and non-residues can be found in references [8,9,10,11,12,13,14,15,16].
Recently, Zhiwei Sun proposed two conjectures during his communication with us:
A. For any prime , there is at least one integer a, such that a, and are all quadratic residues ?
B. For any prime , there is at least one quadratic non-residue , such that and are quadratic residues ?
Zhiwei Sun carried out some numerical tests to support his conjectures but cannot prove them. In this paper, we concern about problems involving quadratic residues and non-residues .
We think Zhiwei Sun’s conjectures not only show the symmetry of quadratic residues and non-residues but also reveal their profound distribution properties of the quadratic residues and non-residues .
As application of our results, we solve them thoroughly. We actually proved two stronger conclusions. For narrative purposes, let p denote any odd prime denote the number of all integers such that a, , and are all quadratic residues , denotes the number of all integers such that a is a quadratic non-residue , and are quadratic residues .
2. Results
The notations are as above. We prove our main results using elementary methods, the estimate for character sums, and the properties of Legendre’s symbol .
Theorem 1.
For any prime p with, we have the identities
and
Theorem 2.
For any prime p with, we have the asymptotic formulas
and
where we have the estimates,,and.
From Theorems 1 and 2 and some simple calculations, we can deduce the following two corollaries:
Corollary 1.
For any prime, there is at least one integer a, such that a,andare all quadratic residues.
Corollary 2.
For any prime, there is at least one quadratic non-residue, such thatandare quadratic residues.
Thus, we solved two problems proposed by professor Zhiwei Sun.
3. Several Lemmas
To complete the proofs of our main results, we need the following two basic lemmas.
Lemma 1.
Let p be a prime with; then, for any integer k with, we have the identity
Proof of Lemma 1.
Note that, for any integer a with , there is . Using the properties of the Legendre’s symbol and reduced residue system , we have
This proves Lemma 1. □
Lemma 2.
Let p be a prime with; then, we have the estimate
Proof of Lemma 2.
Let ; then, is not a complete square of an integral coefficient polynomial . Thus, from Weil’s important work [17], we have
Of course, for any prime , note that 1 and are two quadratic residues , so, from identity (1), we can also deduce the above estimate.
This proves the first estimate in Lemma 2.
Now, let , , denote the classical Gauss sums. Then, note that ; from the properties of , we have
Let g denote a primitive root , . It is clear that, if , then r is a quadratic non-residue and . Thus, in this case, for any integer , we have
or
If , then r is a quadratic residue . Thus, in this case, there must be a character such that . Let be a fourth-order character (That is, is the principal character ); then, from the properties of the Gauss sums and character sums , we have
4. Proofs of the Theorems
In this section, we shall complete the proofs of our main results.
Proof of Theorem 1.
For any prime p with , note that , so, for all integers , we have or . If or , then , and for all integers . Note that the identities
from Lemma 1, the definitions of S(p,1) and quadratic residues we have
Similarly, from the methods of proving (6), we have the computational formula
Proof of Theorem 2.
If , then has two solutions and with . Thus, note that ; from the definition of and the properties of the Legendre’s symbol , we have
When , we have ; from Lemma 2, we have
On the other hand, note that the identity
To prove Corollary 1, we only require . That is,
This inequality implies that for all primes .
It is easy to verify for all by simple calculation.
Thus, Zhiwei Sun’s problem A is correct for all primes .
Similarly, we can also prove that the problem B is also correct for all primes . This completes the proofs of our all results.
5. Conclusions
The main results of this paper are two theorems. Theorem 1 establishes two exact formulas for and with . Theorem 2 establishes two asymptotic formulas for and with . At the same time, we give two sharp upper bound estimates for the error terms. As application, we obtain two conclusions as follows:
- i
- For any prime , there is at least one integer a, such that a, and are all quadratic residues .
- ii
- For any prime , there is at least one quadratic non-residue , such that and are quadratic residues .
Therefore, we solved two problems proposed by Zhiwei Sun.
Author Contributions
All authors have equally contributed to this work. All authors read and approved the final manuscript.
Funding
This research was funded by the Y. S. T. N. S. P (2019KJXX-076), the N. S. B. R. P. (2019JM-207) of Shaanxi Province and the N. S. F. (11771351) of P. R. China.
Acknowledgments
The authors would like to thank the referee for their very helpful and detailed comments.
Conflicts of Interest
The authors declare no conflict of interest.
References
- Apostol, T.M. Introduction to Analytic Number Theory; Springer: New York, NY, USA, 1976. [Google Scholar]
- Zhang, W.P.; Li, H.L. Elementary Number Theory; Shaanxi Normal University Press: Xi’an, China, 2013. [Google Scholar]
- Burgess, D.A. The distribution of quadratic residues and non-residues. Mathematika 1957, 4, 106–112. [Google Scholar] [CrossRef]
- Burgess, D.A. A note on the distribution of residues and non-residues. J. Lond. Math. Soc. 1963, 38, 253–256. [Google Scholar] [CrossRef]
- Balister, P.; Bollobas, B.; Jonathan, L.D. A note on Linnik’s theorem on quadratic non-residues. Arch. Math. 2019, 112, 371–375. [Google Scholar] [CrossRef]
- Schinzel, A. Primitive roots and quadratic non-residues. Acta Arith. 2011, 149, 161–170. [Google Scholar] [CrossRef][Green Version]
- Yuk-Kam, L.; Jie, W. On the least quadratic non-residue. Int. J. Number Theory 2008, 4, 423–435. [Google Scholar]
- Ankeny, N.C. The least quadratic non-residue. Ann. Math. 1952, 55, 65–72. [Google Scholar] [CrossRef]
- Graham, S.W.; Ringerse, C.J. Lower bound for least quadratic non-residues. In Aanlytic Number Theory: Proceedings of a Conference in Honor of P. T. Bateman; Book Series: Progress in Mathematics; Birkhäuser Boston: Cambridge, MA, USA, 1990; Volume 85, pp. 269–309. [Google Scholar]
- Peralta, R. On the distribution of quadratic residues and non-residues nodulo a prime number. Math. Comput. 1992, 58, 433–440. [Google Scholar] [CrossRef]
- Wright, S. Quadratic residues and non-residues in arithmetic progression. J. Number Theory 2013, 133, 2398–2430. [Google Scholar] [CrossRef][Green Version]
- Soydan, G.; Demirci, M.; Ikikardes, N.Y. On the additive structure of the set of quadratic residues modulo p. Adv. Stud. Contemp. Math. 2007, 14, 251–257. [Google Scholar]
- Kohnen, W. An elementary proof in the theory of quadratic residues. Bull. Korean Math. Soc. 2008, 45, 273–275. [Google Scholar] [CrossRef][Green Version]
- Hummel, P. On consecutive quadratic non-residues: A conjecture of Issai Schur. J. Number Theory 2003, 103, 257–266. [Google Scholar] [CrossRef][Green Version]
- Garaev, M.Z. A note on the least quadratic non-residue of the integer-sequences. Bull. Aust. Math. Soc. 2003, 68, 1–11. [Google Scholar] [CrossRef]
- Hudson, R.H. On sequences of consecutive quadratic nonresidues. J. Number Theory 1971, 3, 178–181. [Google Scholar] [CrossRef][Green Version]
- Weil, A. On some exponential sums. Proc. Natl. Acad. Sci. USA 1948, 34, 203–210. [Google Scholar] [CrossRef] [PubMed]
© 2020 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).