Next Article in Journal
Chebyshev-Type Integral Inequalities for Continuous Fields of Operators Concerning Khatri–Rao Products and Synchronous Properties
Next Article in Special Issue
Euler–Catalan’s Number Triangle and Its Application
Previous Article in Journal
Convergence and Dynamics of a Higher-Order Method
Previous Article in Special Issue
A Note on Weakly S-Noetherian Rings
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

The Quadratic Residues and Some of Their New Distribution Properties

1
College of Science, Northwest A&F University, No.22 Xinong Road, Yangling 712100, China
2
School of Mathematics, Northwest University, Xi’an 710127, China
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Symmetry 2020, 12(3), 421; https://doi.org/10.3390/sym12030421
Submission received: 17 February 2020 / Revised: 1 March 2020 / Accepted: 3 March 2020 / Published: 5 March 2020

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 mod   p . The main methods we used are the properties of the Legendre’s symbol mod   p , 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 ( a , p ) = 1 (i.e., a co-prime to p), if there exists an integer x such that the congruence x 2 a mod   p , then a is called a quadratic residue mod   p . Otherwise, a is called a quadratic non-residue mod   p . In order to facilitate the study of the properties of quadratic residues mod   p , Legendre first introduced the characteristic function of the quadratic residues mod   p . The defination of Legendre’s symbol p is that, for any integer a,
a p = 1 , if a is a quadratic residues   mod   p ; 1 , if a is a quadratic non-residues   mod   p ; 0 if p 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 mod   p 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 mod   p is less than p 1 4 + ε , where ε denotes any fixed positive number. The constant 1 4 has been improved by some authors, see references [5,6,7].
Let p 3 be a prime satisfying p = 4 k + 1 . For any quadratic residue r mod p and quadratic non-residue s mod p , it holds that (see [2]: Theorems 4–11)
1 2 a = 1 p 1 a + r a ¯ p 2 + 1 2 a = 1 p 1 a + s a ¯ p 2 = p ,
where a ¯ is satisfied with the equation a ¯ · a 1 mod p .
Some papers as regards quadratic residues and non-residues mod   p 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 p 101 , there is at least one integer a, such that a, a + a ¯ and a a ¯ are all quadratic residues mod   p ?
B. For any prime p 18 , there is at least one quadratic non-residue a mod p , such that a + a ¯ and a a ¯ are quadratic residues mod   p ?
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 mod   p .
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 mod   p .
As application of our results, we solve them thoroughly. We actually proved two stronger conclusions. For narrative purposes, let p denote any odd prime S ( p , 1 ) denote the number of all integers 1 a p 1 such that a, a + a ¯ , and a a ¯ are all quadratic residues mod   p , S ( p , 1 ) denotes the number of all integers 1 a p 1 such that a is a quadratic non-residue mod   p , a + a ¯ and a a ¯ are quadratic residues mod   p .

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 mod   p .
Theorem 1.
For any prime p with p 3   mod   4 , we have the identities
S ( p , 1 ) = 1 8 p 3 , if   p 3   mod   8 ; 1 8 p 7 , if   p 7   mod   8
and
S ( p , 1 ) = 1 8 p 3 , if   p 3   mod   8 ; 1 8 p + 1 , if   p 7   mod   8 .
Theorem 2.
For any prime p with p 1   mod   4 , we have the asymptotic formulas
S ( p , 1 ) = 1 8 p 3 + K ( p , 1 ) , if   p 5   mod   8 ; 1 8 p 17 + K 1 ( p , 1 ) , if   p 1   mod   8
and
S ( p , 1 ) = 1 8 p + 3 + K ( p , 1 ) , if   p 5   mod   8 ; 1 8 p + 3 + K 1 ( p , 1 ) , if   p 1   mod   8 ,
where we have the estimates | K ( p , 1 ) | 3 4 · p , | K 1 ( p , 1 ) | 5 4 · p , | K ( p , 1 ) | 3 4 · p and | K 1 ( p , 1 ) | 5 4 · p .
From Theorems 1 and 2 and some simple calculations, we can deduce the following two corollaries:
Corollary 1.
For any prime p 101 , there is at least one integer a, such that a, a + a ¯ and a a ¯ are all quadratic residues mod   p .
Corollary 2.
For any prime p 18 , there is at least one quadratic non-residue a   mod   p , such that a + a ¯ and a a ¯ are quadratic residues mod   p .
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 p 1   mod   4 ; then, for any integer k with ( k , p ) = 1 , we have the identity
a = 1 p 1 a 2 + k p = 1 k p .
Proof of Lemma 1.
Note that, for any integer a with ( a , p ) = 1 , there is a p = a ¯ p . Using the properties of the Legendre’s symbol and reduced residue system mod   p , we have
a = 1 p 1 a 2 + k p = a = 1 p 1 1 + a p a + k p = a = 1 p 1 a + k p + a = 1 p 1 a 2 + a k p = a = 0 p 1 a + k p + a = 1 p 1 1 + a ¯ k p k p = a = 1 p 1 1 + a p k p = a = 0 p 1 1 + a p k p 1 = 1 k p .
This proves Lemma 1. □
Lemma 2.
Let p be a prime with p 1   mod   4 ; then, we have the estimate
a = 1 p 1 a ± a ¯ p 2 · p   a n d   a = 1 p 1 a 4 1 p a p 4 · p .
Proof of Lemma 2.
Let f ( x ) = x 3 ± x ; then, f ( x ) is not a complete square of an integral coefficient polynomial g ( x ) . Thus, from Weil’s important work [17], we have
a = 1 p 1 a ± a ¯ p = a = 1 p 1 a ± a ¯ p a 2 p = a = 1 p 1 a 3 ± a p 2 · p .
Of course, for any prime p = 4 k + 1 , note that 1 and 1 are two quadratic residues mod   p , so, from identity (1), we can also deduce the above estimate.
This proves the first estimate in Lemma 2.
Now, let χ 2 = p , e ( y ) = e 2 π i y , τ ( χ ) = a = 1 p 1 χ ( a ) e a p denote the classical Gauss sums. Then, note that τ ( χ 2 ) = p ; from the properties of τ ( χ ) , we have
a = 1 p 1 a p a 4 1 p = 1 τ χ ¯ 2 a = 1 p 1 a p b = 1 p 1 b p e b a 4 1 p = 1 p b = 1 p 1 b p e b p a = 1 p 1 a p e b a 4 p .
Let g denote a primitive root mod   p , r = g p 1 4 . It is clear that, if p = 8 k + 5 , then r is a quadratic non-residue mod   p and r 4 1   mod   p . Thus, in this case, for any integer 1 b p 1 , we have
a = 1 p 1 a p e b a 4 p = a = 1 p 1 a r p e b ( r a ) 4 p = a = 1 p 1 a p e b a 4 p
or
a = 1 p 1 a p e b a 4 p = 0 .
If p = 8 k + 1 , then r is a quadratic residue mod   p . Thus, in this case, there must be a character χ 1   mod   p such that χ 1 4 = p . Let λ be a fourth-order character mod   p (That is, λ 4 = χ 0 is the principal character mod   p ); then, from the properties of the Gauss sums and character sums mod   p , we have
a = 1 p 1 a p e b a 4 p = a = 1 p 1 χ 1 4 ( a ) e b a 4 p = a = 1 p 1 χ 1 a 4 e b a 4 p = a = 1 p 1 χ 1 ( a ) 1 + λ ( a ) + λ 2 ( a ) + λ 3 ( a ) e b a p = χ ¯ 1 ( b ) τ χ 1 + χ ¯ 1 ( b ) λ ¯ ( b ) τ χ 1 λ + χ ¯ 1 ( b ) λ ¯ 2 ( b ) τ χ 1 λ 2 + χ ¯ 1 ( b ) λ ¯ 3 ( b ) τ χ 1 λ 3 .
For any character χ   mod   p , note that the estimate | τ ( χ ) | p ; from (2) and (4), we have the estimate
a = 1 p 1 a p a 4 1 p = 1 p b = 1 p 1 b p e b p a = 1 p 1 a p e b a 4 p τ χ 1 τ χ ¯ 1 χ 2 p + τ χ 1 λ τ χ ¯ 1 λ ¯ χ 2 p + τ χ 1 λ 2 τ χ ¯ 1 λ ¯ 2 χ 2 p + τ χ 1 λ 3 τ χ ¯ 1 λ ¯ 3 χ 2 p 4 · p .
Now, the second estimate in Lemma 2 follows from (2), (3) and (5). □

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 p 3   mod   4 , note that 1 p = 1 , so, for all integers 1 a p 1 , we have a + a ¯ , p = 1 or a 2 + 1 , p = 1 . If a = 1 or p 1 , then a a ¯ = 0 , and a 2 1 , p = 1 for all integers 2 a p 2 . Note that the identities
a = 1 p 1 a 4 1 p = a = 1 p 1 1 a ¯ 4 p = a = 1 p 1 1 a 4 p = a = 1 p 1 a 4 1 p = 0 ,
a = 1 p 1 a p a 2 a ¯ 2 p = a = 1 p 1 a p a 2 a ¯ 2 p = a = 1 p 1 a p a 2 a ¯ 2 p = 0 ,
a = 1 p 1 a + a ¯ p = a = 1 p 1 a a ¯ p = a = 1 p 1 a a ¯ p = a = 1 p 1 a + a ¯ p = 0 ,
from Lemma 1, the definitions of S(p,1) and quadratic residues mod   p we have
S ( p , 1 ) = 1 8 a = 2 p 2 1 + a p 1 + a + a ¯ p 1 + a a ¯ p = p 3 8 + 1 8 a = 2 p 2 a p + 1 8 a = 2 p 2 a + a ¯ p + 1 8 a = 2 p 2 a a ¯ p + 1 8 a = 2 p 2 a 2 a ¯ 2 p + 1 8 a = 2 p 2 a 2 + 1 p + 1 8 a = 2 p 2 a 2 1 p + 1 8 a = 2 p 2 a p a 2 a ¯ 2 p = p 3 8 + 1 8 a = 1 p 1 a p + 1 8 a = 1 p 1 a + a ¯ p + 1 8 a = 1 p 1 a a ¯ p 1 4 2 p + 1 8 a = 1 p 1 a 2 + 1 p + 1 8 a = 1 p 1 a 2 1 p + 1 8 a = 1 p 1 a p a 2 a ¯ 2 p + 1 8 a = 1 p 1 a 4 1 p = p 3 8 1 4 2 p 1 8 + 1 8 a = 0 p 1 a 2 + 1 p = 1 8 p 5 2 2 p = 1 8 p 3 , if   p 3   mod   8 ; 1 8 p 7 , if   p 7   mod   8 .
Similarly, from the methods of proving (6), we have the computational formula
S ( 1 , p ) = 1 8 a = 2 p 2 1 a p 1 + a + a ¯ p 1 + a a ¯ p = 1 4 a = 2 p 2 1 + a + a ¯ p 1 + a a ¯ p S ( p , 1 ) = p 3 4 + 1 4 a = 1 p 1 a + a ¯ p + 1 4 a = 1 p 1 a a ¯ p + 1 4 a = 1 p 1 a 2 a ¯ 2 p S ( p , 1 ) = 1 8 p 1 + 2 2 p = 1 8 p 3 , if   p 3   mod   8 ; 1 8 p + 1 , if   p 7   mod   8 .
It is clear that Theorem 1 follows from Formulas (6) and (7). □
Proof of Theorem 2.
If p 1   mod   4 , then a + a ¯ 0   mod   p has two solutions λ and λ with λ ± 1 . Thus, note that 1 p = 1 ; from the definition of S ( p , 1 ) and the properties of the Legendre’s symbol mod   p , we have
S ( p , 1 ) = 1 8 a = 2 p 1 a + a ¯ , p = 1 1 + a p 1 + a + a ¯ p 1 + a a ¯ p = p 5 8 + 1 8 a = 2 p 2 a p + 1 8 a = 2 p 2 a + a ¯ p + 1 8 a = 2 p 2 a a ¯ p + 1 8 a = 2 p 2 a 2 a ¯ 2 p + 1 8 a = 2 p 2 a 2 + 1 p + 1 8 a = 2 p 2 a 2 1 p + 1 8 a = 2 p 2 a p a 2 a ¯ 2 p 1 4 1 + λ p 1 + 2 λ p = p 7 8 + 1 8 a = 1 p 1 a + a ¯ p + 1 8 a = 1 p 1 a a ¯ p 1 2 2 p + 1 8 a = 1 p 1 a 2 + 1 p + 1 8 a = 1 p 1 a 2 1 p + 1 8 a = 1 p 1 a p a 2 a ¯ 2 p + 1 8 a = 1 p 1 a 4 1 p 1 4 1 + λ p + 2 λ p + 2 p = p 13 8 + 1 8 1 + λ p a = 1 p 1 a + a ¯ p 3 4 2 p + 1 8 a = 1 p 1 a p a 4 1 p 1 4 1 + 2 p λ p + 1 8 a = 1 p 1 1 + a p a 2 1 p .
When p = 8 k + 5 , we have 2 p = λ p = 1 ; from Lemma 2, we have
a = 1 p 1 a p a 4 1 p + a = 1 p 1 a p a 2 1 p 4 · p + a = 1 p 1 a a ¯ p 6 · p .
Combining (8) and (9) and Lemma 1, we have the asymptotic formula
S ( p , 1 ) = 1 8 ( p 9 ) + K ( p , 1 ) ,
where | K ( p , 1 ) | 3 4 · p .
If p = 8 k + 1 , then 2 p = λ p = 1 ; from (8) and (9), Lemmas 1 and 2, we have the asymptotic formula
S ( p , 1 ) = 1 8 ( p 25 ) + K 1 ( p , 1 ) ,
where | K 1 ( p , 1 ) | 5 4 · p .
On the other hand, note that the identity
S ( p , 1 ) = 1 8 a = 2 p 1 a + a ¯ , p = 1 1 a p 1 + a + a ¯ p 1 + a a ¯ p = 1 4 a = 2 p 1 a + a ¯ , p = 1 1 + a + a ¯ p 1 + a a ¯ p S ( p , 1 ) = p 5 4 + 1 4 a = 1 p 1 a + a ¯ p + 1 4 a = 1 p 1 a a ¯ p 2 p 1 2 + 1 4 a = 1 p 1 a p a 2 1 p S ( p , 1 ) .
From (8)–(12), we have the asymptotic formulas
S ( p , 1 ) = 1 8 p + 3 + K ( p , 1 ) , if   p 5   mod   8 ; 1 8 p + 3 + K 1 ( p , 1 ) , if   p 1   mod   8 ,
where | K ( p , 1 ) | 3 4 · p and | K 1 ( p , 1 ) | 5 4 · p .
It is clear that Theorem 2 follows from asymptotic Formulas (10), (11) and (13). □
To prove Corollary 1, we only require S ( p , 1 ) > 0 . That is,
1 8 ( p 17 ) > 5 4 · p .
This inequality implies that S ( p , 1 ) > 0 for all primes p > 144 .
It is easy to verify S ( p , 1 ) > 0 for all 101 p 143 by simple calculation.
Thus, Zhiwei Sun’s problem A is correct for all primes p 101 .
Similarly, we can also prove that the problem B is also correct for all primes p 18 . 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 S ( p , 1 ) and S ( p , 1 ) with p = 4 k + 3 . Theorem 2 establishes two asymptotic formulas for S ( p , 1 ) and S ( p , 1 ) with p = 4 k + 1 . 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 p 101 , there is at least one integer a, such that a, a + a ¯ and a a ¯ are all quadratic residues mod   p .
ii
For any prime p 18 , there is at least one quadratic non-residue a   mod   p , such that a + a ¯ and a a ¯ are quadratic residues mod   p .
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

  1. Apostol, T.M. Introduction to Analytic Number Theory; Springer: New York, NY, USA, 1976. [Google Scholar]
  2. Zhang, W.P.; Li, H.L. Elementary Number Theory; Shaanxi Normal University Press: Xi’an, China, 2013. [Google Scholar]
  3. Burgess, D.A. The distribution of quadratic residues and non-residues. Mathematika 1957, 4, 106–112. [Google Scholar] [CrossRef]
  4. Burgess, D.A. A note on the distribution of residues and non-residues. J. Lond. Math. Soc. 1963, 38, 253–256. [Google Scholar] [CrossRef]
  5. 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] [Green Version]
  6. Schinzel, A. Primitive roots and quadratic non-residues. Acta Arith. 2011, 149, 161–170. [Google Scholar] [CrossRef] [Green Version]
  7. Yuk-Kam, L.; Jie, W. On the least quadratic non-residue. Int. J. Number Theory 2008, 4, 423–435. [Google Scholar]
  8. Ankeny, N.C. The least quadratic non-residue. Ann. Math. 1952, 55, 65–72. [Google Scholar] [CrossRef]
  9. 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]
  10. Peralta, R. On the distribution of quadratic residues and non-residues nodulo a prime number. Math. Comput. 1992, 58, 433–440. [Google Scholar] [CrossRef]
  11. Wright, S. Quadratic residues and non-residues in arithmetic progression. J. Number Theory 2013, 133, 2398–2430. [Google Scholar] [CrossRef] [Green Version]
  12. 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]
  13. Kohnen, W. An elementary proof in the theory of quadratic residues. Bull. Korean Math. Soc. 2008, 45, 273–275. [Google Scholar] [CrossRef] [Green Version]
  14. Hummel, P. On consecutive quadratic non-residues: A conjecture of Issai Schur. J. Number Theory 2003, 103, 257–266. [Google Scholar] [CrossRef] [Green Version]
  15. 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] [Green Version]
  16. Hudson, R.H. On sequences of consecutive quadratic nonresidues. J. Number Theory 1971, 3, 178–181. [Google Scholar] [CrossRef] [Green Version]
  17. Weil, A. On some exponential sums. Proc. Natl. Acad. Sci. USA 1948, 34, 203–210. [Google Scholar] [CrossRef] [PubMed] [Green Version]

Share and Cite

MDPI and ACS Style

Wang, T.; Lv, X. The Quadratic Residues and Some of Their New Distribution Properties. Symmetry 2020, 12, 421. https://doi.org/10.3390/sym12030421

AMA Style

Wang T, Lv X. The Quadratic Residues and Some of Their New Distribution Properties. Symmetry. 2020; 12(3):421. https://doi.org/10.3390/sym12030421

Chicago/Turabian Style

Wang, Tingting, and Xingxing Lv. 2020. "The Quadratic Residues and Some of Their New Distribution Properties" Symmetry 12, no. 3: 421. https://doi.org/10.3390/sym12030421

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop