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 identitiesand Theorem 2. For any prime p with, we have the asymptotic formulasandwhere 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
For any character
, note that the estimate
; from (
2) and (
4), we have the estimate
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
, 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
It is clear that Theorem 1 follows from Formulas (
6) and (
7). □
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
Combining (
8) and (
9) and Lemma 1, we have the asymptotic formula
where
.
If
, then
; from (
8) and (
9), Lemmas 1 and 2, we have the asymptotic formula
where
.
On the other hand, note that the identity
From (
8)–(
12), we have the asymptotic formulas
where
and
.
It is clear that Theorem 2 follows from asymptotic Formulas (
10), (
11) and (
13). □
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.