1. Introduction
It is a well-studied problem to estimate the number
$S_{k,\|\cdot\|}(n,X)$
of
$k\times k$
matrices A with integer coefficients,
$\det(A)=n$
, and
$\|A\|\le X$
, where
$k\ge 2$
,
$n\in\mathbb{Z}$
,
$X\ge 1$
, and
$\|\cdot\|$
is a prescribed norm. For the Euclidean norm
$\|\cdot\|_2$
, a famous result of Selberg from the 1970’s on the hyperbolic circle problem (see Selberg’s unpublished notes [
Reference Selberg17
, p. 5 of document 3]) gives that
for any
$\epsilon>0$
.
In 1993 Duke, Rudnick and Sarnak published a landmark paper on the density of integer points on affine homogeneous varieties [
Reference Duke, Rudnick and Sarnak6
]. As one application of their results they proved (theorem 1.10 in their paper) that, for any
$k\ge 2$
and for any
$n\not= 0$
,
for any
$\epsilon>0$
, where
$c_{k,n}$
is a constant determined by values of the gamma function, the Riemann zeta function, and the prime power divisors of n.
Analogous results for the case when
$n=0$
were established by Katznelson in [
Reference Katznelson11
] (cf. [
Reference Katznelson12
]). These types of problems were further investigated, using tools from ergodic theory, by Eskin, Mozes and Shah [
Reference Eskin, Mozes and Shah7, Reference Shah18
], who proved asymptotic formulas for numbers of matrices with bounded Euclidean norm and specified characteristic polynomial.
Surprisingly, the asymptotic behavior of
$S_{k,\|\cdot\|_\infty}(n,X)$
, where
$\|\cdot\|_\infty$
is the sup-norm, has been less well studied, even in the case when
$k=2$
, until recently. The above mentioned work of Selberg, Duke, Rudnick and Sarnak relies on the rotational invariance of the Euclidean norm, and therefore does not apply to this problem. Asymptotic formulae for
$S_{2,\|\cdot\|_\infty}(0,X)$
(with second order asymptotics) can be derived from work of Ayyad, Cochrane and Zhang [
Reference Ayyad, Cochrane and Zheng2
]. There is an asymptotic formula for
$S_{2,\|\cdot\|_\infty}(1,X)$
due to Roettger [
Reference Roettger16
] (who also considers an analogous problem over rings of integers of algebraic number fields), as well as more recent work of Bulinski and Shparlinski [
Reference Bulinski and Shparlinski3
], which leads to an improved error term (see [
Reference Afifurrahman1
, equation (1·4)]). A ‘smoothed’ version of the sup-norm problem for
$k=2$
and arbitrary n (actually for
$2\times 2$
matrices with a fixed characteristic polynomial) is considered in [
Reference Guria9
], however adding smooth weights in the count does change the problem.
Significant progress on this problem was made by M. Afifurrahman, who in July 2024 published a preprint containing a proof of the following result.
Theorem [
Reference Afifurrahman1
, theorem 1·1]. For
$n\in\mathbb{N}$
,
as
$X,n\rightarrow\infty$
.
In the statement of the theorem,
$\sigma_s(n)$
denotes the sum of the
$s{\text{th}}$
powers of the positive divisors of n. One important feature of this result is that, in contrast to (1·1), the dependence on n of the error term here is made explicit, so that both X and n may tend to infinity as functions of one another. This is necessary for some applications (cf. [
Reference Shparlinski19
, theorem 4], [
Reference Ostafe and Shparlinski15
, section 2·2]), and the theorem is significant for X even as small as
$n^{1/2+\delta}$
. For the case of large X, a preprint of Ganguly and Guria [
Reference Ganguly and Guria8
] improves the error term in this theorem to
$\ll_\epsilon n^\theta X^{3/2+\epsilon}$
(where
$\theta$
is a non-negative constant), in the range where
$X\gg n^3$
.
Our first aim in this paper is to give a short proof of the following theorem.
Theorem 1. Let
$\epsilon>0$
. Then, for
$n\in\mathbb{N}$
and
$X\ge 1$
we have that
The bound in our theorem recovers the error term from (1·2) when X is small compared to n, but it gives a significant power savings (over both that result and the one in [
Reference Ganguly and Guria8
]) when
$X\gg n$
. To understand the dependence of the error term on n, note that
while
In other words,
$\sigma_0(n)$
behaves on average like
$\log n$
, but it can also sometimes be larger than
$2^{\xi\log n/\log\log n}$
, for any
$\xi<1$
(see [
Reference Hardy and Wright10
, theorems 317, 320]).
As in Afifurraman’s result, our error term allows one to obtain significant estimates for X as small as
$n^{1/2+\delta}$
. It turns out that this is the threshold of what one could hope for in the exponent, as demonstrated by our second result.
Theorem 2. For all prime numbers p we have that
and that
Note that the constant on the main term in these formulas is different from that in Theorem 1. This shows, in particular, that the main term in Theorem 1 does not give a correct asymptotic estimate, as
$n\rightarrow\infty,$
with
$X=n^{1/2}$
. As pointed out to us by one of the referees, this theorem is also related to the problem of counting directions determined by subsets of a finite field, as discussed in [
Reference Martin, White and Yip14
]. In particular, Theorem 2 significantly improves the error term in [
Reference Martin, White and Yip14
, theorem 1·11] in the special case, in the statement of that theorem, when
$\lambda=1$
.
Results similar to Theorem 2 for higher powers of primes do not seem to follow from the same types of arguments given in our proof. This is a direction for further investigation, which was the initial motivation for the research leading to the results in this paper, and which is closely related to a natural analogue of the ‘minimal denominator problem’ in the setting of p-adic numbers (see [ Reference Chen and Haynes5, Reference Marklof13, Reference Shparlinski20 ]).
Notation. We use O and
$\ll$
to denote the standard big-oh and Vinogradov notations. If a and q are integers then we write (a, q) for the gcd of a and q. The symbols
$\varphi,\mu,\omega,$
and
$\zeta$
denote the Euler phi, Möbius, prime omega, and Riemann zeta functions, respectively. For
$n\in\mathbb{N}$
,
$\sum_{d|n}$
denotes a sum over positive divisors d of n. For
$x\in\mathbb{R},$
we write
$\lfloor x\rfloor$
for the greatest integer less than or equal to x and
$\{x\}=x-\lfloor x\rfloor$
for the fractional part of x.
2. Proof of Theorem 1
To understand the general strategy, our proof can be divided into 3 elementary steps:
-
(i) make use of symmetry in the variables a, b, q, and r, in the equation
(2·1)to reduce the problem to solving the equation under the additional constraint that
\begin{equation} ar-bq=n, \end{equation}
$|r|\le |q|$
. Although this is close to trivial, it paves the way for one of the most important steps in the proof later on;
-
(ii) separate out consideration of the resulting sums, depending on the gcd of q and n. This allows us to more carefully count solutions of the linear Diophantine equation (2·1), with variables in the prescribed ranges;
-
(iii) evaluate the final summations using results from elementary analytic number theory. One of the key steps here is the exact formula for the inner sum in (2·5), which is a direct result of the symmetry imposed in step (i).
First note that it is sufficient to prove the theorem for
$X\in\mathbb{N}$
, since interpolating between integers in the main term adds an error of at most
$O(\sigma_{-1}(n)X)$
. For
$n\in\mathbb{Z}$
and
$X\in\mathbb{N}$
, write:
\begin{align*} S(n,X)&=S_{2,\|\cdot\|_\infty}(n,X);\\S_{leq}(n,X)&=\big\{(a,b,q,r)\in\mathbb{Z}^4 \;:\; |a|,|b|,|q|\le X, |r|\le |q|, ar-bq=n\big\};\;\text{and}\\ S_{eq}(n,X)&=\big\{(a,b,q,r)\in\mathbb{Z}^4 \;:\; |a|,|b|,|q|\le X, |r|= |q|, ar-bq=n\big\}.\end{align*}
Then:
\begin{align} S(n,X)&=S({-}n,X), S_{leq}(n,X)=S_{leq}({-}n,X);\ \text{and} \nonumber \\S(n,X)&=S_{leq}(n,X)+S_{leq}({-}n,X)-S_{eq}(n,X)\nonumber\\&=2S_{leq}(n,X)-S_{eq}(n,X).\end{align}
For
$n\in\mathbb{N}$
we have that
where
\begin{align*} S_d=\sum_{\substack{|q|\le X\\ (q,n)=d}}\sum_{\substack{|a|,|b|\le X\\|r|\le |q|\\ar-bq=n}}1.\end{align*}
For the remainder of the proof we will simplify notation by writing
$q_d=q/d, n_d=n/d, X_d=X/d,$
and so on. First of all we have that
\begin{align} S_d&=\sum_{\substack{|q_d|\le X_d\\(q_d,n_d)=1}}\sum_{\substack{|a|,|b|\le X\\|r|\le d|q_d|\\ar-bdq_d=n}}1.\end{align}
Note that, in order to have
$ar-bq=n$
, it is necessary that
$(a,q)|n$
, which implies that
$(a,q)|d$
. Furthermore, if
$(a,q)=e$
, for some
$e|d$
, then it must be the case that
$\frac{d}{e}|r$
. This means that (2·3) is equal to
\begin{align*}\sum_{\substack{|q_d|\le X_d\\(q_d,n_d)=1}}\sum_{e|d}\sum_{\substack{|a|\le X\\(a,q)=e}}\sum_{\substack{|r|\le|q|\\\frac{d}{e}|r}}\sum_{\substack{|b|\le X\\a_er_{d/e}-bq_d=n_d}}1.\end{align*}
The condition that
$(a,q)=e$
guarantees that
$(a_e,q_d)=1$
. Once q, a, and r are chosen in the sums above, the equation
$a_er_{d/e}-bq_d=n_d$
will have a solution
$|b|\le X$
(which obviously then must be unique) if and only if
$r_{d/e}=n_da_e^{-1}\;\mathrm{mod}\;q_d$
and
Therefore
\begin{align*} S_d=\sum_{\substack{|q_d|\le X_d\\(q_d,n_d)=1}}\sum_{e|d}\sum_{\substack{|a_e|\le X_e\\(a_e,q_e)=1}}\;\sum_{\substack{|r_{d/e}|\le|q_{d/e}|\\r_{d/e}=n_da_e^{-1}\;\mathrm{mod}\;q_d\\\text{\eqref{eqn.S_dSum2} holds}}}1.\end{align*}
Now let us consider the effect of removing condition (2·4) from the inner sum. First, note that the conditions
$|a_e|\le X_e$
and
$|r_{d/e}|\le |q_{d/e}|$
already guarantee that
For the other inequality, suppose that
$q_d$
and e are chosen, that
$r_{d/e}=n_da_e^{-1}\;\mathrm{mod}\;q_d$
, and that
Then we have that
$a_er_{d/e}=n_d\;\mathrm{mod}\;q_d$
and that
Using the assumption that
$X\in\mathbb{N}$
, we have that the number of choices for the integer
$c=a_er_{d/e}$
is equal to
$\left\lfloor{n_d}/{|q_d|}\right\rfloor$
. For each such integer c the number of different values of
$a_e$
and
$r_{d/e}$
with
$c=a_er_{d/e}$
is at most
Therefore
with
\begin{align} M_d&=\sum_{\substack{|q_d|\le X_d\\(q_d,n_d)=1}}\sum_{e|d}\sum_{\substack{|a_e|\le X_e\\(a_e,q_e)=1}}\;\sum_{\substack{|r_{d/e}|\le|q_{d/e}|\\r_{d/e}=n_da_e^{-1}\;\mathrm{mod}\;q_d}}1 \end{align}
\begin{align}\qquad\,\, &=\sum_{\substack{|q_d|\le X_d\\(q_d,n_d)=1}}\sum_{e|d}2e\left(\frac{2X_e\varphi(q_e)}{|q_e|}+O\big(2^{\omega(q_e)}\big)\right) \end{align}
\begin{align} \qquad\qquad\quad\,\,\,\, &=4X\sum_{e|d}\sum_{\substack{|q|\le X\\(q,n)=d}}\frac{\varphi(q/e)}{|q/e|}+O\left(\sum_{e|d}e\sum_{\substack{|q|\le X\\(q,n)=d}}2^{\omega(q/e)}\right) \end{align}
and
\begin{align} E_d&\ll_\epsilon \sum_{\substack{|q_d|\le X_d\\(q_d,n_d)=1}}\sum_{e|d}\frac{n_d}{|q_d|}\left(|q_d|X\right)^\epsilon\ll_\epsilon \frac{\sigma_0(d)}{d^{1+\epsilon}}\big(nX^{2\epsilon}\big).\end{align}
To be clear, we are using the fact that the inner sum in (2·5) is exactly equal to 2e, and in (2·6)-(2·8) we are also using standard asymptotic estimates for arithmetical functions. Now we consider the sum of these quantities over divisors of n. For the main term in (2·7) we have that
\begin{align*} \sum_{d|n}\left(4X\sum_{e|d}\sum_{\substack{|q|\le X\\(q,n)=d}}\frac{\varphi(q/e)}{|q/e|}\right)&=4X\sum_{e|n}\sum_{\substack{|q|\le X\\e|q}}\frac{\varphi(q/e)}{|q/e|}\\ &=4X\sum_{e|n}\sum_{|q_e|\le X_e}\frac{\varphi(q_e)}{|q_e|}\\ &=\frac{48\sigma_{-1}(n)}{\pi^2}X^2+O\left(\sigma_0(n)X\log X\right).\end{align*}
For the error term in (2·6) we have that
\begin{align*} \sum_{d|n}\sum_{e|d}e\sum_{\substack{|q|\le X\\(q,n)=d}}2^{\omega(q/e)}=\sum_{e|n}e\sum_{|q_e|\le X_e}2^{\omega(q_e)}\ll \sigma_0(n)X\log X.\end{align*}
For the sum of the
$E_d$
error terms, adjusting the choice of
$\epsilon$
above and the corresponding constant, we obtain
Finally, it is easy to show that
$S_{eq}(n,X)\ll \sigma_0(n)X$
. Combining these estimates in formula (2·2) completes the proof of the theorem.
3. Proof of Theorem 2
First consider the following basic lemma.
Lemma 3. Let p be prime and suppose that
$n=p$
or that
$n=p^2$
. For every integer c satisfying
$0\le c< n$
, there exist integers a and q satisfying
$|a|\le n^{1/2}$
,
$0<q< n^{1/2}$
, and
Proof. Let
It is easy to check that, whether
$n=p$
or
$p^2$
,
Therefore, by the Dirichlet pigeonhole principle, there are distinct
$(a_1,q_1),(a_2,q_2)\in\mathcal{A}$
with
Take
$a=a_1-a_2$
and
$q=q_1-q_2$
and assume without loss of generality, by switching the signs if necessary, that
$q\ge 0$
. If
$q=0\;\mathrm{mod}\;p$
then, since
$q < n^{1/2}\le p$
, it must be the case that
$q=0$
. Since
$|a|\le n^{1/2}$
, this forces
$a=0$
as well, which is a contradiction. Therefore
$q>0$
, and it is invertible modulo n, which completes the proof of the lemma.
Let us continue to write
$n=p$
or
$p^2$
, depending on which of the two cases in the statement of Theorem 2 is being considered. Define
$\Omega\in\mathbb{Z}^2$
by
and define
$T\,:\,\Omega\rightarrow(\mathbb{Z}/n\mathbb{Z})$
by
It is easy to see from Lemma 3 that the map T is surjective. Distinct points
$(a,q),(b,r)\in\Omega$
will have the same image under T if and only if
$ar-bq=\pm n$
. It follows from this that every point in
$\mathbb{Z}/n\mathbb{Z}$
is the image of either one or two points in the domain, and that
Finally, by considering the maps
$(a,q)\leftrightarrow ({-}a,-q)$
and
$(b,r)\leftrightarrow ({-}b,-r)$
(which require also mapping n to
$-n$
, but do not change the quantities we are counting), and by subtracting off contributions along the boundaries of the regions, we have that
\begin{align*}S_{2,\|\cdot\|_\infty}(n,\sqrt{n})&=4\#\{((a,q),(b,r))\in\Omega\times\Omega \;:\; ar-bq=n\}+O\big(n^{1/2}\big)\\&=4\left(|\Omega|-n\right)+O(n^{1/2})\\&=4\left(\frac{12}{\pi^2}-1\right)n+O(n^{1/2}\log n).\end{align*}
This completes the proof of the theorem.
Acknowledgements
We would like to thank the anonymous referees for their careful reading of this paper and their suggestions for improvements. We would also like to mention that, a few days after our paper was first made public on arxiv.org, a similar collection of results was posted by Chapman and Mudgal [ Reference Chapman and Mudgal4 ].






