Moments of genus invariants and
ℓ-adic variations on Siegel's averages
For primitive integral ternary quadratic forms, this paper shows that for every prime $\ell\geq5$ the orbifold class number of a positive definite genus is typically divisible by arbitrarily large powers of $\ell$, with its prime-to-$\ell$ part uniformly distributed among the invertible congruence classes modulo $\ell$; the Euler characteristics of the arithmetic hyperbolic surfaces attached to indefinite form classes behave likewise. Asymptotic formulas for $\ell$-adic moments of genus invariants accompany these results, and the approach handles ordering genera both by determinant and by orbifold class number or regulator, the latter requiring a nonabelian analogue of the prime geodesic theorem in lattice space; restricted class collections such as prime or squarefree determinant are also covered.