Proof of some conjectures involving quadratic residues
Fedor Petrov, Zhi-Wei Sun

TL;DR
This paper proves several conjectures by Sun related to quadratic residues modulo odd primes, involving products, residue comparisons, and properties of quadratic fields, advancing understanding of quadratic residue patterns and their algebraic connections.
Contribution
It provides the first proofs of Sun's conjectures on quadratic residues, connecting residue counts with class numbers and fundamental units of quadratic fields.
Findings
Confirmed conjectures involving quadratic residue products and residue comparisons.
Established relationships between residue counts and class numbers of quadratic fields.
Extended results to primes congruent to 3 mod 4 involving triangular numbers.
Abstract
We confirm several conjectures of Sun involving quadratic residues modulo odd primes. For any prime and integer , we prove that \begin{align*}&(-1)^{|\{1\le k<\frac p4:\ (\frac kp)=-1\}|}\prod_{1\le j<k\le(p-1)/2}(e^{2\pi iaj^2/p}+e^{2\pi iak^2/p}) \\=&\begin{cases}1&\text{if}\ p\equiv1\pmod 8,\\\left(\frac ap\right)\varepsilon_p^{-(\frac ap)h(p)}&\text{if}\ p\equiv5\pmod8,\end{cases} \end{align*} and that \begin{align*}&\left|\left\{(j,k):\ 1\le j<k\le\frac{p-1}2\ \&\ \{aj^2\}_p>\{ak^2\}_p\right\}\right| \\&+\left|\left\{(j,k):\ 1\le j<k\le\frac{p-1}2\ \&\ \{ak^2-aj^2\}_p>\frac p2\right\}\right| \\\equiv&\left|\left\{1\le k<\frac p4:\ \left(\frac kp\right)=\left(\frac ap\right)\right\}\right|\pmod2. \end{align*} where is the Legendre symbol, and are the fundamental unit and the class number of the realβ¦
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAnalytic Number Theory Research Β· Algebraic Geometry and Number Theory Β· History and Theory of Mathematics
Accepted by Electron. Res. Arch.
Proof of some conjectures involving quadratic residues
Fedor Petrov and Zhi-Wei Sun
(Fedor Petrov) St. Petersburg Department of Steklov Mathematical Institute of Russian Academy of Sciences, Fontanka 27, 191023, St. Petersburg, Russia
(Zhi-Wei Sun) Department of Mathematics, Nanjing University, Nanjing 210093, Peopleβs Republic of China
Abstract.
We confirm several conjectures of Sun involving quadratic residues modulo odd primes. For any prime and integer , we prove that
[TABLE]
and that
[TABLE]
where is the Legendre symbol, and are the fundamental unit and the class number of the real quadratic field respectively, and is the least nonnegative residue of an integer modulo . Also, for any prime and , we determine
[TABLE]
where denotes the triangular number .
Key words and phrases:
Quadratic residues modulo primes, quadratic fields, roots of unity, permutations, triangular numbers.
2020 Mathematics Subject Classification. Primary 11A15, 05A05; Secondary 11R11, 33B10.
The work is supported by the NSFC-RFBR Cooperation and Exchange Program (grants NSFC 11811530072 and RFBR 18-51-53020-GFEN-a). The second author is also supported by the Natural Science Foundation of China (grant 11971222).
1. Introduction
Let be an odd prime. It is well known that the numbers
[TABLE]
are pairwise incongruent modulo , and they give all the quadratic residues modulo . Recently Z.-W. Sun [7] initiated the study of permutations related to quadratic residues modulo as well as evaluations of related products involving th roots of unity; many of his results in [7] are related to the class number of the quadratic field . In this paper, we confirm some conjectures of Sun [7] in this new direction.
Let be a prime and let . Let with . Recently, Z.-W. Sun [7, Theorem 1.3(ii)] showed that
[TABLE]
where is the Legendre symbol, with is the fundamental unit of the real quadratic field , and with not a square is the class number of the quadratic field with discriminant . Sun [7, Theorem 1.5] also proved that
[TABLE]
Our first theorem confirms [7, Conjecture 6.7].
Theorem 1.1**.**
Let be a prime with , and let . Let be an integer not divisible by .
(i)* If , then*
[TABLE]
(ii)* When , we have*
[TABLE]
Remark 1.1*.*
Let be a prime with . Then by Wilsonβs theorem. We may write with , and . As , we see that . By a result of K. Burde [3], we have
[TABLE]
Thus
[TABLE]
Let be an odd prime. For each we let denote the least nonnegative residue of modulo . Define
[TABLE]
and
[TABLE]
as in [7], where is an ordered pair. Sun [7, Theorem 1.4(i)] showed that
[TABLE]
He also conjectured that (cf. [7, Conjecture 6.1]) if then
[TABLE]
Our second theorem in the case confirms this conjecture.
Theorem 1.2**.**
Let be a prime with , and let with . Then
[TABLE]
Our third theorem was first conjectured by Sun (cf. [7, Conjectures 6.3 and 6.4]).
Theorem 1.3**.**
Let be a prime with .
(i)* We have*
[TABLE]
(ii)* Suppose and write for . Then*
[TABLE]
We will prove Theorems 1.1-1.2 in Section 2. Based on an auxiliary theorem given in Section 3, we are going to prove Theorem 1.3 in Section 4.
2. Proofs of Theorems 1.1-1.2
In 2006, H. Pan [6] obtained the following lemma.
Lemma 2.1**.**
(H. Pan [6])* Let be an odd integer and let be any integer relatively prime to . For each let be the unique with congruent to or modulo . For the permutation on , its sign is given by*
[TABLE]
where is the Jacobi symbol.
Proof of the First Part of Theorem 1.1. As , there is an integer with . For let be the unique with congruent to or modulo . Then is a permutation on , and
[TABLE]
with the aid of Lemma 2.1. In view of K. S. Williams and J. D. Currie [8, (1.4)], we have
[TABLE]
Therefore (1.2) holds in the case . β
Remark 2.1*.*
Our method to prove part (i) of Theorem 1.1 does not work for part (ii) of Theorem 1.1.
Proof of the Second Part of Theorem 1.1. We distinguish two cases.
Case 1. .
In this case,
[TABLE]
So it suffices to show (1.3) for . In view of (1.1) with , we only need to prove that
[TABLE]
As , for each there is a unique integer such that . As , we have . For any distinct , we have (since ) and
[TABLE]
also,
[TABLE]
For , clearly
[TABLE]
and hence
[TABLE]
Thus the sign of the product
[TABLE]
is
[TABLE]
This proves (2.1).
Case 2. .
By the discussion in Case 1, we have
[TABLE]
Let be the element of the Galois group with . Then
[TABLE]
by the evaluation of quadratic Gauss sums (cf. [5, pp.β70-75]). Hence
[TABLE]
where is the norm of with respect to the field extension , and we have used the known results and (cf. [4, p.β185 and p.β187]). Thus, by applying the automorphism to the identity (2.2), we get
[TABLE]
In view of the above, we have proven Theorem 1.1(ii). β
Lemma 2.2**.**
Let be an odd prime, and let with . Then
[TABLE]
Proof. This can be easily checked by distinguishing the cases and for . β
Proof of Theorem 1.2. In view of Lemma 2.2, it suffices to show that
[TABLE]
As , for each there is a unique integer such that and hence . Clearly, . Note that
[TABLE]
If and are distinct elements of , then if and only if and . Thus
[TABLE]
This proves the desired (2.4). β
3. An Auxiliary Theorem
We first need a result of Sun [7].
Lemma 3.1**.**
Let be a prime with odd, and let with . Then
[TABLE]
Proof.
By Sun [7, Theorem 1.4(ii)],
[TABLE]
This implies (3.1) since for any we have
[TABLE]
We are done. β
Theorem 3.2**.**
Let be a prime with odd, and let . Then
[TABLE]
Proof.
Let . By comparing and with , we verify case by case that
[TABLE]
is odd if and only if
[TABLE]
where for an assertion we define
[TABLE]
Note that
[TABLE]
and
[TABLE]
with . Combining the above with (3.1), we finally obtain (3.2). β
4. Proof of Theorem 1.3
Lemma 4.1**.**
Let be a prime with .
(i) (Dirichlet (cf. [5, p.β238]))* If then*
[TABLE]
(ii) (B. C. Berndt and S. Chowla [1])* If , then If , then *
Proof of Theorem 1.3. We just prove the second part in details since the first part can be proved similarly.
Write , and set
[TABLE]
For any , we have
[TABLE]
Thus
[TABLE]
Note that . Set
[TABLE]
Applying Theorem 3.2, from the above we obtain
[TABLE]
When , we have
[TABLE]
and hence (1.8) follows from (4.2).
Below we handle the case . Observe that
[TABLE]
Applying Lemma 4.1, we obtain
[TABLE]
So, in this case, (1.8) also follows from (4.2). β
Acknowledgment. We would like to thank the referee for helpful comments.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] B. C. Berndt and S. Chowla, Zero sums of the Legendre symbol , Nordisk Mat. Tidskr. 22 (1974), 5β8.
- 2[2] B. C. Berndt, R. J. Evans and K. S. Williams, Gauss and Jacobi Sums, Wiley, New York, 1998.
- 3[3] K. Burde, Eine Verteilungseigenschaft der Legendresymbole , J. Number Theory 12 (1980), 273β277.
- 4[4] H. Cohn, Advanced Number Theory, Dover Publ., New York, 1962.
- 5[5] K. Ireland and M. Rosen, A Classical Introduction to Modern Number Theory, 2nd Edition, Grad. Texts. Math., vol. 84, Springer, New York, 1990.
- 6[6] H. Pan, A remark on Zolotarevβs theorem , preprint (2006), ar Xiv:0601026 .
- 7[7] Z.-W. Sun, Quadratic residues and related permutations and identities , Finite Fields Appl. 59 (2019), 246β283.
- 8[8] K. S. Williams and J. D. Currie, Class numbers and biquadratic reciprocity , Canad. J. Math. 34 (1982), 969β988.
