                                           PRIME NUMBER THEOREMS FOR POLYNOMIALS FROM HOMOGENEOUS
                                                                  DYNAMICS

                                                                        GIORGOS KOTSOVOLIS AND KATHARINE WOO
arXiv:2312.11445v1 [math.NT] 18 Dec 2023




                                                                                   Dedicated to Peter Sarnak
                                                                              on the occasion of his 70th birthday

                                                  Abstract. We establish a new class of examples of the multivariate Bateman-Horn conjecture
                                                  by using tools from dynamics. These cases include the determinant polynomial on the space of
                                                  n × n matrices, the Pfaffian on the space of skew-symmetric 2n × 2n matrices, and the determinant
                                                  polynomial on the space of symmetric n × n matrices. In particular, let (V, F ) be any pair among
                                                  the following: (Matn , det), (Skew2n , Pff), and (Symn , det). We then obtain an asymptotic for
                                                                         πV,F (T ) = #{v ∈ V : max(|vi |) ≤ T, F (v) is prime},
                                                  that matches the Bateman-Horn prediction.
                                                     The key ingredients of our proof are an asymptotic count for integral points on the level sets of
                                                  F given by Linnik equidistribution, a geometric approximation of the box by cones, and an upper
                                                  bound sieve to bound the number of prime values missed by the approximation. In the case of
                                                  the determinant polynomial on symmetric matrices, we must also use the Siegel mass formula to
                                                  compute the product of local densities for the main term.


                                                                                             Contents
                                             1. Introduction                                                                                              1
                                             2. General framework of invariant polynomials for homogeneous spaces                                         5
                                             3. A prime number theorem on cones                                                                           9
                                             4. ǫ-cuttings                                                                                               14
                                             5. An upper bound sieve                                                                                     16
                                             6. Background on symmetric matrices and the Siegel Mass Formula                                             19
                                             7. Symmetric matrices                                                                                       23
                                             8. Final remarks                                                                                            36
                                             Acknowledgments                                                                                             37
                                             References                                                                                                  37




                                                                                        1. Introduction
                                             Let f (x) ∈ Z[x] be an irreducible monic polynomial. It was conjectured by Bunyakovsky in
                                           1857 that f (n) will be prime for infinitely many n ∈ N. This conjecture was made quantitative by
                                           Bateman and Horn in [1], and is now known as the Bateman-Horn conjecture:
                                           Conjecture 1.1 (The Bateman-Horn conjecture). Let f (x) be a nonconstant irreducible monic
                                           polynomial over Q. Then as N → ∞ :
                                                                                                                Z N
                                                                                                                          dx
                                                                    #{n ∈ [1, N ] : f (n) is prime} ∼ S ·                +        ,
                                                                                                                 0    log (f (x))

                                             Date: December 19, 2023.
                                                                                                   1
2                                        G. KOTSOVOLIS AND K. WOO

where we write                                 (
                                     +      max(2, log(y)), y > 0
                                   log (y) =
                                            ∞,                y ≤ 0,
and where the singular series S is defined as a product of local densities:
                                                                        !
                              Y       1 − p−1 #{x ∈ Fp : f (x) ≡ 0 mod p}
                         S=                                               .
                               p                   1 − 1/p
  While the Bateman-Horn conjecture has yet to be solved for any nonlinear polynomial, mathe-
maticians have made substantial progress proving prime number theorems for multivariate polyno-
mials. In the Appendix of [10], Destagnol and Sofos wrote down the expected asymptotic for the
multivariate Bateman-Horn.
Conjecture 1.2 (The Bateman-Horn conjecture for multivariate homogeneous polynomials). Let
F (x) be a nonconstant irreducible polynomial over Q in n variables. For a box B ⊂ Rn , we denote
T B := {tx : t ∈ [0, T ], x ∈ B}. Then, we have that as T → ∞,
                                                                       dx
                                                              Z
                            #{x ∈ T B : F (x) is prime} ∼ S ·         +         ,
                                                               TB log   (F (x))
where the singular series S is defined as a product of local densities:
                                     1 − p−n #{x ∈ Fnp : F (x) ≡ 0 mod p}
                                                                         !
                              Y
                         S=                                               .
                               p                  1 − 1/p
  We remark that in the multivariate setting it may be more natural to look at integers that
generate prime ideals (p) ⊂ Z, rather than positive primes. For instance,
                                           F (x, y) = 1 − x2 − y 2
is an absolutely irreducible polynomial with no local restrictions that does not take any positive
prime values. Additionally, we would like to consider regions more general than boxes. As such,
we write down another formulation of the Bateman-Horn conjecture.
Conjecture 1.3. Let F (x) be a nonconstant irreducible homogeneous polynomial over Q in n
variables. For any convex compact region R0 ⊂ Rn , we denote T R0 := {tx : t ∈ [0, T ], x ∈ R0 }.
Then, we have that as T → ∞,
                                                                            dx
                                                                Z
               #{x ∈ T R0 : (F (x)) ⊂ Z is a prime ideal} ∼ S ·           +         ,
                                                                 T R0 log (|F (x)|)
where
                             Y 1 − p−n #{x ∈ Fn
                                                                        !
                                                  p : F (x) ≡ 0 mod p}
                       S=                                                 .
                             p                  1 − 1/p
  In this paper, we will prove the multivariate Bateman-Horn conjecture for a new class of poly-
nomials. Specifically, in Theorem 1.4, we prove a prime number theorem for the determinant
polynomial on n × n matrices; in Theorem 1.6, we prove a prime number theorem for the Pffafian
on 2n × 2n skew symmetric matrices; in Theorem 1.8, we prove the more involved prime number
theorem for the determinant polynomial on n × n symmetric matrices. A crucial ingredient in
these proofs is the following uniform upper bound (Proposition 5.1) for any absolutely irreducible
homogeneous polynomial F :
                                      #{x ∈ T R0 (Z) : F (x) is prime}
                         lim sup lim                                   ≤ cF .
                          R0 ⊂Rn T →∞         |T R0 |/ log(T )
  Before introducing these results, we will give a brief survey of previous known results for prime
number theorems for multivariate polynomials.
           PRIME NUMBER THEOREMS FOR POLYNOMIALS FROM HOMOGENEOUS DYNAMICS                               3

1.1. History of multivariate Bateman-Horn conjecture. First, for polynomials F ∈ Z[x1 , ..., xn ]
with n sufficiently large in the degree d, the Hardy-Littlewood circle method can produce such
asymptotics. In particular, for n > (d − 1)2d−1 , the Bateman-Horn conjecture was proved by
Destagnol and Sofos in [10] using the circle method. If F is diagonal, then an even better bound
exists: for n ≥ ⌈d log(d) + 4.21⌉, Brüdern and Wooley’s work [5] on Waring’s problem gives the
Bateman-Horn conjecture.
   Beyond the circle method, the other known cases of Bateman-Horn occur when there is extra
algebraic structure. In [15] and [16], Friedlander and Iwaniec establish that there are infinitely
many primes of the form x2 + y 4 . Later, Heath-Brown [18] solved the case of x3 + 2y 3 ; this was
then followed by Heath-Brown and Moroz [19] who finished off the case of irreducible binary cubic
forms. Finally, Maynard [27] used the structure of norm forms to generalize Heath-Brown and
Moroz’s result and handled incomplete norm forms of degree n in ≥ 15n/22 variables. We remark
that the results of [15], [16], [18], and [19] all use the structure of norm forms and the structure
of prime factorization in number fields in their respective proofs. We also note that all of these
polynomials factor over Q, whereas our polynomials will be irreducible over Q.
1.2. Statements of the main theorems. In this section, we will present prime number theorems
for three specific polynomials.
   First, we consider the determinant polynomial det on n × n integral matrices. This polynomial
det(x11 , x12 , ..., xnn ) is a non-diagonal homogeneous polynomial in n2 variables of degree n and is
irreducible over Q. For n ≥ 4, a prime number theorem for this polynomial is beyond what is known
from the circle method. However, by utilizing results from dynamics, such as the equidistribution
of Hecke orbits, along with an approximation argument, we can achieve the following prime number
theorem.
Theorem 1.4. Define the following prime counting function:
                     πdet (T ) := #{A ∈ Matn (Z) : kAk ≤ T, det(A) is prime},
where kAk denotes the L∞ -norm. As T → ∞, we have that
                                                n
                                                                          1
                                                              Z
                                                         −1
                                                Y
                     πdet (T ) = (1 + o(1)) ·         ζ(j)                   +   dX,
                                                j=2           kXk≤T log (det(X))

where dX is the Euclidean measure on Matn (R) ∼
                                                  2
                                              = Rn . Moreover, Conjecture 1.3 holds for the
determinant polynomial.
Remark 1.5. Our methods lead us to deal with even more general regions, as will be discussed in
§4 and §5. In particular, if R0 ⊂ Matn (R) satisfies that for x ∈ R0 , and t ∈ [0, 1], we have that
tx ∈ R0 , as well as that the boundary of R0 has Euclidean measure zero, then we have that
                                                                  n
                                                                                            1
                                                                                 Z
                                                                        ζ(j)−1
                                                                  Y
          #{A ∈ Matn (Z) ∩ T R0 : det(A) is prime} ∼                                    +          dX.
                                                                  j=2            T R0 log (det(X))

This fact will be a consequence of Theorem 3.1 and Theorem 4.1. Some examples of such R0
include the star-shaped region and compact sets R0 defining a sector.
  We also observe that this result implies that
                                               n                         2   2
                                            1 Y            2n T n
                                 πdet (T ) ∼ ·    ζ(j)−1 ·           .
                                            2 j=2          n log(T )
Here the factor of 1/2 comes from the fact that asymptotically half of the matrices in the box
kXk ≤ T satisfy that det(X) > 0.
  Second, we consider the Pfaffian polynomial Pff on skew-symmetric 2n × 2n integral matrices.
This polynomial is a nondiagonal homogeneous polynomial in 2n2 − n variables of degree n and
4                                     G. KOTSOVOLIS AND K. WOO

is irreducible over Q. For n ≥ 5, a prime number theorem for this polynomial is beyond what
the circle method can currently handle. Again, by inputting tools from dynamics (in particular
Ratner’s theorem), we can establish a prime number theorem for the Pfaffian.

Theorem 1.6. Let n ≥ 2. Define the following prime counting function:

               πPff (T ) := #{A ∈ Mat2n (Z) : kAk ≤ T, AT = −A, Pff(A) is prime},

where kAk denotes the L∞ norm. As T → ∞, we have that
                                                                                    1
                                                                 Z
                                                      ζ(j)−1 ·
                                             Y
                πPff (T ) = (1 + o(1)) ·                             kXk≤T log + (Pff(X))
                                                                                            dX.
                                           3≤n≤2n−1                  X T =−X
                                             j odd


Here dX is the Euclidean measure on Skew2n (R) = {X ∈ Mat2n (R) : X T = −X} ∼
                                                                                                  2
                                                                            = R2n −n .
Moreover, Conjecture 1.3 holds for the Pfaffian.

Remark 1.7. As with the determinant case, we again handle more general regions, as a consequence
of Theorem 3.4 and Theorem 4.1.

   Note that both the determinant and the Pfaffian polynomials belong to a more general dynamical
framework; this set up will be discussed further in §2.
   Our final example is the determinant polynomial det on symmetric n × n matrices. This polyno-
mial is a nondiagonal homogeneous polynomial in n(n+1)2  variables of degree n and it is irreducible
over Q; furthermore, the variety {X ∈ Symn (Q) : det(X) = 0} is not smooth. For n = 1, the
Bateman-Horn conjecture is answered by the prime number theorem. When n = 2, the determi-
nant becomes a ternary quadratic form and thus can be handled by the results of Duke in [11].
However, for n ≥ 3, this polynomial is currently beyond what is known (from the circle method or
other techniques). The proof of the following theorem makes use of Linnik type equidistribution as
well as the Siegel mass formula.

Theorem 1.8. Let n ≥ 3. Define the following prime counting function:

                πSym (T ) := #{A ∈ Matn (Z) : kAk ≤ T, AT = A, det(A) is prime},

where kAk denotes the L∞ -norm. As T → ∞, we have that
                                                                                1
                                                                 Z
                                                      ζ(j)−1 ·
                                              Y
                  πSym (T ) = (1 + o(1)) ·                       kXk≤T log+ (det(X))
                                                                                        dX.
                                             3≤j≤n               X T =X
                                              j odd


Here dX is the Euclidean measure on Symn (R) = {X ∈ Matn (R) : X T = X} ∼        = Rn(n+1)/2 .
Moreover, Conjecture 1.3 holds for the determinant polynomial on symmetric matrices.

Remark 1.9. Again, we can handle more general regions than boxes; see Theorem 4.1 and §7.

   Moreover, we prove a more precise result depending on the signature of the symmetric matrices
involved; this is discussed further in §7.

Remark 1.10. The question of prime determinants for the determinant polynomial on Matn (Z)
and Symn (Z) was raised by Kovaleva in her insightful investigation in [22]. Kovaleva counts in
[22] matrices with squarefree, instead of prime, determinants and resolves the variant question of
counting n × n symmetric integer matrices with a squarefree minor of size n − r for r > 0.
           PRIME NUMBER THEOREMS FOR POLYNOMIALS FROM HOMOGENEOUS DYNAMICS                          5

1.3. Outline of the paper. First, in §2 we describe the general framework that all of our examples
belong to – they are all almost Hardy-Littlewood systems (Definition 2.4). We present a general
prime number theorem (1) under certain conditions and relate the problem of counting primes to
the Linnik problem. Additionally, in §2 we will discuss the Tamagawa measure, the “Bateman-Horn
measure”, and how these two measures relate to the Euclidean measure.
   In §3, we prove a prime number theorem for the determinant polynomial on integral matrices
and a prime number theorem for the Pfaffian on integral skew-symmetric matrices for particularly
structured regions; namely, we look at cones.
   In §4, we start our procedure for turning our prime number theorem on cones into a theorem on
boxes (and more general regions). We introduce the notion of an ǫ-cutting, which is an approxima-
tion of the desired region by cones. The idea of ǫ-cuttings comes from the principle of Riemannian
integration – one can approximate a general compact region R using sequences of cones of smaller
and smaller width.
   In §5, we introduce the second ingredient of our procedure: an upper bound sieve on the part
of the box that is not covered by the approximation by cones. Section 5 does not make use of the
dynamics framework and it applies to a general homogeneous irreducible polynomial. It yields an
upper bound for Conjecture 1.3, which is off by a constant independent of R0 . Finally in §5, we
present the proofs of Theorem 1.4 and Theorem 1.6.
   In §6, we establish the necessary background on the Siegel mass formula to prove Theorem 1.8,
which is subsequently proved in §7. Finally, in §8, we comment on variant questions that our
methods can handle.


      2. General framework of invariant polynomials for homogeneous spaces
   In this section, we aim to put our choices of polynomials in a general framework – they are the
invariant polynomials of homogeneous spaces.

2.1. The Linnik Problem. The proofs of Theorems 1.4, 1.6, and 1.8 rely on the resolution of the
Linnik problem in the respective set ups. In this subsection, we explain the Linnik problem.
   Let F (x) ∈ Z[x] be a general polynomial in n variables, let

                                       Vm = {x : F (x) = m}

be the level sets of F , and let Vm (Z) denote the integer points of Vm . The Linnik problem studies
the equidistribution of Vm (Z) when projected onto V1 (R) as m → ∞. We list some examples.
   Linnik [24] used his ergodic method to prove (conditional on m being a quadratic residue for any
fixed odd prime) that for F (x) = x21 + x22 + x23 , for µ the normalization of the Euclidean measure
on S2 , and for Ω ⊂ S2 a subset with boundary of measure zero, the following holds:
                                                      1
                                       #Vm (Z) ∩ m 2 Ω
                                   lim                 = µ(Ω).
                                  m→∞    #Vm (Z)
This result was later proved unconditionally by Duke in [11] using bounds on the Fourier coefficients
of half-weight modular forms proved by Iwaniec in [20].
   In [25], Linnik and Skubenko solve the corresponding problem for the determinant polynomial on
GLn (R). Notice that unlike the case of the sphere, Vm (Z) is infinite for every m ∈ N, which can be
understood as a consequence of SLn (R) having infinite measure and hence it is necessary to intersect
with some compact set. We refer the reader to Sarnak’s 1990 ICM talk [30] for the connection
between this problem and the equidistribution of Hecke orbits. Sarnak shows the following result,
which is effective with a power saving: let Ω ⊂ SLn (R) be a “nice” compact set (as defined in
Definition 2.2), F be the determinant polynomial, and µ the Euclidean measure on SLn (R) (induced
6                                        G. KOTSOVOLIS AND K. WOO

from GLn (R)). Then, as m → ∞ :
                                                       n
                                               1
                                                             ζ(j)−1 · Gn (m)µ(Ω),
                                                       Y
                             #Vm (Z) ∩ m n Ω ∼
                                                       j=2
                Qr    ei
where for m =    i=1 pi , we define
                                   r
                                   Y (pei +1 − 1)(pei +2 − 1) . . . (pei +n−1 − 1)
                                           i             i               i
                        Gn (m) =                                                     .
                                   i=1         (pi − 1)(p2i − 1) . . . (pin−1 − 1)
   A robust approach to these Linnik type problems is to use Ratner’s work on measure rigidity
[29]. We will make use of the work of Eskin and Oh [14].

2.2. The general framework. Let G denote some semisimple real algebraic group defined over
Q and let ρ : G → GL(V ) be a rational representation of G on a finite vector space V . Assume
that there is some polynomial F that is invariant under the right action of ̺, i.e.
                                         F (v̺(g)) = F (v), ∀g ∈ G,
and that F is irreducible over Q. We denote the level sets of F by
                                      Vm := {v ∈ V : F (v) = m}.
  For some v0 ∈ V , let H = stabv0 denote the stabilizer of v0 inside G. We require that the set
(V, G, H, F ) satisfies the following strong assumptions:
     • V1 = v0 G for some vector v0 ∈ V (R), i.e. V1 can be identified with the homogeneous space
                                                   V1 ∼
                                                      = G/H,
     • for each m, there is a λm ∈ R such that Vm = λm V1 ,
     • V1 (Q) 6= ∅, i.e. V1 contains a rational point,
     • H(R) ⊂ G(R) is a connected, simply connected, and semisimple subgroup. We also assume
       that it is a proper maximal subgroup of G(R) and contains no compact factors,
                                                           6 0, then we must have
     • if m0 ∈ Z satisfies that #{v ∈ V (Z) : F (v) = m0 } =
                             #{m ∈ Z : λ−1          −1
                                        m Vm (Z) = λm0 Vm0 (Z)} < ∞.

When V1 ∼ = G/H is an affine symmetric space, these varieties satisfy the Hasse principle, as was
shown by Borovoi in [4]; in more generality we are assuming the existence of an initial rational
point. The fact that the stabilizer H(R) is connected and semisimple ensures the existence and
uniqueness of the Tamagawa measure on the level sets of F . The final two conditions are what is
necessary in order to apply Theorem 1.9 of Oh [28].
Remark 2.1. We note that the case V1 = i vi G is a finite union of orbits, where the stabilizers
                                                   S

of vi satisfy all of the above conditions, is essentially the same and we discuss the single orbit case
here only to make the exposition simpler.
Definition 2.2. We will call a compact set Ω ⊂ V1 (R) nice if its boundary has measure zero on
V1 (R). For a nice compact subset Ω ⊂ V1 (R), we define the cone of Ω of height T as the following
region:
                                T Ω := {v = tω : t ∈ [0, T ], ω ∈ Ω}.
  Under the assumptions listed above, Eskin and Oh prove in [14] that for any Ω nice compact
subset of V1 (R) we have
                                                   1
                                #Vm (Z) ∩ m n Ω ∼ ωm µ(Ω), m → ∞,
           PRIME NUMBER THEOREMS FOR POLYNOMIALS FROM HOMOGENEOUS DYNAMICS                         7

where µ is some G−invariant Borel measure on V1 and ωm is defined as follows: for any arithmetic
lattice Γ in G(Q) with Vm (Z)Γ ⊂ Vm (Z) for all m ∈ Z, we have
                                                    µH ((H ∩ gξ−1 Γgξ )\H)
                                           P
                                        ξΓ⊂Vm (Z)
                             ωm (Γ) =                                        ,
                                                      µG (Γ\G)
where
     • the sum is over all disjoint orbits ξΓ inside Vm (Z); this sum is finite as a consequence of
       the theorem of Borel and Harish-Chandra [2],
                                              1
     • gξ is a point of G such that v0 = (m− n ξ)gξ ,
     • the Borel measure µ and the Haar measures µG , µH are compatible in the sense of Weil [33].
  In [28], Oh proves that ωm does not depend on the choice of Γ and thus the notation is consistent.
An immediate corollary is that for nice compact sets Ω1 , Ω2 ⊂ V1 :
                                                      1
                                     #Vm (Z) ∩ m n Ω1         µ(Ω1 )
                                                      1   ∼          .
                                     #Vm (Z) ∩ m Ω2   n       µ(Ω2 )
Finally, Oh computes the constant ωm in terms of local masses and derives the following, which
will be crucial for our analysis:
Theorem 2.3 (Oh, [28]). Let V be a linear space with a given Z-structure satisfying the above
conditions. Then for any nice compact set Ω ⊂ V1 (R), as m → ∞,
            #Vm (Z) ∩ R(m1/ deg(F ) , Ω) = µ∞ (Ω) · mdim(V )/ deg(F )−1 · Sm · (1 + oΩ (1)),
where the singular series is given by
                                            Y       Vm (Z/q k Z)
                                     Sm =        lim   k dim(Vm )
                                                                  ,
                                               q k→∞ q

and the dependence on the compact set is given by
                                             vol({v ∈ [1 − ǫ, 1 + ǫ]Ω})
                              µ∞ (Ω) = lim                              ,
                                         ǫ→0             2ǫ
as computed by Borovoi and Rudnick in [3].
  This result of Oh implies that under the conditions above on (V, G, H, F ), we can conclude that
(V, F ) satisfies the predictions made by Hardy and Littlewood for rational points on varieties; in
particular, we will call these systems Hardy-Littlewood systems.
Definition 2.4. A linear space V with polynomial F is a Hardy-Littlewood system if it satisfies
that as m → ∞,
                     N (m, Ω) = µ∞ (Ω) · mdim(V )/ deg(F )−1 · Sm · (1 + oΩ (1)),
where the singular series is given by
                                           Y     #Vm (Z/q k Z)
                                    Sm =        lim k dim(Vm )
                                                               ,
                                            q k→∞ q

and the dependence on the compact set is given by
                                         vol({v ∈ [1 − ǫ, 1 + ǫ]Ω})
                              µ∞ (Ω) = lim                          .
                                         ǫ→0         2ǫ
Here the volume denoted is the Euclidean volume.
8                                                   G. KOTSOVOLIS AND K. WOO

   The above asymptotic result on the count of integral points on Vm will allow us to derive a
prime number theorem on cones by summing over the level sets with prime values. In particular,
if (V, F ) is a Hardy-Littlewood system and the singular series Sm satisfies that for all sufficiently
large primes p,
                                      Sp = SV,F (1 + O(p−δ )),
where SV,F is the singular series from Conjecture 1.2 and δ > 0 is a positive constant, then the
following prime number theorem holds for any nice compact set Ω ⊂ V1 (R):
                                                                                                             1
                                                                                                  Z
(1)                        #{v ∈ V (Z) ∩ T Ω : F (v) is prime} ∼SV,F ·                                      +       dv.
                                                                                                    T Ω log (F (v))

The proof of this fact follows exactly the proof presented in §3.2 for the determinant polynomial
and the Pfaffian.

2.3. Relating the measures. So far, we have discussed the measure µ∞ on V1 , which appears in
Theorem 2.3, and the Euclidean measure, which appears as the archimedean part of the Bateman-
Horn conjecture. In this subsection, we wish to provide a relation between these two measures. In
order to establish this connection, we utilize the co-area formula.
Lemma 2.5. For Ω a nice compact connected subset of V1 (R), we have that as T → ∞,
                                           1                        T dim(V )
                                Z
                                         +        dx = µ ∞ (Ω) ·                 (1 + o(1)).
                                  T Ω log (F (x))                dim(V ) log(T )
Proof. From the computations of Borovoi and Rudnick in [3], we know that
                                                               1
                                                                             Z
                                                  µ∞ (Ω) = lim                                   dx,
                                                           ǫ→0 2ǫ              [1−ǫ,1+ǫ]Ω

where dx is the Euclidean measure on V (R). The co-area formula then allows us to rewrite this
formula in terms of an integral over Ω:
      Z                        Z 1+ǫ Z
                       dx =                          |∇F (y)|−1 dydr
          [1−ǫ,1+ǫ]Ω            1−ǫ  r 1/ deg(F ) Ω
                               Z 1+ǫ dim(V ) Z
                                              −1
                           =             r
                                     deg(F )             |∇F (y)|−1 dydr
                                1−ǫ                  Ω
                                                                                                                          deg(F )
                               Z                      
                           =            |∇F (y)|−1 dy · ((1 + ǫ)dim(V )/ deg(F ) − (1 − ǫ)dim(V )/ deg(F ) ) ·                    .
                                    Ω                                                                                     dim(V )
Hence, taking the limit as ǫ → 0, we have that
                                                                     Z
                                                     µ∞ (Ω) =              |∇F (y)|−1 dy.
                                                                      Ω
  On the other hand, we consider the archimedean part of the Bateman-Horn conjecture. Applying
the co-area formula again, we have that as T → ∞:
                                                       Z T deg(F )
                                 1                                     1
                       Z                                                           Z
                               +        dx =                                                          |∇F (y)|−1 dydr
                        T Ω log (F (x))                  2           log(r)        r 1/ deg(F ) Ω
                                                                         dim(V )
                                                       Z T deg(F )                 −1 Z
                                                                     r deg(F )
                                                   =                                           |∇F (y)|−1 dydr
                                                         2             log(r)              Ω
                                                                                              T dim(V )
                                                       Z                              
                                                   =             |∇F (y)|−1 dy ·                           (1 + o(1)).
                                                             Ω                             dim(V ) log(T )
                                                                                                                                      
          PRIME NUMBER THEOREMS FOR POLYNOMIALS FROM HOMOGENEOUS DYNAMICS                         9

Remark 2.6. We recall that in Oh [28], the measure µ∞ is a gauge form, a nowhere zero regular
differential form of maximal degree, which is used to construct the unique Tamagawa measure on
V1 (A). Hence, the co-area formula gives us a precise expression for this Gauge form dµ∞ on V1 :
                                               dµ∞ = |∇F (y)|−1 dy.
From now on, we will be calling µ∞ the Bateman Horn measure.

                           3. A prime number theorem on cones
   In this section, we prove a prime number theorem on particularly structured regions for the
determinant polynomial on Matn (R); in particular we look at cones. The reason for that is that
we can solve the Linnik problem for this space (as mentioned in §2.1). We will explain in the end
of the section that the case of the Pfaffian follows the same lines.

  For a nice compact subset Ω ⊂ V1 (R) = SLn (R), we define
                    πMatn ,det (T, Ω) = #{A ∈ T Ω ∩ Matn (Z) : det A is prime}.
Theorem 3.1. Let Ω be a nice compact subset of SLn (R). Then as T → ∞, the Bateman-Horn
conjecture holds on T Ω:
                                                                    1
                                                          Z
                         πMatn ,det (T, Ω) ∼ SMatn ,det ·         +         dx,
                                                           T Ω log (det(x))

where
                                                   2
                                                                                       !
                               Y        1 − p−n #{x ∈ Matn (Fp ) : det(x) ≡ 0 mod p}
                SMatn ,det =                                                         .
                                p                      (1 − 1/p)

  Next, we recall the following corollary of Theorem 2.3, as proved by Oh in Example 4.1 of [28].
In particular, the following shows that (Matn , det) is a Hardy-Littlewood system and gives us an
asymptotic count for the integral points on the level sets.
Theorem 3.2 (Oh [28], Example 4.1). For any nice compact subset Ω ⊂ V1 (R) = SLn (R), as
m → ∞:
                  #Vm (Z) ∩ m1/n Ω = (1 + oΩ (1)) · µ∞ (Ω) · mn−1 · Sm ,
where
                                Y          #{X ∈ Matn (Z/q k Z) : det(X) = m}
                     Sm =                lim
                               q prime
                                       k→∞             q k(n2 −1)
and µ∞ is the Bateman-Horn measure.
  We note that the singular series in Theorem 3.1 differs in definition from the singular series in
Theorem 3.2. In the next section, we show that these products are not so different.

3.1. Stability of the singular series. We remark that our desired singular series from the
Bateman-Horn conjecture (Conjecture 1.3) satisfies:
                                                   2
                                        Y p−n +1 #{v ∈ Matn (Fp ) : det(v) ∈ F×
                                                                              p}
                     SMatn ,det =                                                  .
                                         p                   ϕ(p)
On the other hand, we also have the following Hardy-Littlewood singular series for any m ∈ Z:
                                    Y      #{v ∈ Matn (Z/q k Z) : det(v) = m}
                      Sm =                   lim            2                 .
                               q prime
                                       k→∞             q k(n −1)
We will now show that these two quantities are similar when we specify m to be a prime p.
10                                     G. KOTSOVOLIS AND K. WOO

Lemma 3.3. For any sufficiently large prime p, the singular series Sp coming from the Hardy-
Littlewood property of (Matn , det) satisfies
                                                                  1
                                     Sp = SMatn ,det · (1 + O(p− 2 )).
Proof. We first notice the following local equidistribution property of Matn : For any prime power
q k and any 0 ≤ a, b < q k with (a, q k ) = (b, q k ), we have that
(2)            #{v ∈ Matn (Z/q k Z) : det(v) = a} = #{v ∈ Matn (Z/q k Z) : det(v) = b}.
It is then easy to see that for q a prime that is not p:
                                                       #{v ∈ Matn (Fq ) : det(v) ∈ F×
                                                                                    q}
                    #{v ∈ Matn (Fq ) : det(v) = p} =                                   ,
                                                                   ϕ(q)
and
                #{v ∈ Matn (Z/q k Z) : det(v) = p}    #{v ∈ Matn (Fq ) : det(v) ∈ F× q }
              lim              k(n 2 −1)            =                                    .
           k→∞               q                                       ϕ(q)
We recognize the right hand side as the q-factor in the Euler product of SMatn ,det . We now prove
Eq. 2: We do this for a = k = 1, since the general case is similar. We consider the map
                 {A ∈ Matn (Z/qZ) : det(A) = 1} → {B ∈ Matn (Z/qZ) : det(B) = b}
given by
                                                b 0 ... 0
                                                             
                                              0 1 ... 0
                                         A 7→  .. .. .. ..  A
                                                           
                                              . . . .
                                                0 0 ... 1
for A with det(A) = 1. Since gcd(b, q) = 1, this matrix diag(b, 1, ..., 1) is invertible in Matn (Fq ),
so this gives us a bijection between the two sets. Thus, we get the equidistribution property. It
follows that the local density at q of the singular series Sp and SMatn ,det match at all prime q 6= p.
   So, it remains to check that the factors almost match at the prime p. Since {det(v) = 0} is an
absolutely irreducible variety over Q, we know that for p sufficiently large this will be an absolutely
irreducible variety over Fp . Hence, the Lang-Weil bound [23] implies that the following holds:
(3)                   #{v ∈ Matn (Z/pZ) : det(v) = p} = pdim(V )−1 (1 + O(p−1/2 )).
Thus, we know that
                          p− dim(V )+1 #{v ∈ V (Fp ) : F (v) ∈ F×
                                                                p}            3
                                                                   = 1 + O(p− 2 ).
                                           ϕ(p)
     On the other hand, from the equidistribution property (2), for k ≥ 2 we have that
         #{v ∈ Matn (Z/pk Z) : det(v) ≡ p mod pk }   #{v ∈ Matn (Z/p2 Z) : det(v) ≡ p mod p2 }
      lim                    2                     =                                           .
     k→∞                pk(n −1)                                    p2(n2 −1)
Evaluating the right-hand side, we have that the expression equals:
#Matn (Z/p2 Z) #{v ∈ Matn (Z/p2 Z) : det(v) ∈ (Z/p2 Z)× } #{v ∈ Matn (Z/p2 Z) : det(v) ≡ 0 mod p2 }
               −                                             −
 ϕ(p)p2(n2 −1)                    ϕ(p)p2(n2 −1)                             ϕ(p)p2(n2 −1)
                    p#{v ∈ Matn (Fp ) : det(v) ∈ F×
                                                  p}   #{v ∈ Matn (Z/p2 Z) : det(v) ≡ 0 mod p2 }
= p + 1 + O(p−1 ) −                                  −
                                 ϕ(p)pn2 −1                         ϕ(p)p2(n2 −1)
      #{v ∈ Matn (Z/p2 Z) : det(v) ≡ 0 mod p2 }         1
=1−                      2n 2 −1                 + O(p− 2 ).
                       p
           PRIME NUMBER THEOREMS FOR POLYNOMIALS FROM HOMOGENEOUS DYNAMICS                         11

In the second equality, we have used (2) to handle the middle term. In the third equality, we have
applied (3). It now suffices to show that for p sufficiently large,
                                                                                   2
(4)                     #{v ∈ Matn (Z/p2 Z) : det(v) ≡ 0 mod p2 } = O(p2n −2 ),
since it will follow that
                         #{v ∈ Matn (Z/pk Z) : det(v) ≡ p mod pk }
                     lim                                           = 1 + O(p−1/2 ).
                    k→∞                  pk(n2 −1)
   Let H = {v ∈ Matn (Fp ) : det(v) ≡ 0 mod p and ∇det(v) 6= 0 mod p} denote the points of
{v ∈ Matn (Fp ) : det(v) ≡ 0 mod p} that admit a Hensel lifting ¯(see [7]), and let H c = {v ∈
Matn (Fp ) : det(v) ≡ 0 mod p and ∇det(v) = 0 mod p} denote its complement. We then have
                                                ¯                   2               2
                 #{v ∈ Matn (Z/p2 Z) : det(v) ≡ 0 mod p2 } ≤ #H · pn −1 + #H c · pn .
By the trivial bound we obtain
                                                                                   2
                        #H ≤ #{v ∈ Matn (Fp ) : det(v) ≡ 0 mod p} ≪ pn −1 .
Therefore, in order to show (4), it suffices to show
                                                          2
                                           #H c = O(pn −2 ).
   Indeed, since {v ∈ Matn (C) : det(v) = 0} is geometrically irreducible over C, we know that
{v ∈ Matn (Fp ) : det(v) ≡ 0 mod p} is geometrically irreducible over Fp for all sufficiently large
primes p. So, the codimension of the singular locus of {v ∈ Matn (Fp ) : det(v) = 0 mod p} will be at
least one for such primes. As such, we know that dim({v ∈ Matn (Fp ) : det(v) ≡ 0 mod p, ∇ det(v) =
0 mod p}) ≤ n2 − 2. Hence, we have that
¯                                                                                      2
          #H c = |{v ∈ Matn (Fp ) : det(v) ≡ 0 mod p, and ∇ det(v) = 0 mod p}| ≪ pn −2 .
                                                                         ¯
This completes the proof of (4).
   Finally, we put all the local densities together. For p 6= q, we have that
                #{v ∈ Matn (Z/q k Z) : det(v) = p}    #{v ∈ Matn (Fq ) : det(v) ∈ F×
                                                                                   q }
            lim                k(n 2 −1)
                                                    =                                  .
           k→∞               q                                    ϕ(q)
On the other hand, the local density at p is given by
                    #{v ∈ Matn (Z/pk Z) : det(v) ≡ p mod pk }
                  lim                                         = 1 + O(p−1/2 ).
                k→∞                pk(n2 −1)
Thus, we have that
                             Sp = SMatn ,det (1 + O(p−1/2 )).
                                                                                                   
3.2. Counting primes in cones. Using the results of this section we are now in a position to
prove Theorem 3.1:
Proof of Theorem 3.1. From Theorem 3.2, for T sufficiently large, we know that
                                                               pn−1 · Sp
                                                       X
               πMatn ,det (T Ω) = (1 + oΩ (1))µ∞ (Ω)
                                                       p≤T n

                                                                           pn−1 (1 + O(p−1/2 ))
                                                                   X
                               = (1 + oΩ (1))µ∞ (Ω)SMatn ,det
                                                                   p≤T n
                                                                     Tn
                               = (1 + oΩ (1))µ∞ (Ω)SMatn ,det ·
                                                                 n2 log(T )
                                                                  dx
                                                        Z
                               = (1 + oΩ (1))SMatn ,det         +          .
                                                         T Ω log (det(x))
12                                        G. KOTSOVOLIS AND K. WOO

The second equality follows from Lemma 3.3 and the fourth equality comes from Lemma 2.5. We
note that SMatn ,det is the singular series given by the Bateman-Horn conjecture.         
     Finally, we remark that since
                                                                        n−1
                           #{v ∈ Matn (Fp ) : det(v) ∈ F×                     (pn − pj ),
                                                                        Y
                                                        p}=
                                                                        j=0

we can evaluate the singular series as
                                                           n
                                                                 ζ(j)−1 .
                                                           Y
                                            SMatn ,det =
                                                           j=2

3.3. Modifications for the Pfaffian polynomial. The analysis for the Pfaffian on 2n×2n skew-
symmetric matrices follows along the same lines as the proof of Theorem 3.1 described above. In
this subsection, we prove the corresponding prime number theorem on cones.
   Let V = Skew2n = {X ∈ Mat2n : X T = −X}. For a nice compact subset Ω ⊂ V1 (R), we define
                    πSkew2n ,Pff (T, Ω) = #{A ∈ T Ω ∩ Skew2n (Z) : Pff(A) is prime}.
Theorem 3.4. Let Ω be a nice compact subset of V1 (R) = {X ∈ SL2n (R) : X T = −X}. Then as
T → ∞, the Bateman-Horn conjecture holds on T Ω:
                                                                   1
                                                         Z
                    πSkew2n ,Pff (T, Ω) ∼ SSkew2n ,Pff ·         +         dx,
                                                          T Ω log (Pff(x))
where
                                               2
                                                                                            !
                               Y   1 − p−(2n −n) #{x ∈ Skew2n (Fp ) : Pff(x) ≡ 0 mod p}
              SSkew2n ,Pff =                                                            .
                               p                        (1 − 1/p)
  We start by noting that Theorem 2.3 also implies that this system is Hardy-Littlewood. In
particular, we have that by Example 4.2 of Oh [28]:
Theorem 3.5 (Oh [28], Example 4.2). For any nice compact subset Ω ⊂ V1 (R), as m → ∞:
                        #Vm (Z) ∩ m1/n Ω = (1 + oΩ (1)) · µ∞ (Ω) · m2n−2 · Sm ,
where
                                   Y       #{X ∈ Skew2n (Z/q k Z) : Pff(X) = m}
                       Sm =              lim
                               q prime
                                       k→∞              q k(n2 −1)
and µ∞ is the Bateman-Horn measure.
   Next, we want to prove that these singular series SSkew2n ,Pff and Sm are similar when m = p is
a large prime.
Lemma 3.6. For any sufficiently large prime p, we have that
                                       Sp = SSkew2n ,Pff · (1 + O(p−1/2 )).
Proof. We note that, in the proof of Lemma 3.3, the only aspect that was specific to (Matn , det)
was the local equidistribution property (2). So, it suffices to prove a local equidistribution property
for (Skew2n , Pff) : For any 0 ≤ a, b < q k and gcd(a, q k ) = gcd(b, q k ), we have that
            #{X ∈ Skew2n (Z/q k Z) : Pff(X) = a} = #{X ∈ Skew2n (Z/q k Z) : Pff(X) = b}.
     Again, we show this fact when q is a prime and (b, q) = 1:
(5)      #{X ∈ Skew2n (Fq ) : Pff(X) ≡ 1 mod q} = #{X ∈ Skew2n (Fq ) : Pff(X) ≡ b mod q}.
The cases when a 6= 1 and k 6= 1 can be handled by the same proof.
            PRIME NUMBER THEOREMS FOR POLYNOMIALS FROM HOMOGENEOUS DYNAMICS                                 13

  We consider the map
        ϕ : {A ∈ Skew2n (Fq ) : Pff(A) ≡ 1 mod q} → {B ∈ Skew2n (Fq ) : Pff(B) ≡ b mod q}
given by:
                                       b 0 ... 0        b 0 ... 0
                                                                                   
                                     0 1 ... 0 0 1 ... 0
                              ϕ(A) =  .. .. .. ..  A  .. .. .. ..  .
                                                                  
                                     . . . . . . . .
                                       0 0 ... 1        0 0 ... 1
Clearly, if AT = −A, then ϕ(A)T = −ϕ(A). We also know that
                                                   2n
                                                        (−1)j a1j Pff(A1̂ĵ ),
                                                   X
                                        Pff(A) =
                                                   j=2

where Aîĵ is the minor created by removing the ith and jth row and column. Since this map ϕ
results in multiplying the first row and column both by b, we can see that
                                   2n
                                   X                                2n
                                                                    X
                    Pff(ϕ(A)) =          ba1j Pff(ϕ(A)îĵ ) = b          a1j Pff(Aîĵ ) = bPff(A).
                                   j=2                              j=2

So, we do indeed have ϕ : {X ∈ Skew2n (Fq ) : Pff(X) ≡ 1 mod q} → {X ∈ Skew2n (Fq ) : Pff(X) ≡
b mod q}. Since diag(b, 1, 1, ..., 1) is invertible, ϕ is a bijection between the two sets, so we get that
if (q, b) = 1, the local equidistribution property (5) holds.                                           
  Now, we have all the ingredients necessary to prove Theorem 3.4.
Proof of Theorem 3.4. From Theorem 3.5, for T sufficiently large, we know that
                                                                    p2n−2 · Sp
                                                             X
              πSkew2n ,Pff (T Ω) = (1 + oΩ (1))µ∞ (Ω)
                                                            p≤T n

                                                                                    p2n−2 (1 + O(p−1/2 ))
                                                                             X
                               = (1 + oΩ (1))µ∞ (Ω)SSkew2n ,Pff
                                                                            p≤T n

                                                                        T n(2n−1)
                               = (1 + oΩ (1))µ∞ (Ω)SSkew2n ,Pff ·
                                                                    n(2n − 1) log(T )
                                                                     dx
                                                           Z
                               = (1 + oΩ (1))SSkew 2n ,Pff         +         .
                                                            T Ω log (Pff(x))

The second equality follows from Lemma 3.6 and the fourth equality comes from Lemma 2.5. We
note that SSkew2n ,Pff is the singular series given by the Bateman-Horn conjecture.       
  Finally, we evaluate the singular series:
                                          Y #{X ∈ Skew2n (Fp ) : det(X) ∈ F×
                                                                           p}
                        SSkew2n ,Pff =                                                         .
                                            p              pn(2n−1) (1 − 1/p)
Applying the result of MacWilliams in [26],
                                                                            n−1
                       #{X ∈ Skew2n (Fp ) : det(X) ∈ F×                           (p2n−1 − p2i ).
                                                                            Y
(6)                                                   p}=
                                                                            i=0
Thus, we get that
                                                     n−1
                                       (1 − 1/p)−1         (1 − p1+2i−2n ) =                   ζ(j)−1 .
                                   Y                 Y                                 Y
                  SSkew2n ,Pff =
                                   p                 i=0                            3≤j≤2n−1
                                                                                      j odd
14                                    G. KOTSOVOLIS AND K. WOO

                                            4. ǫ-cuttings
  In this section, we will no longer require the dynamical set up of §2. We assume that V is a linear
vector space of dimension larger than one and F is a homogeneous polynomial that is irreducible
over Q. Again, we denote our level sets:
                                      Vm = {v ∈ V : F (v) = m}.
We note that since F is homogeneous, we know that
                                          Vm = m1/ deg(F ) V1 .
     Our goal for the following two sections will be to prove the following theorem:
Theorem 4.1. Assume that for any nice compact Ω ⊂ V1 (R), as T → ∞, we have that
                                                               1
                                                    Z
                    πV,F (T Ω) = (1 + oΩ (1))SV,F ·         +         dx.
                                                     TΩ log   (F (x))
If a compact set R0 ⊂ V (R) has the following properties:
    (1) If x ∈ R0 and t ∈ [0, 1], then tx ∈ R0 ,
    (2) The compact set [0, ∞)R0 ∩ V1 is nice,
then we have that as T → ∞,
                                                                      1
                                                            Z
                          πV,F (T R0 ) = (1 + o(1))SV,F ·          +         dx.
                                                            T R0 log (F (x))
     Moreover, if we also have that for any nice compact Ω ⊂ V−1 (R), as T → ∞, the following holds:
                                                                              1
                                                                  Z
                 #{x ∈ T Ω : −F (v) is prime} = (1 + oΩ (1))SV,F          +           dx,
                                                                   TΩ log   (|F (x)|)
then Conjecture 1.3 holds for the compact regions R0 ⊂ V (R).
Remark 4.2. We note that the Euclidean box B = [0, 1]n ⊂ Rn would satisfy the conditions (1), (2)
above; hence, a consequence of Theorem 4.1 is that under the assumptions given, Conjecture 1.2
holds.
     First, we will approximate the region T R0 with such cones T Ω using ǫ-cuttings.
Definition 4.3. For Ω ⊂ V1 (R), a nice compact subset, we define the height of the subset as
                                           ht(Ω) = sup kAk,
                                                      A∈Ω
where k.k is the L∞ norm on V (R).
Definition 4.4. An ǫ-cutting of R0 is a finite set of disjoint nice connected compact subsets of
V1 (R), denoted as
                                                   N (ǫ)
                                       Cǫ = {Ωi }i=1 ,
such that                                  [
                                 R0 = E       [0, 1/ht(Ω)]Ω,
                                               Ω∈Cǫ
where the exceptional set satisfies that |E| ≤ ǫ.
Remark 4.5. We note that such an ǫ-cutting of R0 allows us to cut up T R0 for any T ≥ 1; we
have that
                              T R0 = T E ∪Ω∈Cǫ [0, T /ht(Ω)]Ω,
and that |T E| ≤ ǫT dim(V ) .
  From now on we will be assuming that the compact set R0 has the following properties (as in
Theorem 4.1):
              PRIME NUMBER THEOREMS FOR POLYNOMIALS FROM HOMOGENEOUS DYNAMICS                                           15

   (1) If x ∈ R0 and t ∈ [0, 1], then tx ∈ R0 .
   (2) The compact set [0, ∞)R0 ∩ V1 is nice.
  Next, we show the existence of an ǫ-cutting.
Proposition 4.6. Fix an ǫ > 0 sufficiently small. Let R0 ⊂ V (R) satisfy assumptions (1) and (2)
above. Then, there exists an ǫ-cutting of R0 ⊂ V (R).
Proof. Let L = R0 ∩ {v ∈ V (R) : F (v) = 0}. Since R0 is compact, L is a compact set. Moreover,
vol(L) = 0, since L is contained in a subvariety of codimension one. Hence, we can find a sufficiently
small δ, such that the set
                                    Lδ = {v ∈ R0 : dist(v, L) < δ}
has volume less than ǫ/2. We set E0 = Lδ .
   Let us consider the set S = R0 − Lδ and split S into its connected components and such that
each component is contained in a separate orbit of the action of G(R) on V (R), which will produce
a finite number kV of S = ∪i≤kV Si , where kV is independent of ǫ. We will abuse notation and
denote one of these components as S. Now, we wish to split S up further.
   We consider
                                       S1 = R+ S ∩ V1 (R)
and claim that S1 is a compact set. Indeed, since S is a compact set disjoint from the zero locus of
F , we know that
                                     m0 (ǫ) = min |F (u)| > 0.
                                                          u∈S

Thus, S1 ⊂ V1 (R) ∩ [0, 1/m0 (ǫ)1/ deg(F ) ]S and hence it is compact. So, we have that
                              0 < m(ǫ) = inf kvk ≤ sup kvk = M (ǫ) < ∞.
                                              v∈S1              v∈S1

  Let ǫ′ be a function of ǫ that we will determine later.    Let us split the interval [m(ǫ), M (ǫ)]
into intervals of length at most η(ǫ) = ǫ′ min(1, M (ǫ)−1 ) and enumerate these intervals as Ik =
[mk − η(ǫ), mk ] (We can assume that M (ǫ) − m(ǫ) is an integer multiple of η(ǫ), after passing to a
possibly smaller constant). Then we set
                                        S1,k = {v ∈ S1 : kvk ∈ Ik }.
and finally
                                              S′ =
                                                     [
                                                          [0, 1/mk ]S1,k .
                                                     k
Note that S ′ ⊂ S ⊂ ∪k [0, 1/(mk − η(ǫ))]S1,k . Observe now that
                                                                                  − dim(V )             − dim(V )
       vol([1/mk , 1/(mk − η(ǫ))]S1,k ) ≤ (mk − η(ǫ))− dim(V ) − mk                           ≤ cV η(ǫ)mk           ,
where cV is a constant in terms of dim(V ). So, we know that
                                                           Z M (ǫ)
                                  − dim(V )
                                                                       m− dim(V ) dm ≤ CV′ η(ǫ),
                      X
                             η(ǫ)mk           ≤ Cη(ǫ)
                         k                                  m(ǫ)

where C, CV′ > 0 are constants. Thus, we have that by squeezing,
                                              vol(S − S ′ ) ≤ cV CV′ ǫ′ .
We choose ǫ′ ≤ 2cVǫC ′ and set E = (S − S ′ ) ∪ E0 . For such a choice, we have that
                     V
                                                     [[
                                      R0 = E ∪                 [1, ht(Si,k )]Si,k ,
                                                      i    k

with vol(E) ≤ ǫ.                                                                                                        
16                                     G. KOTSOVOLIS AND K. WOO

                                       5. An upper bound sieve
   In this section, we will first establish a general upper bound for the number of prime values
of an irreducible multivariate polynomial; this upper bound will be of the same size as what the
Bateman-Horn conjecture (Conjecture 1.2) predicts. We note that we do not need the set up of
the general framework for this bound.
   Let F (x) ∈ Z[x] be an irreducible polynomial in n ≥ 2 variables. Let us denote the box of height
T by
                                    B(T ) := {x ∈ Rn : kxk∞ ≤ T }.
Let us also write P as the set of primes. Then we get the following upper bound for the number
of prime values of F (x):
Proposition 5.1. Let R ⊂ B(T ) be a convex region. Then there is a constant cF > 0 such that
                                                                       |R|
                                                                                      
                         #{x ∈ R(Z) : F (x) ∈ P} ≤ cF                        + T n−1/2 .
                                                                     log(T )
                    1
Proof. Let z = T 10n and we write
                                                          Y
                                                P (z) =         p.
                                                          p∈P
                                                          p≤z

We can bound the number of prime values of F in R using the z-rough numbers as follows:
#{x ∈ R(Z) : F (x) ∈ P} ≤ #{x ∈ R(Z) : F (x) ∈ P∩[1, z]}+#{x ∈ R(Z) : gcd(F (x), P (z)) = 1},
  First we apply Lemma 6.8 of Opera de Cribro [17] to the count of z-rough numbers. We then
know that for a fixed constant C > 0, the following inequality holds:

                                                                   #{x ∈ Fnp : F (x) ≡ 0 mod p}
                                                                                                            !
                                                          Y
(7) #{x ∈ R(Z) : gcd(F (x), P (z)) = 1} ≤ C|R|                  1−
                                                      p≤z
                                                                                pn
                                                                                                                 

                                                                                                     µ2 (d)|rd (R)| ,
                                                                                               X
                                                                                   +O
                                                                                               d≤z

where the rd (R) is the remainder term:
                                                                 #{x ∈ (Z/dZ)n : F (x) ≡ 0 mod d}
         rd (R) = #{x ∈ R(Z) : F (x) ≡ 0 mod d} − |R| ·                                           .
                                                                               dn
     First, we consider the product over primes p ≤ z:
            #{x ∈ Fnp : F (x) ≡ 0 mod p}                      X #{x ∈ Fn
                                            !
                                                                       p : F (x) ≡ 0 mod p}
                                                                                                           + O(p−2 ))
 Y
         1−                                     ≪F exp(−
 p≤z
                         pn                                   p≤z
                                                                                  pn

                                                                     p−1 + O(p−3/2 ))
                                                              X
                                                ≪F exp(−
                                                              p≤z
                                                              −1
                                                ≪F log(z)       .
In the first inequality, we use that
                            ̺(p) := #{x ∈ Fnp : F (x) ≡ 0 mod p} ≤ dpn−1 ,
so we know that
                                            ̺(p)      ̺(p)
                                  log(1 −      n
                                                 ) = − n + O(p−2 ).
                                             p         p
           PRIME NUMBER THEOREMS FOR POLYNOMIALS FROM HOMOGENEOUS DYNAMICS                            17

For the second inequality, we use that since F is absolutely irreducible, we have an even better
estimate for #{x ∈ Fnp : F (x) ≡ 0 mod p} for p sufficiently large in terms of F :

                         #{x ∈ Fnp : F (x) ≡ 0 mod p} = pn−1 + O(pn−3/2 ).
Moreover, for any α > 1, we know that

                                                        p−α = O(1),
                                                  X

                                                  p≤z

whereas for α = 1, we have
                                                p−1 = log log(z) + O(1).
                                          X

                                          p≤z

Together these give the final inequality.
  Next, we need a nontrivial level of distribution result:

                                                  µ2 (d)|rd (R)| ≪F T n−1/2 .
                                          X

                                    d≤T 1/10n

For a fixed d, we can write
                                                                                   
                                                  X               X             |R| 
(8)                            rd (R) =                                    1−       .
                                              α mod d
                                                           
                                                                 x∈R(Z)
                                                                                  dn 
                                           F (α)≡0 mod d        v≡α mod d

  We estimate the internal sum using geometry of numbers. We remark that if we define
                                   Λ(α, d) := {x ∈ Zn : x ≡ α mod d},
then Λ(α, d) is a lattice of determinant dn . Now, since R ⊂ B(T ), we know that the longest
“sidelength” of the region is ≪ T . Moreover, it is a convex region and thus, we get that
                                                                                             !
                                             |R|                                T n−k
                      #{x ∈ R(Z) ∩ Λ(α, d)} = n + O                     max                      ,
                                              d                        1≤k≤n λ1 . . . λn−k

where λ1 , ..., λn are the successive minima of the lattice Λ(α, d). Since λi ≥ 1 for each i, we use the
trivial bound that
                                                            |R|
                                 #{v ∈ R(Z) ∩ Λ(α, d)} − n ≪ T n−1 .
                                                             d
   Thus, we have that (8) is bounded by

                                                                T n−1 ≪ T n−1 dn−1 .
                                                    X
                               |rd (R)| ≤
                                                   α mod d
                                                F (α)≡0 mod d

Here we have used that F (v) ≡ 0 mod d cuts out a subvariety of codimension 1. So, we can calculate
that
                                          µ2 (d)|rd (R)| ≪F T n−9/10 ≤ T n−1/2 .
                                X

                              d≤T 1/10n

Plugging the above bound into (7), we achieve:
                                                                              |R|
(9)                  #{x ∈ R(Z) : gcd(F (x), P (z)) = 1} ≪F                         + T n−1/2 .
                                                                            log(T )
18                                            G. KOTSOVOLIS AND K. WOO

     Finally, we need to bound the contribution from the small primes less than z:
                                                                          1/10n
                                                                         TX
                                                        1/10n
             #{x ∈ R(Z) : F (x) ∈ P ∩ [1, T                     ]} ≤              #{x ∈ R(Z) : F (x) = m}
                                                                         m=1
                                                                          1/10n
                                                                         TX
                                                                     ≤            #{x ∈ B(T )(Z) : F (x) = m}.
                                                                         m=1

Let us write x = (x1 , ..., xn ) where we assume that F (x) = G(x1 , ..., xn−1 , xn )xn + H(x1 , ..., xn−1 )
for G(x1 , ..., xn−1 , xn ) nontrivial. Then we can write the sum above as:
                                                1/10n
                                               TX
                        X                X
                   ≤             ...                    #{|xn | ≤ T : F (x1 , ..., xn−1 , xn ) = m}.
                       |x1 |≤T         |xn−1 |≤T m=1

Now if F (x1 , ..., xn−1 , xn ) as a polynomial in xn has degree d ≥ 1, we have that
                                         #{|xn | ≤ T : F (x1 , ..., xn ) = m} ≤ d
for any value of d. So, these values of x1 , ..., xn−1 will contribute to an upper bound of T n−1+1/10n
values.
   On the other hand, if F (x1 , ..., xn−1 , xn ) = c is a constant polynomial in xn , for m = c, we get
that
                              #{|xn | ≤ T : F (x1 , ..., xn−1 , xn ) = c} ≤ T
and otherwise
                                   #{|xn | ≤ T : F (x1 , ..., xn−1 , xn ) = m} = 0.
However, for F (x1 , ..., xn−1 , xn ) to be a constant polynomial, x1 , ..., xn−1 must satisfy G̃(x1 , ..., xn−1 ) =
0 where G̃(x1 , ..., xn−1 ) is the coefficient of any positive power of xn in F (x1 , ..., xn−1 , xn ). We know
that
                                 #{|xi | ≤ T : G̃(x1 , ..., xn−1 ) = 0} ≪G̃ T n−2 ,
since G̃ cuts out a codimension one variety. So, combining this with the above bound, we get that
                                                             1/10n
                                                            TX
                                             1/10n
     #{x ∈ R(Z) : F (x) ∈ P ∩ [1, T                  ]} ≤            #{x ∈ B(T )(Z) : F (x) = m} ≪F T n−1+1/10n .
                                                            m=1

Combining the above bound with (9), we achieve final upper bound.
                                                                                                                    

  We remark that for F a homogeneous polynomial, this level of distribution result can be improved
by studying the level of distribution of lattices, as done by Daniel in [9], or by using bounds on
exponential sums, as done by Friedlander and Iwaniec in Chapter 22 of [17].

5.1. Proof of Theorem 4.1. From Proposition 4.6, we know that we have an ǫ-cutting of R0 .
Thus if we define
                    πV,F (T R0 ) := #{v ∈ V (Z) ∩ T R0 : F (v) is prime},
then we have that for every T > 1:
                                  X
              πV,F (T R0 ) =             πV,F (T /ht(Ω)Ω)) + #{v ∈ V (Z) ∩ T E : F (v) is prime}.
                                 Ω∈Cǫ

  First we handle the error term with a sieve argument. We note that in the construction of the
ǫ−cutting from Proposition 4.6, E will be the finite union of convex regions contained in R0 . Then
          PRIME NUMBER THEOREMS FOR POLYNOMIALS FROM HOMOGENEOUS DYNAMICS                            19

applying Proposition 5.1 on each of the convex regions, we get that there is a constant CF,V ≥ 0
such that
                                                     |T E|                         ǫT dim(V )
                                                                          
       #{v ∈ V (Z) ∩ T E : F (v) is prime} ≤ CF,V           + T dim(V )−1/2 ≤ CF,V            .
                                                    log(T )                         log(T )
  Now, we handle our main term. Under our assumptions, we have that for Ω ⊂ V1 (R) a nice
compact subset,
                                                                     1
                                                    Z
                πV,F (T /ht(Ω)Ω) = (1 + oΩ (1))SV,F                +        dx.
                                                      T /ht(Ω)Ω log (F (x))
Thus, our main term becomes
                                                                                        1
               X                                                    Z
                      πV,F (T /ht(Ω)Ω) = (1 + oǫ (1))SV,F                            +         dx.
               Ω∈Cǫ                                                  ∪Cǫ T /ht(Ω)Ω log (F (x))

By taking ǫ → 0, we obtain
                                                                              1
                                                                Z
                          πV,F (T R0 ) = (1 + o(1))SV,F                    +         dx.
                                                                    T R0 log (F (x))
By the same argument, if the second assumption holds in Theorem 4.1, then by using an ǫ-cutting
of R0 with nice compact subsets Ω ⊂ V−1 (R), the sum over negative primes achieves the final
statement of the theorem.                                                                     
5.2. Proof of Theorem 1.4 and Theorem 1.6. In this section, we combine Theorem 3.1 and
Theorem 3.4 with Theorem 4.1 to achieve Theorem 1.4 and Theorem 1.6.
Proof of Theorem 1.4. First, we note that Theorem 3.1 gives us the first assumption of Theorem
4.1. Next, we remark that the box {kXk ≤ T } ⊂ Matn (R) satisfies the conditions on R0 set by
Theorem 4.1. Hence, we get the following result:
                                                 n
                                                                            1
                                                                Z
                                                       ζ(j)−1
                                                 Y
                      πdet (T ) = (1 + o(1)) ·                               +     dX.
                                                 j=2            kXk≤T log (det(X))

                                                                                                     
Proof of Theorem 1.6. First, we note that Theorem 3.4 gives us the first assumption of Theorem
4.1. Next, we remark that the box {kXk ≤ T } ⊂ Skew2n (R) satisfies the conditions on R0 set by
Theorem 4.1. Hence, we get the following result:
                                                                      1
                                                          Z
                                                  ζ(j)−1 · kXk≤T
                                            Y
                πPff (T ) = (1 + o(1)) ·                            +         dX.
                                         3≤n≤2n−1           T
                                                                 log (Pff(X))
                                                                        X =−X
                                            j odd

                                                                                                     

        6. Background on symmetric matrices and the Siegel Mass Formula
  Finally, we handle the more involved example of the determinant polynomial on symmetric
matrices. Let us first discuss how this case does and does not fit into the general framework
outlined in §2.
  Define G = SLn (R) and V to be the space of symmetric matrices:
                                      V = {X ∈ Matn : X T = X}.
We will take F to be the determinant polynomial on V . Then we have that g ∈ G = SLn acts on
V1 = {X ∈ Matn : X T = X, det(X) = 1} via
                                                 X 7→ gT Xg.
20                                      G. KOTSOVOLIS AND K. WOO

We can then see that V1 (R) is the finite union of n + 1 orbits, where the orbits are parameterized
by the signatures of the symmetric matrices. For p + q = n, let Op,q be the orbit of matrices
with signature (p, q). In this case, the conditions to apply Theorem 1.9 of Oh [28] are not always
satisfied – in particular for the orbit of positive (or negative) definite symmetric matrices, the
stabilizer of the generator diag(1, 1, ..., 1) is SOn (R) and thus compact. To resolve this issue, we
use the Linnik equidistribution result of Einsiedler, Margulis, Mohammadi, and Venkatesh in [13]
to get asymptotics for
                                          1
                    {X ∈ GLn (Z) ∩ m n Ω : X is symmetric positive definite},

for Ω some nice compact subset of SLn (R). To do so, we use the Siegel mass formula to evaluate the
corresponding class numbers. Moreover, by evaluating the local factors of the Siegel mass formula
we calculate the singular series.

  Before proving the prime number theorem for the symmetric case, it is prudent to review some
important facts about the Siegel mass formula. Recall that two integral positive definite symmetric
matrices are in the same genus if they are equivalent over Zp for all p and over R. There are finitely
many equivalence classes in each genus. For a positive definite symmetric matrix S of genus G, the
mass M (S) of S is defined as
                                                      X        1
                                        M (S) :=                      ,
                                                      S ∈G
                                                           |Aut(Sk )|
                                                       k


where the sum is over representatives Sk in the genus G of S and Aut(Sk ) is the automorphism
group of Sk in GLn (Z). We note that M (S) only depends on the genus of S, and could be denoted
as M (G). Siegel’s celebrated mass formula evaluates this quantity as a product of local densities.

Theorem 6.1 (Siegel [32]). Let n ≥ 3 and S be a positive definite symmetric n × n matrix of
determinant D. Then we have the following evaluation of M (S) :
                                                  n
                       M (S) = 2π −n(n+1)/4                        αp (S)−1 · D (n+1)/2 ,
                                                  Y            Y
                                                      Γ(k/2)
                                              k=1              p

where αp is the p-adic density at the prime p defined as

                          1
              αp (S) :=      lim p−ℓn(n−1)/2 #{T ∈ Matn (Z/pℓ Z) : T T ST ≡ S mod pℓ }.
                          2 ℓ→∞
  For all but finitely many primes p in the Siegel mass formula (for p ∤ 2D), the formula for αp (S)
has the following clean expression:
                          Q
                           (n−1)/2 (1 − p−2k ),                                        n odd,
                   std      k=1
(10)              αp (S) = Qn/2−1                                          n/2 D
                                         −2k          ) · (1 − p−n/2 (−1)p
                                                                                   
                          
                                  i=1    (1 − p                                    ),   n even.

                                                                                            n/2
We will call this the standard p-density. Here the Legendre symbol (−1)p D is interpreted as
                                                                                                  

0 if p | 2D.
   Evaluating αp (S) at the nonstandard primes can be tricky; calculating the local factors of the
Siegel mass formula for p = 2 is a notorious problem. Fortunately, we will only need the case when
the determinant D is a prime and hence the only small divisor we have to deal with is 2. We note
that both Kitaoka [21] and Kovaleva [22] evaluated these densities at odd primes; additionally,
Kitaoka evaluates αp (S) for all primes when n is odd.
           PRIME NUMBER THEOREMS FOR POLYNOMIALS FROM HOMOGENEOUS DYNAMICS                                           21

6.1. The density at nonstandard primes p 6= 2. Let p be a nonstandard prime, we want to
look at the p-adic density αp (S). Let us assume that over Qp , S has the Jordan decomposition
                                                     ∞
                                                                pk f k ,
                                                     X
                                             S=
                                                     k=−∞
where fk is the Jordan block with determinant coprime to p. We note that fk = 0 for all but finitely
many values of k. Let us denote the determinant of fk as ∆k and the dimension of the Jordan
block as nk . Then for p 6= 2, the formula for the p-adic density is given by Conway and Sloane in
[8] as the following:

                                            s(n+1)                                      (k′ −k)nk nk′
                          αp (S)−1 = 2p−
                                                     Y                     Y
(11)                                           2              Mp (fk )              p         2

                                                      k                    k ′ >k

where ps kD, the products over k and k′ are over the indices such that fk 6= 0, and
                             n−1
                          1 Q 2 (1 − p−2i )−1 ,                                                        n is odd,
                           2  i=1
              Mp (fk ) =                                n−2
                         1       (−1)n/2 ∆k  −n/2 −1 Q 2                                 −2i )−1 ,
                           2 (1 −      p      p           )      ·   i=1 (1 − p                         n is even.
  Notice that this formula still holds for p a standard prime and hence are definitions are consistent.
Lemma 6.2. Let p be an odd prime and n ≥ 3, then for S a positive definite symmetric matrix of
determinant p, we have that
                                     p−1                            
                            αp (S)−1 =   · αstd
                                            p   (S)−1
                                                      ·  1 + O(p −2
                                                                    )  .
                                      2
Proof. Since p is an odd prime, we have that the only nontrivial Jordan blocks are f0 and f1 .
Moreover, f0 has dimension n0 = n − 1 and f1 has dimension n1 = 1. Thus, we get that
                                    αp (S)−1 = 2p−1 Mp (f0 )Mp (f1 ).
Evaluating Mp (f0 ) and Mp (f1 ), we get that
                                           p−1                        
                            αp (S)−1 =         · αstd
                                                  p (S)
                                                       −1
                                                          · 1 + O(p−2 ) .
                                            2
                                                                                                                     
6.2. The 2-adic density. For the 2-adic density, there is a more complicated formula than (11)
that takes into account the specifics of the Jordan decomposition.
Definition 6.3. A Jordan block fk is said to be Type I if fk represents an odd number in Z2 . In
this case, fk can be taken to be diagonal. Otherwise, fk is said to be Type II and will be a direct
sum of matrices of the form         
                                       2w u
                                                             
                                                : w, u, v ∈ Z2 .
                                        u 2v
We note that Type II Jordan blocks can only occur if n is even.
  In [8], Conway and Sloane introduce the notion of love forms, which are 0-dimensional Jordan
blocks that still contribute to the formula.
Definition 6.4. A Jordan block fk with nk = 0 is called a love form. These forms are considered
Type II forms.
Remark 6.5. We note that in some sense love forms are nonexistent, as they are zero-dimensional
Jordan blocks. Nonetheless, they are a useful trick and convention to simplify the exposition around
the Siegel mass formula at p = 2.
22                                        G. KOTSOVOLIS AND K. WOO

  If fk is a love form and fk+1 or fk−1 is a Type I Jordan block, then there is a contribution of
M2 (fk ) = 12 ; such a form fk is called a bound love form. Otherwise, fk is called a free love
form, and M2 (fk ) = 1. With this context, we can introduce the modification of (11) at the place
p = 2:
                                         s(n+1)                                  (k′ −k)nk n ′
                                                                                            k
                    αp (S)−1 = 2 · 2−                                                            × 2n(I,I)−n(II) ,
                                                  Y                 Y
(12)                                        2         M2 (fk )               2         2

                                                  k                 k ′ >k

where 2s kD, n(I, I) is the number of adjacent Type I Jordan blocks, and n(II) is the sum of the
dimensions of all of the Jordan blocks of Type II.
   In our case, since D is some odd prime, the only relevant forms are f0 and the love forms. If f0
is a nontrivial Jordan block, the value of M2 (f0 ) depends on amod8 invariant.

Definition 6.6. Let S denote some positive definite integral matrix of discriminant D. If f0 is
Type I, then it is diagonalizable and we take Ei to be the number of elements on the diagonal that
are congruent to i mod 4. We define the octane OS to be:
                                              (
                                                  E1 − E3 , f1 is Type I,
                                     OS :=
                                                  4 − 4 D2 , f1 is Type II.
                                                          


The octane is amod8 invariant.

  Now the definition of M2 (f0 ) is given by the following:
(13)
                      n−3
              
                                            1−n
                     (1 − 2−2i )−1 · (1 − 2 2 )−1 ,                    n is odd, and OS ≡ ±1 mod 8,
              Q 2
                i=1
             
             
             
              Q n−3       −2i )−1 · (1 + 2 1−n
                                             2 )−1 ,
             
                i=1 (1 − 2                                             n is odd, and OS ≡ ±3 mod 8,
             
                 2
             
             
             
                n−2
                           −2i )−1 ,
                i=1 (1 − 2                                             n is even, f0 is Type I, and OS ≡ ±2 mod 8,
                  2
             
              Q
             
          1
             
                 n−4
             
M2 (f0 ) = ×               −2i )−1 · (1 − 21− n 2 )−1 ,
                i=1 (1 − 2                                             n is even, f0 is Type I, and OS ≡ 0 mod 8,
               Q 2
          2    n−4                           n
                     (1 − 2−2i )−1 · (1 + 21− 2 )−1 ,
             
                                                                       n is even, f0 is Type I, and OS ≡ 4 mod 8,
              Q 2
             
              i=1
             
             Q n−2
                                             n
                     (1 − 2−2i )−1 · (1 − 2− 2 )−1 ,
             
             
             
             
                  2
                i=1                                                    n is even, f0 is Type II, and OS ≡ 0 mod 8,
              n−2
             Q 2 (1 − 2−2i )−1 · (1 + 2− n2 )−1 ,
             
                                                                       n is even, f0 is Type II, and OS ≡ 4 mod 8.
             
                      i=1

     Let us evaluate the 2-density for when D is an odd prime.

Lemma 6.7. Let D be an odd prime and n ≥ 3. Then for S a positive definite symmetric matrix
of determinant D, we have that if n is odd, then
                                   n−3                          (            1−n
                        −1     1 Y2
                                                     (1 − 2 2 )−1 ,                              OS ≡ ±1 mod 8,
                   α2 (S)    =       (1 − 2−2i )−1 ×       1−n
                               4 i=1                 (1 + 2 2 )−1 ,                              OS ≡ ±3 mod 8.

If n is even, then we have that
           Q n−2
            1              −2i )−1 ,
               i=1 (1 − 2                                             n is even, f0 is Type I, and OS ≡ ±2 mod 8,
                2
          
           4
          
               n−4                          n
            1    2
                    (1 − 2−2i )−1 · (1 − 21− 2 )−1 ,                  n is even, f0 is Type I, and OS ≡ 0 mod 8,
          
             Q
           4 i=1
          
          
              Q n−4
α2 (S)−1 = 1 i=1
                                             n
           4
                 2
                    (1 − 2−2i )−1 · (1 + 21− 2 )−1 ,                  n is even, f0 is Type I, and OS ≡ 4 mod 8,
               Q n−2                          n
          2−n i=1     (1 − 2−2i )−1 · (1 − 2− 2 )−1 ,
                   2
                                                                      n is even, f0 is Type II, and OS ≡ 0 mod 8,
          
          
          
           −n Q n−2
          
                                             − n −1
          
                             −2i −1
                      i=1 (1 − 2           · (1 + 2                   n is even, f0 is Type II, and OS ≡ 4 mod 8.
                    2
               2                     )                  2   )   ,
          PRIME NUMBER THEOREMS FOR POLYNOMIALS FROM HOMOGENEOUS DYNAMICS                                               23

Proof. We will prove this by looking at the various cases. Since D is an odd prime, we know the
only nontrivial Jordan block occurs for f0 . First, we assume n is odd. Then, we have that
                  α2 (S)−1 = 2M2 (f−1 )M2 (f0 )M2 (f1 )
                                   n−3                           (          1−n
                             1 Y2
                                                   (1 − 2 2 )−1 , OS ≡ ±1 mod 8,
                           =       (1 − 2−2i )−1 ×       1−n
                             4 i=1                 (1 + 2 2 )−1 , OS ≡ ±3 mod 8.
Here we have inputted the contributions from the love forms f−1 and f1 . If n is even, we have that
α2 (S)−1 = 2M2 (f−1 )M2 (f0 )M2 (f1 ) · 2n(I,I)−n(II)
           Q n−2
           41 i=1
          
          
                 2
                    (1 − 2−2i )−1 ,                                      n is even, f0 is Type I, and OS ≡ ±2 mod 8,
               n−4
                           −2i )−1 · (1 − 21− n
          
            1                                 2 )−1 ,
                 2
                       −                                                 n is even, f0 is Type I, and OS ≡ 0 mod 8,
              Q
                    (1    2
          
          
          
           4  i=1
                n−4
          
                                              n
         = 1 i=1    (1 − 2−2i )−1 · (1 + 21− 2 )−1 ,                     n is even, f0 is Type I, and OS ≡ 4 mod 8,
              Q 2
           4
           −n Q n−2
          
                             −2i )−1 · (1 − 2− n2 )−1 ,
                   i=1 (1 − 2                                            n is even, f0 is Type II, and OS ≡ 0 mod 8,
                     2
            2
          
          
          
          
                  n−2
                                             − n −1
          
           −n               −2i −1
                      i=1 (1 − 2              · (1 + 2               , n is even, f0 is Type II, and OS ≡ 4 mod 8.
                     2
              2
                Q
                                     )                   2   )

Here we have used that if f0 is Type II, we have that 2n(I,I)−n(II) = 2−n and no contribution from
f−1 or f1 since they are both free love forms. In the case, where f0 is Type I, we have used that
2n(I,I)−n(II) = 1 and we have a contribution of 21 from each of the two bound love forms f−1 and
f1 .                                                                                             

                                              7. Symmetric matrices
  Let V = Symn = {X ∈ Matn : X T = X} be a Z-linear space. Unlike the case of (Matn , det),
the pair (Symn , det) is not a Hardy-Littlewood system; however, along the indefinite orbits it is a
“almost” a Hardy-Littlewood system. We will first treat these orbits.

7.1. The indefinite orbit. Let us fix p, q such that p + q = n and p, q 6= 0. For the orbits Op,q
of symmetric matrices with signature (p, q), we apply the following result of Oh in [28]. Here we
denote by µm the Tamagawa measure on the variety Vm (A) :
Theorem 7.1 (Oh [28], Example 4.3). Let n ≥ 3. Let Ω ⊂ Op,q be a nice connected compact
subset. Then we have that as m → ∞,
                                                                             Z
             N (m, Ω) = #{Vm (Z) ∩ R+ Ω} = (1 + oΩ (1))                            1      Q              δ(x)dµm (x).
                                                                                 m n Ω×       Vm (Zp )
                                                                                          p


Here, the density function δ : Vm (A) → R is constant on any adelic orbit O(A) ⊂ Vm (A) and
satisfies that for x ∈ O(A) we have:
                                     (
                                         2,     O(A) contains a Q-rational point,
                           δ(x) =                                                 .
                                         0,     otherwise.

Remark 7.2. As described in Example 6.3 of [3], we can interpret x ∈ Vm (A) itself as a quadratic
form and thus
                                               Y
                               δ(x) 6= 0 ⇐⇒       cp (xp ) = 1,
                                                                     p

where cp (xp ) are the Hasse-Minkowski invariants (see [6]) and the product ranges over both finite
and infinite places.
24                                                   G. KOTSOVOLIS AND K. WOO

  Restricting to the case of when m is some odd prime q, we notice that for any prime p 6= 2, q,
there is a unique SLn (Zp )−orbit inside of Vq (Zp ). Furthermore, in this case for any x ∈ Vq (A), we
have that
                                             cp (xp ) = 1.
Since the signature of x∞ ∈ Ω is fixed, we have that
                                                 c∞ (x∞ ) = (−1)s(s−1)/2 =: c∞ (Ω),
where s is the negative index of the signature of x. Hence, we can see that
                                               δ(x) 6= 0 ⇐⇒ c2 (x)cq (x) = c∞ (Ω).
Recalling that the Tamagawa measure µm can be written as
                                                                       Y
                                                              µm =             µm,p ,
                                                                         p
                                                                      inc. ∞

we get the following:
Corollary 7.3. Let q be an odd prime. Then as q → ∞, we have that
                                                                                                                                              
                                                                                
                                      n−1                 Y                                       X                                           
     N (q, Ω) = (1+oΩ (1))2q 2 µ∞ (Ω)·                           µq,p (Vq (Zp ))·                               µq,2 (G2 (Z2 ))µq,q (Gq (Zq ))
                                                                                                                                              
                                                                                                                                              
                                                         p6=2,q                                   G2 ,Gq
                                                                                         c2 (G2 )cq (Gq )=c∞ (Ω)

where for some SLn (Zp )-orbit Gp ⊂ Vq (Zp ), we have
                                                                               #Gp (Z/pk Z)
                                                 µp,q (Gp (Zp )) = lim               n(n+1)
                                                                                                  .
                                                                       k→∞
                                                                               pk(      2
                                                                                            −1)

The sum over G2 (resp. Gq ) is over the orbits of SLn (Z2 ) (resp. SLn (Zq )) inside of Vq (Z2 ) (resp.
Vq (Zq )).
Proposition 7.4. For n ≥ 3 odd, as the prime q goes to ∞, we have that
                                                                                                 
                          
                                                                                                      1 Y
                                                                                                                ζ(j)−1 (1 + O(q −1 )).
      Y                                       X
              µq,p (Vq (Zp )) ·                              µq,2 (G2 (Z2 ))µq,q (Gq (Zq )) =
                                                                                                
     p6=2,q
                               
                                              G2 ,Gq
                                                                                                       2 3≤j≤n
                                     c2 (G2 )cq (Gq )=c∞ (Ω)                                                j odd

For n ≥ 4 even, as the prime q goes to ∞, we have that
                                                                                              
      Y                                    X                                                  
              µq,p(Vq (Zp )) ·                              µq,2 (G2 (Z2 ))µq,q (Gq (Zq )) =
                                                                                              
                                                                                              
     p6=2,q                                 G2 ,Gq
                                   c2 (G2 )cq (Gq )=c∞ (Ω)
                                                                                     !
                                     1 Y                   (−1)n/2 q
                                             ζ(j)−1 L(n/2,           ) · (1 + O(q −1 ))
                                     2 3≤j≤n                  ·
                                         j odd
                                                                    
                                                                    1,
                                                                    
                                                                                            q 6≡ (−1)n/2 mod 4,
                                                                               21−n
                                                     × ζ(n)−1         1+1−2−n/2
                                                                                         ,   q ≡ (−1)n/2 mod 4, q ≡ ±1 mod 8,
                                                                    1 − 21−n ,
                                                                    
                                                                                             q ≡ (−1)n/2 mod 4, q ≡ ±3 mod 8.
                                                                    
                                                                           1−2−n/2
           PRIME NUMBER THEOREMS FOR POLYNOMIALS FROM HOMOGENEOUS DYNAMICS                                        25

Proof. First, we remark that for any finite place p, and any SLn (Zp )-orbit G of matrices inside
Vq (Zp ), we have that
                                                    #G(Z/pk Z)
                                µp,q (G(Zp )) = lim              ,
                                               k→∞ k( n(n+1) −1)
                                                    p    2

where #G(Z/pk Z) are the number of matrices in Vq (Z/pk Z) inside the orbit G.

   We begin our analysis with the case of n odd. First, we look at the standard primes: p 6= 2, q.
When dealing with these primes, the action of SLn (Z/pk Z) on Vq (Z/pk Z) given by S · g = gT Sg
for g ∈ SLn (Z/pk Z) and S ∈ Vq (Z/pk Z) is transitive. Thus, we get that
                                                                  #SLn (Z/pk Z)
                            #Vq (Z/pk Z) =                                                 .
                                                           #{g ∈ SLn (Z/pk Z) : gT Sg = S}
For the numerator, it is not hard to see that
                                                                                 n
                                                                         2
                                         #SLn (Z/pk Z) = pk(n −1)                    (1 − p−j ).
                                                                                 Y

                                                                                 j=2

On the other hand, for k sufficiently large,
                                                                                                    n(n−1)
                          #{X ∈ GLn (Z/pk Z) : X T SX = S} = 2αp (S)pk                                 2     .
This in turn gives us that since n is odd and p 6= 2, q,
                                                                                                n(n−1)
                            #{g ∈ SLn (Z/pk Z) : gT Sg = S} = αp (S)pk                             2     .
Thus, we have that
                                                                        n
                           #Vq (Z/pk Z)
                                                       = αstd  −1
                                                                             (1 − p−j ) =           (1 − p−j ).
                                                                        Y                       Y
                    lim             n(n+1)                p (S)
                   k→∞         k(          −1)
                           p           2                                j=2                 3≤j≤n
                                                                                             j odd

   Next, we handle the case when n ≥ 3 is odd and p = q. In this case, the action of SLn (Z/q k Z) on
Vq (Z/q k Z) is no longer transitive and we have two disjoint orbits. Let us call the two representatives
S1q and S2q . Like before, for k sufficiently large, we can express the stabilizers in terms of the Siegel
masses:
                                                                              n(n−1)
                        #{X ∈ GLn (Z/q k Z) : X T Siq X = Siq } = 2αq (Si )q k 2 .
We note that this indeed implies
                                                                                       n(n−1)
                                                                  2αq (Siq )q k 2                    kn(n−1)
                      k
     #{g ∈ SLn (Z/q Z) : g          T
                                        Siq g = Siq } =               k     2         k
                                                                                         = αq (Siq )q 2 −1 .
                                                             #{x mod q : x q ≡ q mod q }
Hence, for any of the orbits Gq :
                                                                        n
                                             #Gq (Z/q k Z)
                                                                              (1 − q −j )αq (Gq )−1 .
                                                                        Y
                                    lim               n(n+1)
                                                                   =q
                                    k→∞          k(          −1)
                                             q           2              j=2

Applying Lemma 6.2, we can see that
                                        #Gq (Z/q k Z)              1 Y
                           lim                n(n+1)
                                                             =            (1 − q −j )(1 + O(q −2 )).
                           k→∞
                                        q   k( 2 −1)               2 3≤j≤n
                                                                     j odd

  Finally, we look at the case p = 2. We have two orbits here generated by S12 and S22 , where
OS1 ≡ ±1 mod 8 and OS2 ≡ ±3 mod 8. We note that both S12 and S22 will appear in the final sum;
26                                                  G. KOTSOVOLIS AND K. WOO

in particular, for each of the Si2 there exists exactly one SLn (Zq )-orbit, represented by Sjq , such
that
                                            c2 (Si2 )cq (Sjq ) = c∞ (Ω).
Hence, we get that
                                                                1 Y Y
                                                                            (1−p−j )(1+O(q −2 ))· µq,2 (G2 (Z2 )),
  Y                      X                                                                       X
       µq,p (Vq (Zp ))·      µq,2 (G2 (Z2 ))µq,q (Gq (Zq )) =
p6=2,q                  G ,G
                                                                2 3≤j≤n p6=2                     G
                         2   q                                                                                                     2
               c2 (G2 )cq (Gq )=c∞ (Ω)                                           j odd

where we are summing over the disjoint orbits inside of Vq (Z2 ).

     In order to conclude the odd case of the Proposition, we are left with evaluating
                                 #SLn (Z/2k Z)                     #SLn (Z/2k Z)
       #Vq (Z/2k Z) =                                     +                                      .
                                                2      2
                         #{g ∈ SLn (Z/2 Z) : g S1 g = S1 } #{g ∈ SLn (Z/2k Z) : gT S22 g = S22 }
                                       k      T

We note again that
                                                                                                            kn(n−1)
                         #{X ∈ GLn (Z/2k Z) : X T Si2 X = Si2 } = 2α2 (Si2 )2                                  2      .
For n odd and k sufficiently large, we will have that
                                        1                                        α2 (Si2 ) kn(n−1)
 #{g ∈ SLn (Z/2k Z) : gT Si2 g = Si2 } = #{X ∈ GLn (Z/2k Z) : gT Si2 g = Si2 } =          ·2 2 ,
                                        4                                           2
where we have used that the equation x2 ≡ 1 mod 2k has 4 solutions for k ≥ 3.

     Summing these together, we obtain
                                                         n
                                 #Vq (Z/2k Z)
                                                             (1 − 2−j )(2α2 (S12 )−1 + 2α2 (S22 )−1 )
X                                                        Y
     µq,2 (G2 (Z2 )) = lim             n(n+1)
                                                     =
                        k→∞       k(          −1)
G2                               2        2              j=2
                                                                                                            1               1
                                                                                                                                                  
                                                                                                                    1−n            1−n
                                                                         −j                 1−n
                                                                                                              (1 − 2 2 )−1 + (1 + 2 2 )−1 .
                                                          Y
                                                     =         (1 − 2          ) · (1 − 2          )·
                                                         3≤j≤n
                                                                                                            2               2
                                                          j odd
Above, we applied Lemma 6.7. We evaluate this expression to derive:
                                                    #Vq (Z/2k Z)
                                                                                     (1 − 2−j ).
                                                                               Y
                                            lim        n(n+1)
                                                                        =
                                           k→∞       k( 2 −1)
                                                    2                       3≤j≤n
                                                                             j odd
Combining all of the factors together, we have the odd case of Proposition 7.4.

   We now move on to the even case. The strategy will be the same as before, with the details being
slightly more cumbersome due to the complexities of the possible Type II Jordan blocks showing
up at the prime 2. We start by handling the standard primes: p 6= 2, q. Again, we consider the
action of SLn (Z/pk Z) on Vq (Z/pk Z) given by S · g = gT Sg. Like before, the action is transitive and
since S is diagonalizable (p is a standard prime), we can assume that S is diagonal. We have
                                    #SLn (Z/pk Z)                    2 · #SLn (Z/pk Z)
         #Vq (Z/pk Z) =                                      =                                 ,
                             #{g ∈ SLn (Z/pk Z) : gT Sg = S}   #{g ∈ GLn (Z/pk Z) : gT Sg = S}
where the second equality comes from the fact that since S is diagonal, for any element of GLn (Z/pk Z)
such that gT Sg = S and det(g) = −1, we have that diag(−1, 1, ..., 1) · g ∈ SLn (Z/pk Z) and
(diag(−1, 1, ..., 1) · g)T S(diag(−1, 1, ..., 1) · g) = S. Since
                                                                                                   n/2−1                                          !
                    k            T                                k
                                                                      n(n−1)
                                                                                      k
                                                                                          n(n−1)    Y
                                                                                                                   −2k             −n/2   (−1)n/2 q
#{X ∈ GLn (Z/p Z) : X SX = S} = 2αp (S)p                                 2     = 2p          2              (1−p          )·(1−p                    ),
                                                                                                    i=1
                                                                                                                                             p
              PRIME NUMBER THEOREMS FOR POLYNOMIALS FROM HOMOGENEOUS DYNAMICS                                                           27

we obtain
                                                                                                                             !!−1
                     #Vq (Z/pk Z)                   Y
                                                                      −j                −n               −n/2   (−1)n/2 q
(14)           lim         n(n+1)
                                             =               (1 − p        ) · (1 − p        ) 1−p                                  .
              k→∞
                     pk(      2
                                  −1)
                                                 3≤j≤n
                                                                                                                   p
                                                  j odd

   Next, we consider the case p = q with n even. There are now two orbits of the action of
SLn (Z/q k Z) on Vq (Z/q k Z) and again we can take our two representatives to be diagonal matrices
S1q and S2q . We consider each term individually: For k sufficiently large
                                                                                                                n(n−1)
                           #{X ∈ GLn (Z/q k Z) : X T Siq X = Siq } = 2αq (Siq )q k                                 2     ,
which implies
                                                                                                n(n−1)
                                                                      2αq (Siq )q k 2                     q kn(n−1)
                           k
       #{g ∈ SLn (Z/q Z) : g            T
                                            Siq g = Siq } =                                       = αq (S i )q 2 −1 .
                                                                 #{x mod q k : x2 q ≡ q mod q k }
Thus, we have that
                                                                                n
                                                 #Gq (Z/q k Z)
                                                                                    (1 − q −j )αq (Gq )−1 ,
                                                                                Y
                                         lim             n(n+1)
                                                                       =q
                                        k→∞         k(          −1)
                                   q                 j=2    2

for Gq an SLn (Zq )-orbit inside of Vq (Zq ). From Lemma 6.2, we know that
                                                               n/2−1
                                                         1                                  
                                 αq (Gq )−1 =                   (1 − q −2j )−1 · 1 + O(q −2 ) ,
                                                             Y
                                                           ·
                                                         2q j=1
concluding that
                               #Gq (Z/q k Z)                 1 Y
(15)                  lim              n(n+1)
                                                         =          (1 − q −j ) · (1 − q −n ) · (1 + O(q −2 )).
                      k→∞
                                q k(      2
                                              −1)            2 3≤j≤n
                                                               j odd

   We are left with the trickiest case to consider: n is even and p = 2. Again, for each SLn (Z2 )-
orbit there is exactly one SLn (Zq )-orbit, such that the product of the Hasse-Minkowski invariants
is c∞ (Ω). So, it suffices to calculate
                                              X                                       #Vq (Z/2k Z)
                                                    µq,2 (G2 (Z2 )) = lim                     n(n+1)
                                                                                                           .
                                                                                k→∞
                                               G2                                       2k(      2
                                                                                                     −1)

To see this, we recall that
                                                                                        #SLn (Z/2k Z)
                    #G2 (Z/2k Z) = #Vq (Z/2k Z) =
               X                                                           X
                                                                                                                     .
               G2                                                          Si
                                                                                #{X ∈ SLn (Z/2k Z) : X T Si X = Si }
As we explained earlier
             #{X ∈ GLn (Z/2k Z) : X T Si X = Si } = 4#{X ∈ SLn (Z/2k Z) : X T Si X = Si }.
Now, if q 6≡ (−1)n/2 mod 4, then there are again two orbits – both have f0 being Type I, and either
we have OS1 ≡ 0 mod 8, OS2 ≡ 4 mod 8 or OS1 ≡ 2 mod 8 and OS2 ≡ −2 mod 8. Thus, we have
that
                                         n
                         #Vq (Z/2k Z)                                          
                                            (1 − 2−j ) 2α2 (S1 )−1 + 2α2 (S2 )−1 .
                                        Y
                     lim    n(n+1)
                                      =
                    k→∞ k( 2 −1)
                         2              j=2
Applying Lemma 6.7, we see that if OS1 ≡ 0 mod 8 and OS2 ≡ 4 mod 8,
                                       n−4                                                                                    n−2
                                    2                                                       2
        −1             −1        1 Y                                                   1 Y
α2 (S1 )     + α2 (S2 )        =       (1 − 2−2i )−1 (1 − 21−n/2 )−1 + (1 + 21−n/2 )−1 =       (1 − 2−2i )−1 .
                                 4 i=1                                                   2 i=1
28                                               G. KOTSOVOLIS AND K. WOO

Similarly, if OS1 ≡ 2 mod 8 and OS2 ≡ −2 mod 8, we have

                                                n−4                                                    n−2
                                               2                                       2
                 −1                −1       1 Y                                   1 Y
          α2 (S1 )    + α2 (S2 )          =       (1 − 2−2i )−1 2 · (1 − 22−n )−1 =       (1 − 2−2i )−1 .
                                            4 i=1                                   2 i=1


Thus, in the case where q 6≡ (−1)n/2 mod 4, we have that

                                          #Vq (Z/2k Z)
                                                                            (1 − 2−j ) · (1 − 2−n ).
                                                                        Y
(16)                              lim         n(n+1)
                                                                =
                                  k→∞       k( 2 −1)
                                           2                        3≤j≤n
                                                                     j odd



   If q ≡ (−1)n/2 mod 4 and q ≡ ±1 mod 8, there are three orbits generated by S1 , S2 , S3 – two of
them S1 , S2 are such that f0 is Type I and OS1 − OS2 ≡ 4 mod 8 and the final one S3 is such that
f0 is Type II and OS3 ≡ 0 mod 8. We know that

                                               n
                      #Vq (Z/2k Z)                                                                                  
                                                   (1 − 2−j ) 2α2 (S1 )−1 + 2α2 (S2 )−1 + 2α2 (S3 )−1 ,
                                               Y
               lim           n(n+1)
                                           =
              k→∞
                       2k(      2
                                    −1)
                                               j=2


and we can compute

                                                           n−2                             n−2
                                               2                       2
                                            1 Y
     α2 (S1 )−1 + α2 (S2 )−1 + α2 (S3 )−1 =       (1 − 2−2i )−1 + 2−n     (1 − 2−2i )−1 · (1 − 2−n/2 )−1
                                                                      Y
                                            2 i=1                     i=1
                                                         n−2
                                                          2
                                                                                     1       1
                                                                                                       
                                                                        −2i −1
                                                         Y
                                                     =         (1 − 2       )          + n            .
                                                         i=1
                                                                                     2 2 (1 − 2−n/2 )


Hence we obtain
                                                                                                             !
                         #Vq (Z/2k Z)           −j
                                                      Y
                                                             −n           21−n
(17)                  lim   n(n+1)
                                   =      (1 − 2   ) · (1 − 2   ) · 1 +                                          .
                     k→∞ k( 2 −1)
                          2          3≤j≤n
                                                                        1 − 2−n/2
                                                     j odd



   Our final case is when q ≡ (−1)n/2 mod 4 and q ≡ ±3 mod 8. We have a similar situation here to
the case before, except our three orbits are generated by S1 , S2 , S3 – where S1 , S2 have f0 Type I and
OS1 − OS2 ≡ 4 mod 8, and S3 has f0 Type II and OS3 ≡ 4 mod 8. Following similar computations
as above, we get that

                                                                                                             !
                         #Vq (Z/2k Z)                                     21−n
                                          (1 − 2−j ) · (1 − 2−n ) · 1 +
                                                      Y
(18)                  lim          =                                                                             .
                          2
                            n(n+1)
                     k→∞ k( 2 −1)
                                     3≤j≤n
                                                                        1 + 2−n/2
                                                     j odd


Combining (14), (15), (16), (17), and (18) together, we get the desired result.                                          
            PRIME NUMBER THEOREMS FOR POLYNOMIALS FROM HOMOGENEOUS DYNAMICS                                                  29

  Let us sum up the N (p, Ω) for n ≥ 3 odd: applying Corollary 7.3 and Proposition 7.4, we have
that as T → ∞
                               X
                 π(T Ω) =              N (p, Ω)
                               p≤T n
                                                                       n−1   1 Y
                                                                                     ζ(j)−1 (1 + O(p−1 ))
                                                            X
                         = 2µ∞ (Ω)(1 + oΩ (1))                     p 2 ·
                                                           p≤T n
                                                                             2 3≤j≤n
                                                                                j odd
                                                                                      n−1
                                                  ζ(j)−1 (1 + oΩ (1))
                                          Y                                     X
                         = µ∞ (Ω)                                                    p 2
                                         3≤j≤n                               p≤T n
                                          j odd
                                                                       n(n+1)
                                          Y
                                                      −1       2T 2
                         = µ∞ (Ω)                 ζ(j)                        (1 + oΩ (1)).
                                         3≤j≤n
                                                            (n + 1) log(T n )
                                          j odd
We remark that Lemma 2.5 tells us that
                            1                         T dim(V )
                  Z
                          +         dx = µ ∞ (Ω) ·                 (1 + o(1)).
                   T Ω log (det(x))                dim(V ) log(T )
Since dim(V ) = n(n+1)
                   2   , this gives us the following result.
Lemma 7.5. For n ≥ 3 odd, and Ω a compact subset in the orbit Op,q with p, q 6= 0, we have that
                                                                 1
                                    Y                 Z
                  π(T Ω) = ψ(p, q)       (1 + oΩ (1))          +         dx,
                                   3≤j≤n                T Ω log (det(x))
                                                   j odd
where                                                        (
                                                                 1,     q even,
                                              ψ(p, q) =
                                                                 0,     otherwise.
  Finally, we end this section by summing up the N (p, Ω) for n ≥ 4 even. We utilize that while
Proposition 7.4 has many cases, they are completely determined by the value of p mod 8. So, for
T sufficiently large, we can write:
                   X                                 X                                      X
 π(T Ω) =                      N (p, Ω) +                             N (p, Ω) +                      N (p, Ω)
                 p≤T n                              p≤T n                                  p≤T n
            p6≡(−1)n/2 mod 4                 p≡(−1)n/2 mod 4                        p≡(−1)n/2 mod 4
                                               p≡±1 mod 8                             p≡±3 mod 8
         1
        = ψ(p, q)µ∞ (Ω)ζ(n)−1       ζ(j)−1 (1 + oΩ (1))
                               Y
         2                    3≤j≤n
                                          j odd

                           X                               n−1               X                          n−1          21−n
               ×                         L(n/2, χp )p 2 +                                  L(n/2, χp )p 2 · (1 +             )
                         p≤T n                                            p≤T n
                                                                                                                   1 − 2−n/2
                    p6≡(−1)n/2 mod 4                                  p≡(−1)n/2 mod 4
                                                                        p≡±1 mod 8
                                                                                                           !
                                                   X                                n−1          21−n
                                        +                        L(n/2, χp )p        2    (1 +           ) ,
                                                p≤T n
                                                                                               1 + 2−n/2
                                            p≡(−1)n/2 mod 4
                                              p≡±3 mod 8
               (−1)n/2 p
where χp =         ·     . To evaluate the above sums, it suffices to determine an asymptotic for the
following:
30                                                       G. KOTSOVOLIS AND K. WOO

Lemma 7.6. For n ≥ 4, we have that for (a, 8) = 1 as T → ∞,
                                                                                                     n(n+1)
                                                                                                                             
                                                   n−1     ζ(n)                  2T 2
                                                                · 1 − 2−n · 
                      X                                                  
                               L(n/2, χp )p         2    =                                     (1 + o(1) .
                   p≤T n
                                                            4                 n(n + 1) log(T )
                 p≡a mod 8

Proof. Since n ≥ 4, we can expand out the definition of L(n/2, χp ):
                                        ∞                                         ∞
                                                                  !                                                              !
                 X           n−1        X         (−1)n/2 p  1                    X        1           X           n−1   (−1)n/2 p
                         p    2                                  =                                             p    2              .
             p≤T n                   m=1
                                                     m      mn/2               m=1
                                                                                          mn/2      p≤T n
                                                                                                                            m
           p≡a mod 8               (m,2p)=1                                   (m,2)=1             p≡a mod 8

                                                                          n/2 p
We note that since m is odd, the character (−1)m
                                                                                  
                                                                                      is trivial if and only if m is a square. In this
case, we have the contribution to the sum is:
                                                                                        n(n+1)
                                                                                                                                       
        ∞
                  1                     n−1     ζ(n)                     2T 2               n(n+1)
                                                     · (1 − 2−n ) ·                   + O(T 2 log(T )−101 ) .
        X               X
                                    p    2    =
         ℓ=1
                 ℓn     p≤T n
                                                 4                    n(n + 1) log(T )
       (ℓ,2)=1        p≡a mod 8

     On the other hand, if m is not a square and m ≥ log(T )101 , we have that since n ≥ 4,
                                                              !               n(n+1)
                   1                            (−1)n/2 p n−1   T 2                                    1        n(n+1)
                                                                                                                       log(T )−102 .
         X                         X                                                         X
                    n/2
                                                          p 2 ≪                                         n/2
                                                                                                            ≪ T    2
                  m            p≤T n
                                                   m            log(T )                               m
     m≥log(T )101                                                                        m≥log(T )101
                             p≡a mod 8

Finally, if m is not a square, the character is nontrivial and we have that
                                                                      !
                                                        (−1)n/2 p n−1    n(n+1)
                                                                  p 2 ≪ T 2 log(T )−101 ,
                                              X

                                          p≤T n
                                                           m
                                        p≡a mod 8

for m ≤ log(T )101 . Together, we get the lemma.                                                                                           

     Plugging this into π(T Ω), we get:
                                                                                             n(n+1)
                                               Y
                                                          −1                     2T 2
       π(T Ω) = ψ(p, q)µ∞ (Ω)                          ζ(j)    (1 + oΩ (1)) ·
                                              3≤j≤n
                                                                              n(n + 1) log(T )
                                               j odd
                                                                                                                                       !
                                   1             1                 21−n        1                  21−n
                         ×           (1 − 2−n ) + (1 − 2−n )(1 +           ) +   (1 − 2−n
                                                                                          )(1 +           )
                                   2             4               1 − 2−n/2     4                1 + 2−n/2
                                                                          n(n+1)
                                               Y
                                                          −1           2T 2
                 = ψ(p, q)µ∞ (Ω)                       ζ(j)       ·                  · (1 + oΩ (1)).
                                              3≤j≤n
                                                                    n(n + 1) log(T )
                                               j odd

Thus, we get the following lemma.

Lemma 7.7. For n ≥ 3 even, and Ω a nice compact subset in the orbit Op,q with p, q 6= 0, we have
that as T → ∞,
                                                                 1
                                    Y                 Z
                  π(T Ω) = ψ(p, q)       (1 + oΩ (1))          +         dx.
                                   3≤j≤n                T Ω log (det(x))
                                                              j odd
          PRIME NUMBER THEOREMS FOR POLYNOMIALS FROM HOMOGENEOUS DYNAMICS                         31

7.2. The positive-definite orbit. For positive definite symmetric matrices, we can no longer
apply Oh’s result, since the stabilizer SOn (R) is a compact group. Instead, we appeal to an
equidistribution result of Einsiedler, Margulis, Mohammadi, and Venkatesh [13]. We will proceed
for the case of positive definite matrices On,0 (which produce positive primes), as the negative
definite case is identical.
7.2.1. Linnik equidistribution. Let M = PGLn (Z)\PGLn (R)/POn (R) be the space of PGLn (Z)-
equivalence classes of positive definite quadratic forms over Rn . We equip M with the pushforward
of the Haar measure on PGLn (Z)\P GLn (R). We now quote the main equidistribution result that
we require from Einsiedler, Margulis, Mohammadi, and Venkatesh [13]:
Theorem 7.8 (Einsiendler, Margulis, Mohammadi, Venkatesh, [13] Theorem 3.1). Suppose {Qi }∞    i=1
varies through any sequence of pairwise inequivalent, integral, positive definite quadratic forms.
Then the genus of Qi , considered as a subset of PGLn (Z)\PGLn (R)/POn (R), equidistributes as
i → ∞.
  Recall that two integral quadratic forms in the same genus have the same determinant. As a
corollary we have the following:
Corollary 7.9. Let M = PGLn (Z)\PGLn (R)/POn (R) be the space of positive definite quadratic
forms of determinant 1 up to Z-equivalence, equipped with µ, the pushforward of the Haar measure
on PGLn (Z)\PGLn (R) normalized so that µ(M) = 1. Let Qm ⊂ M denote the family of integral
quadratic forms of determinant equal to m. If µm denotes the normalized Dirac measure over the
family Qm , then as m → ∞:
                                                w∗
                                           µm −−→ µ.
Proof. We note that for a fixed value of m, since Qm contains all integral quadratic forms of
determinant m, we can write it as
                                          Qm = ∪Gi Qm,Gi ,
where Gi runs through the set of genera with determinant m and Qm,Gi is a set containing all of
the inequivalent integral forms inside of Gi . Applying Theorem 7.8 to Qm,Gi , we have that these
genera will equidistribute as m → ∞. In otherwords, if µm,Gi denotes the Dirac measure on Qm,Gi ,
then we have that as m → ∞,
                                            µm,Gi w∗
                                                   −−→ µ.
                                          #Qm,Gi
                        µm   w∗
This then implies that #Q m
                            −−→ µ as desired.                                                     
  We can naturally identify PGLn (Z)\PGLn (R)/POn (R) with the space SLn (Z)\SLn (R)/SOn (R).
Under this identification we have that for any compact Ω0 ⊂ SLn (Z)\SLn (R)/SOn (R),
                                                1
                                #{A ∈ Ω0 : m n A ∈ Matn (Z)}
                            lim                                → µ(Ω0 ),
                           m→∞              hn (m)
where hn (m) is the class number of SLn (Z)-conjugacy orbits of integral positive definite symmetric
matrices of determinant m.
  Next, we note that for any compact Ω ⊂ SLn (R)/SOn (R), we can decompose
                                           Ω = ∪ki=1 Ωi ,
where Ωi are distinct and each contained in different copies of the fundamental domain for the
action of SLn (Z) on SLn (R)/SOn (R). Then if we define a lift µ of µ as
                                                    k
                                                    X
                                         µ(Ω) =           µ(Ωi ),
                                                    i=1
32                                               G. KOTSOVOLIS AND K. WOO

we have that
                                      #{A ∈ Ω : m1/n A ∈ Matn (Z)}
(19)                               lim                             → µ(Ω).
                                  m→∞           hn (m)
We will abuse notation and denote µ as µ from now on.

7.2.2. Computing the class number. Now, we will compute the class number hn (p) as p ranges over
primes. We note that for n odd, this is computed by Kitaoka in [21]. We start at the same point,
with a result of Kitaoka relating the class number to Siegel masses:
Theorem 7.10 ([21], Theorem 2). Let n ≥ 2. Then as m → ∞, we have that
                                                                ( P
                                                                2 Gi M (Gi ),   n odd,
                                  hn (m) = (1 + o(1)) ·
                                                                4 Gi M (Gi ),
                                                                 P
                                                                                n even.
Here the sum ranges over the genera of positive definite quadratic forms of determinant m.
     Using the above, we derive the following estimate for hn (q) for q prime:
Proposition 7.11. Let n ≥ 3. Then for n odd, as q → ∞ for q prime, we have that:
                                                                                n−1
                                                            n
                                                 q (n−1)/2 Y          Y2
                             hn (q) = (1 + o(1)) n(n+1)/4      Γ(k/2)     ζ(2k).
                                                π          k=1        k=1
For n ≥ 4 even, as the prime q goes to ∞, we have that
                                                    n−1
                            n−1      n
                                                                                 !
                           q 2       Y              Y2
                                                       (−1)n/2 q
     hn (q) = (1 + o(1)) n(n+1) Γ(k/2)     ζ(2k)L(n/2,
                        π 4 k=1        k=1
                                                          ·
                                                            
                                                            2,
                                                            
                                                                            q 6≡ (−1)n/2 mod 4
                                                                 2−n+2
                                                          × 2 + 1−2−n/2 ,    q ≡ (−1)n/2 mod 4, q ≡ ±1 mod 8
                                                                  −n+2
                                                           2 + 2
                                                           
                                                                        ,    q ≡ (−1)n/2 mod 4, q ≡ ±3 mod 8.
                                                           
                                                                1+2−n/2

Remark 7.12. We note that in the case of n odd, this asymptotic was previously derived by
Kitaoka in [21].
Proof. First, we handle the case that n is odd. Using the Siegel mass formula and (10), we know
that for any genus G, we have that
                                                          n−1               
                                  n+1     n                 2
                             q     2
                                                               (1 − p−2k )−1  · αq (G)−1 α2 (G)−1 .
                                          Y            Y Y
               M (G) = 2                        Γ(k/2)
                                                                             
                                 n(n+1)                  
                            π       4     k=1          p6=2,q   k=1

Now, Lemma 6.2 tells us that
                                                      n−1
                                                 2
                                             1 Y
                                  αq (G)−1 =        (1 − q −2k )−1 · (1 + O(q −1 )).
                                             2q k=1
On the other hand, Lemma 6.7 tells us that
                                        n−3                     (      1−n
                        −1        1 Y2
                                                        (1 − 2 2 )−1 , OG ≡ ±1 mod 8
                  α2 (G)        =       (1 − 2−2k )−1 ×       1−n
                                  4 k=1                 (1 + 2 2 )−1 , OG ≡ ±3 mod 8.
We know that there are two SLn (Z2 )-orbits G1 and G2 of determinant q, one satisfying OG1 ≡
±1 mod 8 and the other satisfying OG2 ≡ ±3 mod 8. This follows from the fact that there are two
             PRIME NUMBER THEOREMS FOR POLYNOMIALS FROM HOMOGENEOUS DYNAMICS                                   33

classes over Zq and two classes over Z2 , and the quadratic reciprocity relation (see Cassels [6],
Chapter 9). Thus, we have that
                                                      n−1
                                         n
                                                                                                  !
                              q (n−1)/2 Y           2
                                                                             1         1
                                                       ζ(2k) · (1 − 21−n )
                                                   Y
        hn (q) = (1 + o(1)) · n(n+1)/4      Γ(k/2)                             1−n +     1−n
                             2π         k=1        k=1                     1−2 2     1+2 2
                                                     n−1
                                        n
                             q (n−1)/2 Y          Y2
              = (1 + o(1)) · n(n+1)/4      Γ(k/2)     ζ(2k).
                            π          k=1        k=1

   Next, we handle the more involved case where n is even. First, we consider when q 6≡ (−1)n/2 mod
4. Again applying the Siegel mass formula, (10), Lemma 6.2, and Lemma 6.7, we have that for G
of Type I:
                                   n
                 n−1    n            −1                         !
                q 2     Y          2
                                   Y             (−1)n/2 q
     M (G) = n(n+1)/4     Γ(k/2)     ζ(2k)L(n/2,           )
            π         k=1        k=1
                                                    ·
                                                                           1− n −1
                                                                    
                                                                    (1 − 2 n2 ) ,    OG ≡ 0 mod 8
                                                                    
                                                      1
                                                                    
                                                     × (1 − 22−n ) · (1 + 21− 2 )−1 , OG ≡ 4 mod 8
                                                      4             
                                                                    (1 − 22−n )−1 , O ≡ ±2 mod 8.
                                                                    
                                                                                       G

Again, we have two SLn (Z2 )-orbits G1 and G2 that satisfy OG1 − OG2 ≡ 4 mod 8. Hence we have
that either
                                      n         n/2−1                            !
                           q (n−1)/2 Y          Y               (−1)n/2 q
     hn (q) = (1 + o(1)) · n(n+1)/4      Γ(k/2)     ζ(2k)L(n/2,           )
                          π          k=1        k=1
                                                                   ·
                                                                                 1            1
                                                                                                      
                                                                      2−n
                                                              × (1 − 2      )    1−n/2
                                                                                       +
                                                                              1−2        1 + 21−n/2
or
                                      n         n/2−1                            !
                           q (n−1)/2 Y          Y               (−1)n/2 q
     hn (q) = (1 + o(1)) · n(n+1)/4      Γ(k/2)     ζ(2k)L(n/2,           )
                          π          k=1        k=1
                                                                   ·
                                                                                    1           1
                                                                                                      
                                                                         2−n
                                                                × (1 − 2        )     2−n
                                                                                          +                .
                                                                                  1−2       1 − 22−n
In both cases:
                                                n           n/2−1                         !
                                     q (n−1)/2 Y          Y               (−1)n/2 q
               hn (q) = (2 + o(1)) · n(n+1)/4      Γ(k/2)     ζ(2k)L(n/2,           ).
                                    π          k=1        k=1
                                                                             ·

   Second, we consider when q ≡ (−1)n/2 mod 4 and q ≡ ±1 mod 8. Now we will have three
SLn (Z2 )-orbits – G1 , G2 , G3 where G1,2 have f0 Type I and OG1 − OG2 ≡ 4 mod 8 and G3 has f0 Type
II with OG3 ≡ 0 mod 8. Applying the Siegel mass formula, (10), Lemma 6.2, and Lemma 6.7, we
have an extra contribution from G3 :
                                            n
                                 n              −1                          !
                      q (n−1)/2 Y          2Y
                                                           (−1)n/2 q
            M (G3 ) = n(n+1)/4      Γ(k/2)     ζ(2k)L(n/2,           )2−n (1 − 2−n/2 )−1 .
                     π          k=1        k=1
                                                              ·
Combining this with the calculations above, we see that
                                                         n          n/2−1                        !
                                    2−n+2      q (n−1)/2 Y        Y               (−1)n/2 q
       hn (q) = (1 + o(1)) · (2 +          ) ·             Γ(k/2)     ζ(2k)L(n/2,           ).
                                  1 − 2−n/2 π n(n+1)/4 k=1        k=1
                                                                                     ·
34                                   G. KOTSOVOLIS AND K. WOO

  Our final case is when q ≡ (−1)n/2 mod 4 and q ≡ ±3 mod 8. We will have three SLn (Z2 )-orbits
– G1 , G2 , G3 where G1,2 have f0 Type I and OG1 − OG2 ≡ 4 mod 8 and G3 has f0 Type II with
OG3 ≡ 4 mod 8. Applying the Siegel mass formula, (10), Lemma 6.2, and Lemma 6.7, we have that
the extra contribution from G3 is given by
                                          n
                               n              −1                                   !
                    q (n−1)/2 Y          2Y
                                                         (−1)n/2 q
          M (G3 ) = n(n+1)/4      Γ(k/2)     ζ(2k)L(n/2,           )2−n (1 + 2−n/2 )−1 .
                   π          k=1        k=1
                                                            ·
Hence, combining with the computations above, we get that
                                                       n                   n/2−1            !
                                  2−n+2      q (n−1)/2 Y        Y               (−1)n/2 p
     hn (q) = (1 + o(1)) · (2 +          ) ·             Γ(k/2)     ζ(2k)L(n/2,           ).
                                1 + 2−n/2 π n(n+1)/4 k=1        k=1
                                                                                   ·
                                                                                                  
7.2.3. Comparison of the measures. Before completing this section, we need to compare the Haar
measure µ from (19) to the Bateman-Horn measure µ∞ . Let us first place our measures on the
same space. Let us notate the following map:
                                                                           n(n+1)
                              ψ : SLn (R)/SOn (R) → On,0 ⊂ R                  2


                                         X 7→ XX T .
Notice that this map is bijective and hence we can identify these spaces. Denote by µSOn the
Riemannian measure on SOn (R) used by Zhang in [34]. Under this measure, the volume of SOn (R)
is computed in [34] as
                                                                      n
                                                             n(n+1)
                            µSOn (SOn (R)) = 2n−1 π                       Γ(k/2)−1 .
                                                                      Y
                                                                4

                                                        k=1
                   SOn
Denote further by µ0   the normalization of this measure:
                                                          n
                      SO (R)                     −n(n+1) Y
                     µ0 n (SOn (R)) := 2−n+1 π 4             Γ(k/2)µSOn (R) .
                                                         k=1

We will use µSOn and µSO
                      0
                         n
                           to relate the measures µ and µ∞ .
Lemma 7.13. For any compact set Ω ⊂ SLn (R)/SOn (R), we have that if n is odd, then
                                              n              n
                                     n(n+1)
                                                        −1
                                                                   Γ(k/2)−1 µ∞ (Ω).
                                              Y              Y
                          µ(Ω) = π      4           ζ(j)
                                              j=2            k=1
If n is even, then
                                         n          n
                               1 n(n+1) Y       −1
                                                       Γ(k/2)−1 µ∞ (Ω).
                                                   Y
                         µ(Ω) = π   4       ζ(j)
                               2        j=2        k=1

Proof. Consider the following map:
                                    φ : On,0 × SOn (R) → SLn (R)
                                                      √
                                            (S, Q) 7→ SQ.
Since S is an identification as a positive definite symmetric matrix and positive definite symmetric
matrices have unique square roots, this map is well-defined. Additionally, the map φ is bijective
and the composition
                                                    φ              X7→XX T
                                            → SLn (R) −−−−−−→ On,0
                             On,0 × SOn (R) −
sends (S, Q) 7→ S.
   Let µSL
         ∞ be the Bateman-Horn measure on SLn (R) as computed in Lemma 2.5. We remark that
          n

                                                                SO (R)
this is a Haar measure on SLn (R). We also know that φ∗ (dµ × dµ0 n ) is a Haar measure on
            PRIME NUMBER THEOREMS FOR POLYNOMIALS FROM HOMOGENEOUS DYNAMICS                                                              35

SLn (R) and the Haar measure on SLn (R) is unique up to scalar multiple. We wish to compute the
scalar between these two measures; we do so by computing the volumes of the two measures on a
fundamental domain of SL2 (Z)\SLn (R).
   Let F ⊂ SLn (R) be a fundamental domain for SLn (Z)\SLn (R)/SOn (R) and F ′ ⊂ SLn (R) be
a fundamental domain for SLn (Z)\SLn (R). We remark that for almost all A ∈ SLn (R), we can
compute that
                                                                                    (
                                   −1                                                1,    n odd,
                                 A      SLn (Z)A ∩ SOn (R) = cn =
                                                                                     2,    n even.
Hence, we have that
                                                                                                 (
                                                                                                     1,      n odd,
               Z
                                 SO (R)          SOn (R)
                      φ∗ (dµ × dµ0 n ) = c−1
                                          n µ(F)µ0       (SOn (R)) =
                F   ′                                                                                1/2,    n even.
Here we have recalled that µ was normalized such that µ(F) = 1. However, Appendix A of [12]
computes that
                                                                                           n
                                 µSL  ′     SLn
                                                                                           Y
                                  ∞ (F ) = µ∞ (SLn (Z)\SLn (R)) =                               ζ(j),
                                    n

                                                                                          j=2

and so we get the relation
                                                  SO (R)                   1
                                  φ∗ (dµ × dµ0 n           )=           Qn              dµSL
                                                                                          ∞
                                                                                            n (R)
                                                                                                  .
                                                                   cn     j=2 ζ(j)

On the other hand, by Lemma 2.27 in [34]
                                            dµ∞ ∧ dµSOn (R) = 2n−1 dµSL
                                                                     ∞
                                                                       n (R)
                                                                             .
  Putting these two together, we achieve that

              SO (R)                    1
  φ∗ (dµ × dµ0 n       )=               Qn             dµ∞ ∧ dµSOn (R)
                            cn   2n−1       j=2 ζ(j)
                                                                    n
                                                          n(n+1)                                     1                      SO (R)
                                              = 2n−1 π                    Γ(k/2)−1
                                                                    Y
                                                             4                                       Qn             dµ∞ ∧ dµ0 n      ,
                                                                   k=1
                                                                                          cn 2n−1        j=2 ζ(j)

and hence
                                                         n                n
                                                n(n+1)
                                  dµ = c−1                     ζ(j)−1              Γ(k/2)−1 dµ∞ .
                                                         Y                Y
                                        n π
                                                   4

                                                         j=2              k=1

This completes the proof.                                                                                                                

7.2.4. Proof of Theorem 1.8. Finally, we can combine all of these results together. First we consider
when n is odd. Taking together (19), Proposition 7.11, and Lemma 7.13, we have that as p → ∞,
                                                                                                 n−1
                                                                                        ζ(j)−1 p 2 .
                                                                               Y
                                 N (p, Ω) = (1 + oΩ (1))µ∞ (Ω)
                                                                             3≤j≤n
                                                                              j odd

Summing over p, we have the following result.
Lemma 7.14. For n ≥ 3 odd, and Ω ⊂ On,0 a compact subset, we have that as T → ∞,
                                                                                         1
                                                                               Z
                                                                        −1
                                                          Y
                        π(T Ω) = (1 + oΩ (1))                      ζ(j)                   +      dx.
                                                         3≤j≤n                  T Ω log (det(x))
                                                          j odd
36                                               G. KOTSOVOLIS AND K. WOO

   Next, we deal with the case when n is even. We can see that (19), Proposition 7.11, and Lemma
7.13 combine to form:
                                                                                              !
                                         Y
                                                     −1                −1          (−1)n/2 p
     N (p, Ω) = (1 + oΩ (1))µ∞ (Ω)                ζ(j)       · ζ(n)         L(n/2,           )
                                       3≤j≤n
                                                                                      ·
                                        j odd
                                                                 
                                                                 1,
                                                                 
                                                                               p 6≡ (−1)n/2 mod 4
                                                                            2−n+1
                                                             ×    1 + 1−2−n/2 , p ≡ (−1)n/2 mod 4, p ≡ ±1 mod 8
                                                                          2−n+1
                                                                 
                                                                 1 +            ,    p ≡ (−1)n/2 mod 4, p ≡ ±3 mod 8.
                                                                 
                                                                         1+2−n/2

Now we apply Lemma 7.6 to see that
                                                                                                                         !!
                              2T n(n+1)/2                                     2−n+1         2−n+1
                                                   ζ(j)−1 (1 − 2−n ) · 1 +
                                              Y
π(T Ω) = (1 + oΩ (1))µ∞ (Ω)                                                             +
                            n(n + 1) log(T ) 3≤j≤n                         4(1 − 2−n/2 ) 4(1 + 2−n/2 )
                                                              j odd

                                      2T n(n+1)/2
                                                                       ζ(j)−1
                                                                 Y
          = (1 + oΩ (1))µ∞ (Ω)
                                    n(n + 1) log(T ) 3≤j≤n
                                                              j odd
                                                      1
                                             Z
                                    ζ(j)−1
                            Y
          = (1 + oΩ (1))                                 +    dx.
                           3≤j≤n             T Ω log (det(x))
                            j odd

Here we have applied Lemma 2.5 for the final equality. This completes the proof of the following:
Lemma 7.15. For n ≥ 3 even, and Ω ⊂ On,0 a compact subset, we have that as T → ∞,
                                                                                           1
                                                                                  Z
                                                                             −1
                                                              Y
                            π(T Ω) = (1 + oΩ (1))                      ζ(j)             +          dx.
                                                             3≤j≤n                T Ω log (det(x))
                                                              j odd

   Together Theorem 4.1, Lemma 7.5, Lemma 7.7, Lemma 7.14, and Lemma 7.15 give us Theorem
1.8.                                                                                    

                                                    8. Final remarks
   In this last section, we comment on variant problems that our methods can handle. First, we
note that we can instead count primes in arithmetic progressions; for any A > 0, q ≤ log(T )A , and
(a, q) = 1, we can derive an asymptotic for
                    #{A ∈ Matn (Z) : kAk ≤ T, det(A) ≡ a mod q, det(A) is prime}.
This follows from applying Dirichlet’s theorem for primes in arithmetic progressions in §3.2 rather
than the prime number theorem.
   Similarly, we can count almost-primes using the above techniques with a slightly more involved
computation with the Siegel masses, for instance asymptotics for the following expression for any
finite k ∈ N:
                   #{A ∈ Matn (Z) : kAk ≤ T, det(A) is a product of k-primes}.
In comparison, for a general homogeneous polynomial F (x) of degree d in n variables, it is known
that using the lower bound sieve of Diamond and Halberstam, one can show that for a constant
Ck and for k > 2d · n−1
                     n + Ck ,
                                                                                                           Tn
               #{x ∈ Zn : kxk ≤ T, F (x) is a product of at most k-primes} ≫k                                    .
                                                                                                         log(T )
            PRIME NUMBER THEOREMS FOR POLYNOMIALS FROM HOMOGENEOUS DYNAMICS                                       37

                                             Acknowledgments
   The authors thank their advisor Peter Sarnak for suggesting the problem and his insights de-
scribed in his unpublished letter [31]. The authors would also like to thank Anshul Adve, Valeriya
Kovaleva, Hee Oh, Alina Ostafe, Igor Shparlinski, and Nina Zubrilina for feedback on earlier drafts
of the paper. The second author is funded by the National Science Foundation Graduate Research
Fellowship Program under Grant No. DGE-2039656. Any opinions, findings, and conclusions or
recommendations expressed in this material are those of the author(s) and do not necessarily reflect
the views of the National Science Foundation.

                                                  References
 [1] P. T. Bateman and R. A. Horn. A heuristic asymptotic formula concerning the distribution of prime numbers.
     Math. Comp., 16:363–367, 1962.
 [2] A. Borel and Harish-Chandra. Arithmetic subgroups of algebraic groups. Ann. of Math. (2), 75:485–535, 1962.
 [3] M. Borovoi and Z. Rudnick. Hardy-Littlewood varieties and semisimple groups. Invent. Math., 119(1):37–66,
     1995.
 [4] M. V. Borovoi. The Hasse principle for homogeneous spaces. J. Reine Angew. Math., 426:179–192, 1992.
 [5] J. Bruedern and T. D. Wooley. On waring’s problem for larger powers, 2022.
 [6] J. W. S. Cassels. Rational quadratic forms, volume 13 of London Mathematical Society Monographs. Academic
     Press, Inc. [Harcourt Brace Jovanovich, Publishers], London-New York, 1978.
 [7] K. Conrad. A multivariable hensel’s lemma. Lecture note available at http://kconrad. math. uconn. edu/blurbs,
     2020.
 [8] J. H. Conway and N. J. A. Sloane. Low-dimensional lattices. IV. The mass formula. Proc. Roy. Soc. London Ser.
     A, 419(1857):259–286, 1988.
 [9] S. Daniel. On the divisor-sum problem for binary forms. J. Reine Angew. Math., 507:107–129, 1999.
[10] K. Destagnol and E. Sofos. Rational points and prime values of polynomials in moderately many variables. Bull.
     Sci. Math., 156:102794, 33, 2019.
[11] W. Duke. Hyperbolic distribution problems and half-integral weight Maass forms. Invent. Math., 92(1):73–90,
     1988.
[12] W. Duke, Z. Rudnick, and P. Sarnak. Density of integer points on affine homogeneous varieties. Duke Math. J.,
     71(1):143–179, 1993.
[13] M. Einsiedler, G. Margulis, A. Mohammadi, and A. Venkatesh. Effective equidistribution and property (τ ).
     Journal of the American Mathematical Society, 33(1):223–289, 2020.
[14] A. Eskin and H. Oh. Representations of integers by an invariant polynomial and unipotent flows. Duke Math.
     J., 135(3):481–506, 2006.
[15] J. Friedlander and H. Iwaniec. Asymptotic sieve for primes. Ann. of Math. (2), 148(3):1041–1065, 1998.
[16] J. Friedlander and H. Iwaniec. The polynomial X 2 + Y 4 captures its primes. Ann. of Math. (2), 148(3):945–1040,
     1998.
[17] J. Friedlander and H. Iwaniec. Opera de cribro, volume 57 of American Mathematical Society Colloquium Publi-
     cations. American Mathematical Society, Providence, RI, 2010.
[18] D. R. Heath-Brown. Primes represented by x3 + 2y 3 . Acta Math., 186(1):1–84, 2001.
[19] D. R. Heath-Brown and B. Z. Moroz. On the representation of primes by cubic polynomials in two variables.
     Proc. London Math. Soc. (3), 88(2):289–312, 2004.
[20] H. Iwaniec. Fourier coefficients of modular forms of half-integral weight. Invent. Math., 87(2):385–401, 1987.
[21] Y. Kitaoka. Two theorems on the class number of positive definite quadratic forms. Nagoya Mathematical Journal,
     51:79–89, 1973.
[22] V. Kovaleva. On the distribution of equivalence classes of random symmetric p-adic matrices. Mathematika,
     69(4):903–933, 2023.
[23] S. Lang and A. Weil. Number of points of varieties in finite fields. American Journal of Mathematics, 76(4):819–
     827, 1954.
[24] J. V. Linnik and M. Keane. Ergodic properties of algebraic fields, volume 45. Springer, 1968.
[25] Y. V. Linnik and B. F. Skubenko. On the asymptotic behavior of integral matrices of third order. In Doklady
     Akademii Nauk, volume 146, pages 1007–1008. Russian Academy of Sciences, 1962.
[26] J. MacWilliams. Orthogonal matrices over finite fields. Amer. Math. Monthly, 76:152–164, 1969.
[27] J. Maynard. Primes represented by incomplete norm forms. Forum Math. Pi, 8:e3, 128, 2020.
[28] H. Oh. Hardy-Littlewood system and representations of integers by an invariant polynomial. Geom. Funct. Anal.,
     14(4):791–809, 2004.
38                                       G. KOTSOVOLIS AND K. WOO

[29] M. Ratner. On raghunathan’s measure conjecture. Annals of Mathematics, 134(3):545–607, 1991.
[30] P. Sarnak. Diophantine problems and linear groups. In Proceedings of the International Congress of Mathemati-
     cians, volume 1, pages 459–471, 1990.
[31] P. Sarnak. Letter to Sarah and Valeriya, Jan 2022.
[32] C. L. Siegel. Über die Analytische Theorie der Quadratischen Formen. Ann. Math., 36:527–606, 1935.
[33] A. Weil. Adeles and algebraic groups, volume 23 of Progress in Mathematics. Birkhäuser, Boston, MA, 1982.
     With appendices by M. Demazure and Takashi Ono.
[34] L. Zhang. Volumes of orthogonal groups and unitary groups. arXiv: Mathematical Physics, 2015.

     Department of Mathematics, Princeton University, Princeton, NJ 08540
     Email address: gk13@princeton.edu

     Department of Mathematics, Princeton University, Princeton, NJ 08540
     Email address: khwoo@princeton.edu
