betaFeedback

WorksMathematics

On the average of class numbers of indefinite binary quadratic forms

Abstract

We prove that the sum of class numbers of primitive indefinite binary quadratic forms with integer coefficients over positive nonsquare discriminants less than XX is O(X3/2log⁡log⁡X/(log⁡X)3/2)O(X^{3/2}\sqrt{\log\log X}/(\log X)^{3/2}). This improves the longstanding classical upper bound O(X3/2/log⁡X)O(X^{3/2}/\log X) and implies the same upper bound for the corresponding sum over real quadratic fields. Our main input is a uniform upper bound for the number of small fundamental solutions to Pell's equation. In particular, we prove that, for almost all nonsquare positive integers DD, the fundamental solution εD\varepsilon_D of t2−Du2=1t^2-Du^2=1 is larger than any fixed power of DD.

Introduction

Average of class numbers

Let D\mathcal{D} be the set of positive nonsquare integers congruent to 0 or 1 modulo 4. For D∈DD \in\mathcal{D}, write h+(D)h^+(D) for the number of SL⁡2(Z)\operatorname{SL}_2(\mathbb{Z})-classes of primitive indefinite binary quadratic forms Ax2+Bxy+Cy2Ax^2+Bxy+Cy^2 with integer coefficients and discriminant B2−4AC=DB^2-4AC=D. We study the sum

S+(X)=∑D∈DD<Xh+(D).S^+(X)=\sum_{\substack{D\in\mathcal{D}\\D<X}}h^+(D).

Let KK be a real quadratic field with ring of integers OK\mathcal{O}_K, discriminant DKD_K, and ideal class number h(K)=#Cl⁡(K)h(K)=\#\operatorname{Cl}(K). Put

S(X)=∑K/Q quadratic0<DK<Xh(K).S(X)=\sum_{\substack{K/\mathbb{Q}\ \mathrm{quadratic}\\0<D_K<X}} h(K).

The correspondence between forms and ideals identifies h+(DK)h^{+}(D_K) with the narrow class number of KK (see Lamzouri [31 p. 566]), so

h(K)≤h+(DK)≤2h(K).h(K)\le h^{+}(D_K)\le2h(K).

Thus

S(X)≤∑D∈D, D<XD fundamentalh+(D)≤S+(X).(1)S(X)\le\sum_{\substack{D\in\mathcal{D},\ D<X\\D\ \mathrm{fundamental}}}h^{+}(D)\le S^{+}(X). \tag*{(1)}

Let ηD+>1\eta_D^{+}>1 be the least totally positive unit of the quadratic order OD=Z[(D+D)/2]\mathcal{O}_D=\mathbb{Z}[(D+\sqrt{D})/2], given by

ηD+=min⁡t,u∈Z>0t2−Du2=4t+uD2.(2)\eta_D^{+}=\min_{\substack{t,u\in\mathbb{Z}_{>0}\\t^{2}-Du^{2}=4}}\frac{t+u\sqrt{D}}{2}. \tag*{(2)}

Write χD(n)\chi_D(n) for the quadratic Dirichlet character defined by the Kronecker symbol. Dirichlet’s class number formula [31 (1.1)] gives

h+(D)log⁡ηD+=DL(1,χD).(3)h^{+}(D)\log\eta_D^{+}=\sqrt{D}L(1,\chi_D). \tag*{(3)}

Since ηD+>D\eta_D^{+}>\sqrt{D}, we have the elementary lower bound

log⁡ηD+≫log⁡D.(4)\log\eta_D^{+}\gg\log D. \tag*{(4)}

In his 1984 paper, Hooley studied class number averages through the distribution of fundamental solutions of Pell’s equation. The analogue1 of his conjecture [26 Conjecture 7] in our setting is that, for some constant C>0C>0,

S+(X)∼CX(log⁡X)2.S^{+}(X)\sim CX(\log X)^{2}.

However, we are still very far from this conjecture. Sarnak [35 p. 231, (79)] recorded the following classical upper bound

S+(X)≪X3/2log⁡X.(5)S^{+}(X)\ll\frac{X^{3/2}}{\log X}. \tag*{(5)}

As Sarnak observed, this follows directly from (1.4) and the asymptotic

∑D∈DD<Xh+(D)log⁡ηD+=π218ζ(3)X3/2+O(Xlog⁡X),\sum_{\substack{D\in\mathcal{D}\\D<X}}h^{+}(D)\log\eta_D^{+}=\frac{\pi^{2}}{18\zeta(3)}X^{3/2}+O(X\log X),

predicted by Gauss and proved in this form by Siegel2 [36] in 1944. The product h+(D)log⁡ηD+h^{+}(D)\log\eta_{D}^{+} is therefore well understood on average, but the two factors separately are much harder to control. Fouvry and Jouve [16 Theorem 3 and (56)] obtained an explicit upper bound for the leading constant in the analogous estimate for the sum of h(K)h(K) over real quadratic fields with 4∣DK4 \mid D_K, while the order of magnitude of the classical upper bound (5) has not been improved for several decades.

We give the first improvement to the classical upper bound (5) by a factor log⁡X/log⁡log⁡X\sqrt{\log X/\log\log X}.

Theorem 1.1. For X≥3X \ge3, we have

∑K/Q quadratic0<DK<Xh(K)≤∑D∈DD<Xh+(D)≪X3/2log⁡log⁡X(log⁡X)3/2.\sum_{\substack{K/\mathbb{Q}\ \mathrm{quadratic}\\0<D_K<X}} h(K) \le\sum_{\substack{D\in\mathcal{D}\\D<X}} h^{+}(D) \ll\frac{X^{3/2}\sqrt{\log\log X}}{(\log X)^{3/2}}.

Genus theory gives a lower bound of order Xlog⁡XX\log X for the sum of h+(D)h^{+}(D) over positive fundamental discriminants D<XD<X. Fouvry and Klüners [17 Theorem 3] improved the leading constant in this lower bound for the subfamily D≡1(mod4)D\equiv1\pmod{4}.

By ordering quadratic forms by their fundamental units, Sarnak [34 Theorem 2.1] proved

∑D∈DηD+≤Yh+(D)∼Li⁡(Y2),#{D∈D:ηD+≤Y}∼3516Y.\sum_{\substack{D\in\mathcal{D}\\\eta_D^{+}\le Y}} h^{+}(D)\sim\operatorname{Li}(Y^2),\qquad\#\{D\in\mathcal{D}:\eta_D^{+}\le Y\}\sim\frac{35}{16}Y.

This class number sum counts oriented primitive closed geodesics on the modular surface of length at most 2log⁡Y2\log Y, so the prime geodesic theorem gives the main term Li⁡(Y2)\operatorname{Li}(Y^2). Siegel averaged the product h+(D)log⁡ηD+h^{+}(D)\log\eta_D^{+}, while Sarnak ordered the class numbers by ηD+\eta_D^{+}.

For primitive indefinite ternary quadratic forms, Gamburd, Ghosh, Sarnak, and Whang [18 (B)] proved a class number asymptotic of order Xlog⁡XX\log X for positive determinants less than XX. For ternary forms, genera containing more than one class contribute only a term of lower order, but for binary forms the number of classes in each genus remains difficult to control (see [18 Remark 1.5]).

∑D∈DD<XL(1,χD)≪X.\sum_{\substack{D\in\mathcal{D}\\D<X}}L(1,\chi_D)\ll X.

Combining this with (4) in the class number formula (3) gives (5).

Torsion in class groups

For a real quadratic field KK and an integer n≥2n \ge2, let hn(K)=#Cl⁡(K)[n]h_n(K)=\#\operatorname{Cl}(K)[n], and put

Sn(X)=∑0<DK<Xhn(K).S_n(X)=\sum_{0<D_K<X}h_n(K).

The Cohen–Lenstra heuristics [11] and Gerth’s extension [19] predict, for suitable constants cn>0c_n>0,

Sn(X)∼{cnX,n odd,cnXlog⁡X,n even.S_n(X)\sim\begin{cases} c_nX, & n\text{ odd},\\ c_nX\log X, & n\text{ even}. \end{cases}

For n=2n=2, it follows from Gauss’s genus theory. The asymptotic is also known for n=3,4,6n=3,4,6 (see [10, 12, 17, 29]). Smith [37, 38] established the predicted distributions of higher 2-power class ranks.

For general nn, the known upper bounds for Sn(X)S_n(X) give only a small saving in the exponent 3/23/2 that follows from (1) and (5). For n≥2n\ge2, Koymans and Thorner [30 Theorem 1.1 and (1.14)] proved

Sn(X)≪n,εX3/2−1/(n+1)+ε.S_n(X)\ll_{n,\varepsilon}X^{3/2-1/(n+1)+\varepsilon}.

For primes ℓ≥5\ell\ge5, Chan and Koymans [9 Theorem 1.2] obtained

Sℓ(X)≪ℓ,εX3/2−3/(2ℓ+2)+ε.S_\ell(X)\ll_{\ell,\varepsilon}X^{3/2-3/(2\ell+2)+\varepsilon}.

Let hodd(K)h_{\mathrm{odd}}(K) denote the number of elements of odd order in Cl⁡(K)\operatorname{Cl}(K). Browning and Chan [8 p. 1679] proved

∑K/Q quadratic0<DK<Xhodd(K)≪X3/2(log⁡X)3/2.\sum_{\substack{K/\mathbb{Q}\ \mathrm{quadratic}\\0<D_K<X}}h_{\mathrm{odd}}(K)\ll\frac{X^{3/2}}{(\log X)^{3/2}}.

They combined genus theory with a mean value estimate of Wilson [39 Corollary 1.6] carrying the weight 2−ω(DK)2^{-\omega(D_K)}. We can also improve this bound by a factor log⁡X/log⁡log⁡X\sqrt{\log X/\log\log X}.

Theorem 1.2. For X≥3X\ge3, we have

∑K/Q quadratic0<DK<Xhodd(K)≪X3/2log⁡log⁡X(log⁡X)2.\sum_{\substack{K/\mathbb{Q}\ \mathrm{quadratic}\\0<D_K<X}}h_{\mathrm{odd}}(K)\ll\frac{X^{3/2}\sqrt{\log\log X}}{(\log X)^2}.

Size of fundamental solutions to Pell equations

To bound the average class number using (3), we need to control how often log⁡ηD+\log\eta_D^+ is small. We do this by studying the size of fundamental solutions of Pell’s equation. Hooley [26 Section 7] used heuristics for the distribution of these solutions to formulate his conjecture on average class numbers.

For every positive nonsquare integer DD, define the fundamental solution of Pell’s equation by

References

  1. [1]F. Adiceam and O. Marmon, Rational points close to non-singular algebraic curves. Mathematika 69 (2023), no. 4, 957–987.arxiv.org/abs/2204.11607
  2. [2]R. Bhatia, Matrix analysis. Graduate Texts in Mathematics, vol. 169. Springer, New York, 1997.
  3. [3]T. F. Bloom and J. D. Lichtman, The Bombieri–Pila determinant method. Essential Number Theory 4 (2025), no. 2, 327–348.DOI
  4. [4]E. Bombieri and W. Gubler, Heights in Diophantine geometry. Cambridge University Press, Cambridge, 2006.
  5. [5]E. Bombieri and J. Pila, The number of integral points on arcs and ovals. Duke Math. J. 59 (1989), no. 2, 337–357.DOI
  6. [6]J. Bourgain, A remark on solutions of the Pell equation. Int. Math. Res. Not. IMRN 2015, no. 10, 2841–2855.arxiv.org/abs/1311.5911
  7. [7]T. Browning, Cubic forms and the circle method. Progress in Mathematics, vol. 343. Birkhäuser, Cham, 2021.DOI
  8. [8]T. D. Browning and S. Chan, Solubility of a resultant equation and applications. J. Éc. polytech. Math. 12 (2025), 1677–1691.arxiv.org/abs/2411.09264
  9. [9]S. Chan and P. Koymans, A new pointwise bound for 3-torsion of class groups. Preprint, arXiv:2505.00611, 2025.arxiv.org/abs/2505.00611
  10. [10]S. Chan, P. Koymans, C. Pagano, and E. Sofos, 6-torsion and integral points on quartic threefolds. Ann. Sc. Norm. Super. Pisa Cl. Sci. (5), to appear.arxiv.org/abs/2403.13359
  11. [11]H. Cohen and H. W. Lenstra, Jr., Heuristics on class groups of number fields. In Number theory, Noordwijkerhout 1983, Lecture Notes in Math. 1068, 33–62. Springer, Berlin, 1984.DOI
  12. [12]H. Davenport and H. Heilbronn, On the density of discriminants of cubic fields. II. Proc. Roy. Soc. London Ser. A 322 (1971), 405–420.DOI
  13. [13]É. Fouvry, On the size of the fundamental solution of the Pell equation. J. reine angew. Math. 717 (2016), 1–33.
  14. [14]É. Fouvry and F. Jouve, Fundamental solutions to Pell equation with prescribed size. Proc. Steklov Inst. Math. 276 (2012), 40–50.DOI
  15. [15]É. Fouvry and F. Jouve, Size of regulators and consecutive square-free numbers. Math. Z. 273 (2013), 869–882.DOI
  16. [16]É. Fouvry and F. Jouve, A positive density of fundamental discriminants with large regulator. Pacific J. Math. 262 (2013), 81–107.
  17. [17]É. Fouvry and J. Klüners, Weighted distribution of the 4-rank of class groups and applications. Int. Math. Res. Not. IMRN 2011, no. 16, 3618–3656.DOI
  18. [18]A. Gamburd, A. Ghosh, P. Sarnak, and J. P. Whang, On indefinite integral ternary quadratic forms. Preprint, arXiv:2603.05849, 2026.arxiv.org/abs/2603.05849
  19. [19]F. Gerth III, The 4-class ranks of quadratic fields. Invent. Math. 77 (1984), 489–515.DOI
  20. [20]A. Granville and K. Soundararajan, The distribution of values of L(1, χd). Geom. Funct. Anal. 13 (2003), 992–1028; errata, 14 (2004), 245–246.
  21. [21]D. R. Heath-Brown, The square sieve and consecutive square-free numbers. Math. Ann. 266 (1984), 251–259.
  22. [22]D. R. Heath-Brown, The density of rational points on curves and surfaces. With an appendix by J.-L. Colliot-Thélène. Ann. of Math. (2) 155 (2002), no. 2, 553–598.
  23. [23]D. R. Heath-Brown, Sums and differences of three kth powers. J. Number Theory 129 (2009), no. 6, 1579–1594.arxiv.org/abs/0806.4330
  24. [24]D. R. Heath-Brown, Square-free values of n² + 1. Acta Arith. 155 (2012), 1–13.
  25. [25]D. R. Heath-Brown, Counting square-full solutions to x + y = z. Preprint, arXiv:2601.07817, 2026.arxiv.org/abs/2601.07817
  26. [26]C. Hooley, On the Pellian equation and the class number of indefinite binary quadratic forms. J. reine angew. Math. 353 (1984), 98–131.DOI
  27. [28]I. Khayutin, P. D. Nelson, and R. S. Steiner, Theta functions, fourth moments of eigenforms and the sup-norm problem. Forum Math. Pi 12 (2024), e11, 53 pp.DOI
  28. [29]P. Koymans, R. J. Lemke Oliver, E. Sofos, and F. Thorne, Asymptotics for 6-torsion and D₆-extensions. Preprint, arXiv:2512.21920, 2025.arxiv.org/abs/2512.21920
  29. [30]P. Koymans and J. Thorner, Bounds for moments of ℓ-torsion in class groups. Math. Ann. 390 (2024), 3221–3237.DOI
  30. [31]Y. Lamzouri, Large moments and extreme values of class numbers of indefinite binary quadratic forms. Mathematika 63 (2017), 564–586.
  31. [32]T. Reuss, The determinant method and applications. D.Phil. thesis, University of Oxford, 2015.DOI
  32. [33]P. Salberger, Counting rational points on projective varieties. Proc. Lond. Math. Soc. (3) 126 (2023), no. 4, 1092–1133.DOI
  33. [34]P. Sarnak, Class numbers of indefinite binary quadratic forms. J. Number Theory 15 (1982), 229–247.DOI
  34. [35]P. Sarnak, Reciprocal geodesics. In Analytic number theory: a tribute to Gauss and Dirichlet, Clay Math. Proc. 7, 217–237. American Mathematical Society, Providence, RI, 2007.
  35. [36]C. L. Siegel, The average measure of quadratic forms with given determinant and signature. Ann. of Math. (2) 45 (1944), 667–685.DOI
  36. [37]A. Smith, The distribution of ℓ∞-Selmer groups in degree ℓ twist families I. J. Amer. Math. Soc. 39 (2026), 1–72.DOI
  37. [38]A. Smith, The distribution of ℓ∞-Selmer groups in degree ℓ twist families II. J. Amer. Math. Soc. 39 (2026), 453–514.DOI
  38. [39]C. Wilson, Asymptotics for local solubility of diagonal quadrics over a split quadric surface. Preprint, arXiv:2404.11489v2, 2024.arxiv.org/abs/2404.11489
  39. [40]P. Xi, Counting fundamental solutions to the Pell equation with prescribed size. Compos. Math. 154 (2018), 2379–2402.DOI

Paper details

vlnc:W_hbgm6zkz
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 2

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Mathematics

Not recorded for this paper

View statement
Looking for related papers…
Contents