Using elementary methods, we count the quadratic residues of a prime number of the form p=4n−1 in a manner that has not been explored before. The simplicity of the pattern found leads to a novel formula for the class number h of the imaginary quadratic field Q(√−p). Such formula is computable and does not rely on the Dirichlet character or the Kronecker symbol at all. Examples are provided and formulas for the sum of the quadratic residues are also found.
Citation: Jorge Garcia Villeda. A computable formula for the class number of the imaginary quadratic field Q(√−p), p=4n−1[J]. Electronic Research Archive, 2021, 29(6): 3853-3865. doi: 10.3934/era.2021065
[1] |
Jorge Garcia Villeda .
A computable formula for the class number of the imaginary quadratic field |
[2] | Fedor Petrov, Zhi-Wei Sun . Proof of some conjectures involving quadratic residues. Electronic Research Archive, 2020, 28(2): 589-597. doi: 10.3934/era.2020031 |
[3] | Hai-Liang Wu, Zhi-Wei Sun . Some universal quadratic sums over the integers. Electronic Research Archive, 2019, 27(0): 69-87. doi: 10.3934/era.2019010 |
[4] |
Zhi-Wei Sun .
New series for powers of |
[5] | Dmitry Krachun, Zhi-Wei Sun . On sums of four pentagonal numbers with coefficients. Electronic Research Archive, 2020, 28(1): 559-566. doi: 10.3934/era.2020029 |
[6] |
Jin-Yun Guo, Cong Xiao, Xiaojian Lu .
On |
[7] | Ilwoo Cho . Certain $*$-homomorphisms acting on unital $C^{*}$-probability spaces and semicircular elements induced by $p$-adic number fields over primes $p$. Electronic Research Archive, 2020, 28(2): 739-776. doi: 10.3934/era.2020038 |
[8] | Lirong Huang, Jianqing Chen . Existence and asymptotic behavior of bound states for a class of nonautonomous Schrödinger-Poisson system. Electronic Research Archive, 2020, 28(1): 383-404. doi: 10.3934/era.2020022 |
[9] | Jiangsheng Hu, Dongdong Zhang, Tiwei Zhao, Panyue Zhou . Balance of complete cohomology in extriangulated categories. Electronic Research Archive, 2021, 29(5): 3341-3359. doi: 10.3934/era.2021042 |
[10] | José Luiz Boldrini, Jonathan Bravo-Olivares, Eduardo Notte-Cuello, Marko A. Rojas-Medar . Asymptotic behavior of weak and strong solutions of the magnetohydrodynamic equations. Electronic Research Archive, 2021, 29(1): 1783-1801. doi: 10.3934/era.2020091 |
Using elementary methods, we count the quadratic residues of a prime number of the form p=4n−1 in a manner that has not been explored before. The simplicity of the pattern found leads to a novel formula for the class number h of the imaginary quadratic field Q(√−p). Such formula is computable and does not rely on the Dirichlet character or the Kronecker symbol at all. Examples are provided and formulas for the sum of the quadratic residues are also found.
Given a prime number
h(−p)=√pπ∞∑r=1χ(r)r,h(−p)=−14p4p∑r=1r⋅(pr), |
where
A formula developed by Cohen [1] [Corollary 5.3.16] provides the class number.
Theorem 1.1. Let
N∑n=1(Dn)⋅(erfc(n√π|D|)+√|D|πne−πn2/|D|) |
where
In Section 2 we will prove the basic lemmas as well as the definition of residue whereas in Section 3 we will establish the main result for the sum of quadratic residues. In Section 4 we establish several formulas for the class number when
If we look at small primes of the form
Definition 2.1. Let
x=⌊x/q⌋⋅q+rq(x). |
Lemma 2.2. Let
(i) If
rp(k2)+rp((2n−k)2)=2r−k+n. |
(ii) If
rp(k2)+rp((2n−k)2)=2r−k−3n+1. |
Proof. Notice that
(2n−k)2≡4n2−4nk+k2−(4n−1)(n−k)(modp)=k2+n−k=hp+r+n−k≡r+n−k(modp). |
Clearly
rp(k2)+rp((2n−k)2)=2r−k+n. |
This proves the first part. For the second part notice also that
(2n−k)2≡r+n−k−4n+1(modp)=r−k−3n+1(modp). |
Clearly
rp(k2)+rp((2n−k)2)=2r−k−3n+1. |
Lemma 2.3. Let
(i) If
rp(k2)+rp((2n−k)2)=2k2−k+n−2mp. |
(ii) If
rp(k2)+rp((2n−k)2)=2k2−k+n−(2m+1)p. |
Proof. (ⅰ)
r−3n+2=k2−mp−3n+2=k2−(m+1)p+n+1≤k. |
By Lemma 2.2,
rp(k2)+rp((2n−k)2)=2r+n−k=2(k2−mp)+n−k=2k2−k+n−2mp. |
(ⅱ) Clearly
rp(k2)+rp((2n−k)2)=2r−k−3n+1=2k2−2mp−k−p+n=2k2−k+n−(2m+1)p. |
Corollary 1. Let
(i) If
rp(k2)+rp((2n−k)2)=2k2−k+n−2mp. |
(ii) If
rp(k2)+rp((2n−k)2)=2k2−k+n−(2m+1)p. |
Proof. Notice that
mp−k<k2−k≤(m+1)p−n−1, |
and by Lemma 2.3 we have the result. The second part is done similarly.
The following notation will be very useful for our future theorems and identities.
Notation. For
Qm=12+12√1+4[(m+1)p−n−1]=12+12√4mp+3p−4Rm=√mpM=⌊n2p⌋. |
The following lemma will allow us to estimate the quadratic residues.
Lemma 2.4. Using the previous notation, consider
n2=Mp+r. |
Assume that
Proof. Clearly
Case
Case
Assume now that
n2=Mp+4n−u=(M+1)p+1−u=y(4n−1)+1−u, | (1) |
hence
n=2y±√4y2−(y+u−1), |
hence there is a non-negative integer
Case
Case
Case
Case
Case
Case
Therefore
The following lemma provides the computation of quadratic residues when
Lemma 2.5. Let
Proof. We will verify that
k⋅(4(4k)−1)≤16k2<16k2+15k−1=(k+1)⋅(4(4k)−1), |
hence
(4k)2=k⋅(4(4k)−1)+k,(4k+1)2=k⋅(4(4k+1)−1)+5k+1,(4k+2)2=k⋅(4(4k+2)−1)+9k+4,(4k+3)2=k⋅(4(4k+3)−1)+13k+9. |
We can see that each of the numbers
The following lemma will allow us to place
Lemma 2.6. Let
(i) For
(ii) If
(iii) If
(iv)
(v)
(vi)
(vii) If
(viii) If
Also
(ix)
(x)
(xi)
Proof. (ⅰ)
(ⅱ) Notice that
(ⅲ) We observe that
(ⅳ) Observe that
(ⅴ) Note that
(ⅵ) If
n2+n(−4M−2)+M+2=0, | (2) |
hence there is a non-negative integer
If
(ⅶ) If
(ⅷ) Clearly
(ⅸ) Observe that
(ⅹ) Note that
(ⅹⅰ) Observe that
Remark 1. Let
|{k∈Z : x<k≤y}|=⌊y⌋−⌊x⌋. |
Remark 2. Let
|{k∈Z : x<k<y}|=⌊y⌋−⌊x⌋. |
Lemma 2.7. Let
(i)
(ii) Either
Proof. From Lemma 2.6,
● Assume now
If
● Assume now
Since
The following theorem provides a formula to compute the sum of the quadratic residues modulo
Theorem 3.1. Let
12p−1∑k=1rp(k2)=−pM−1∑m=0(2m+1)(⌊Rm+1⌋−⌊Rm⌋)−2pM−1∑m=0m(⌊Qm⌋−⌊Rm⌋)+4n3+3n2−n6−Mp(2n−1−2⌊QM−1⌋). | (3) |
Proof. We observe that the sum of quadratic residues from 1 to
2n−1∑k=1rp(k2)=an+n−1∑k=1ak=an+n−1∑k=1bk+n−1∑k=1ck. |
From Corollary 1 we know that
ck={−2mpk∈(Rm,Qm]−(2m+1)pk∈(Qm,Rm+1). |
From Lemma 2.6,
● Case
By Lemma 2.7,
n−1∑k=1ck=∑k∈I∩(M−1⋃m=0(Rm,Qm]∩(Qm,Rm+1))ck=M−1∑m=0(∑k∈I∩(Rm,Qm]ck+∑k∈I∩(Qm,Rm+1)ck)=M−1∑m=0∑k∈I∩(Rm,Qm]ck+M−1∑m=0∑k∈I∩(Qm,Rm+1)ck=M−1∑m=0(−2mp)∑k∈I∩(Rm,Qm]1+M−1∑m=0(−(2m+1)p)∑k∈I∩(Qm,Rm+1)1=−pM−1∑m=02m(⌊Qm⌋−⌊Rm⌋)−pM−1∑m=0(2m+1)(⌊Rm+1⌋−⌊Rm⌋)=−pM−1∑m=02m(⌊Qm⌋−⌊Rm⌋)−pM−1∑m=0(2m+1)(⌊Rm+1⌋−⌊Rm⌋)−2Mp(n−1−⌊QM−1⌋). |
● Case
n−1∑k=1ck=n−2∑k=1ck+cn−1=M−1∑m=0(−(2m+1)p)(⌊Rm+1⌋−⌊Qm⌋)−2Mp+M−1∑m=0(−2mp)(⌊Qm⌋−⌊Rm⌋)=−pM−1∑m=0(2m+1)(⌊Rm+1⌋−⌊Qm⌋)−2Mp−pM−1∑m=02m(⌊Qm⌋−⌊Rm⌋)=−pM−1∑m=02m(⌊Qm⌋−⌊Rm⌋)−2Mp(n−1−⌊QM−1⌋)−pM−1∑m=0(2m+1)(⌊Rm+1⌋−⌊Qm⌋). |
Notice that
n−1∑k=1bk+n2=n−1∑k=1(2k2−k+n)+n2=4n3+3n2−n6, |
we can now put all the pieces together to obtain,
12p−1∑k=1rp(k2)=2n−1∑k=1rp(k2)=an+n−1∑k=1bk+n−1∑k=1ck=4n3+3n2−n6−Mp+n−1∑k=1ck=−pM−1∑m=02m(⌊Qm⌋−⌊Rm⌋)−pM−1∑m=0(2m+1)(⌊Rm+1⌋−⌊Rm⌋)+4n3+3n2−n6−Mp−2Mp(n−1−⌊QM−1⌋)=−pM−1∑m=0(2m+1)(⌊Rm+1⌋−⌊Rm⌋)−2pM−1∑m=0m(⌊Qm⌋−⌊Rm⌋)+4n3+3n2−n6−Mp(2n−1−2⌊QM−1⌋). |
Corollary 2. Under the hypothesis of Theorem 3.1,
12p−1∑k=1rp(k2)=p(M∑m=0⌊Rm⌋+M−1∑m=0⌊Qm⌋)−Mp(2n−1)+p⋅(n2+n)6 |
Proof. From Theorem 3.1,
12p−1∑k=1rp(k2)=−pM−1∑m=0(2m+1)(⌊Rm+1⌋−⌊Rm⌋)−2pM−1∑m=0m(⌊Qm⌋−⌊Rm⌋)+4n3+3n2−n6−Mp(2n−1−2⌊QM−1⌋)=−2pM−1∑m=0m(⌊Rm+1⌋−⌊Rm⌋)−Mp(2n−1−2⌊QM−1⌋)+4n3+3n2−n6−pM−2∑m=0(⌊Rm+1⌋−⌊Qm⌋)=p(M∑m=0⌊Rm⌋+M−1∑m=0⌊Qm⌋)−Mp(2n−1−2⌊QM−1⌋)+4n3+3n2−n6−2Mp⌊RM⌋. |
By Lemma 2.7,
We now establish our formula that allows us to compute the class number for the imaginary quadratic field
Theorem 4.1. Let
h(−p)=(2M+1)(2n−1)−2(M∑m=0⌊Rm⌋+M−1∑m=0⌊Qm⌋)−(n2+n)3. |
Proof. According to the formula
p−1∑k=1rp(k2)=(p2)−p⋅h(−p), |
and Corollary 2, we obtain that
(p2)−p⋅h(−p)=2p(M∑m=0⌊Rm⌋+M−1∑m=0⌊Qm⌋)−2Mp(2n−1)+p⋅(n2+n)3, |
the formula follows.
Corollary 3. Let
γk=k∑m=0⌊Rm⌋+k−1∑m=0⌊Qm⌋ |
then
h(−p)={13(32k2+14k−3)−2γk,p=16k−113(32k2+18k+1)−2γk,p=16k+313(32k2+22k+3)−2γk,p=16k+713(32k2+26k+3)−2γk,p=16k+11. |
Proof. The proof is immediate by applying Theorem 4.1 and Lemma 2.5.
A concise way to compute the class number is
Corollary 4. Let
β0=2⌊12+12√3p−4⌋ |
then
h(−p)={13k∑m=1(64m+6−6⌊Rm⌋−6⌊Qm⌋)−β0+1,p=16k−113k∑m=1(64m+10−6⌊Rm⌋−6⌊Qm⌋)−β0+133,p=16k+313k∑m=1(64m+14−6⌊Rm⌋−6⌊Qm⌋)−β0+5,p=16k+713k∑m=1(64m+18−6⌊Rm⌋−6⌊Qm⌋)−β0+7,p=16k+11. |
Proof. Observe that from Lemma 2.6 and Lemma 2.7,
Example. As a simple example, consider
|
|
||||
|
Hence by using Corollary 3, case
h(−103)=13(32k2+22k+3)−2γk=429−424=5. |
Example. As a more complicated example, consider
β0=1550,50,000∑m=1(64m+6−6⌊Rm⌋−6⌊Qm⌋)=6216, |
and hence by using Corollary 4, case
h(−799,999)=13(6216)−1550+1=523. |
(We used Maple 2019 to compute the sum)
The author has been able to check the formula for the class number for all the primes
As opposed to the Shanks' Baby-Step–Giant-Step method introduced by Shanks in 1969 [6], which is an algorithm, we obtained a specific formula that does not rely on the Dirichlet character
Whereas there does not exists a formula yet for
The author does not have an extension of this class number formula to other discriminants
The author wishes to thank two anonymous reviewers for their insightful suggestions and careful reading of the manuscript. The author also wishes to extend a special thanks to his mom Petra Villeda and Ivette R. for being his source of inspiration.
[1] |
H. Cohen, A Course in Computational Algebraic Number Theory, Volume 138 of Graduate Text in Mathematics, Springer-Verlag, New York, 1993. doi: 10.1007/978-3-662-02945-9
![]() |
[2] | L. E. Dickson, Introduction to the Theory of Numbers, Dover Publ. Inc., New York, 1957. |
[3] |
P. G. L. Dirichlet, Beweis des Satzes, dass jede unbegrenzte arithmetische Progression, deren erstes Glied und Differenz ganze Zahlen ohne gemeinschaftlichen Factor sind, unendlich viele Primzahlen enthält, Volume 1, Cambridge University Press, (2012), 313–342. doi: 10.1017/CBO9781139237338.023
![]() |
[4] | J. Garcia, Sum of quadratic-type residues modulus a prime p=4n−1, work in progress. |
[5] |
W. Narkiewicz, Elementary and Analytic Theory of Algebraic Numbers, Springer, 2004. doi: 10.1007/978-3-662-07001-7
![]() |
[6] | D. Shanks, Class number, a theory of factorization, and genera, 1969 Number Theory Institute (Proc. Sympos. Pure Math., Volume XX, State Univ. New York, Stony Brook, N.Y., 1969), Amer. Math. Soc., (1971), 415–440. |
|
|
||||
|