Mean values and variances of the digits of
arXiv:2606.29930
Abstract
Let be a prime and an integer such that does not divide . Then has a periodic digit expansion with respect to the basis . The length of the period is the (multiplicative) order of mod . In the cases and , formulas for the variance of the digits of a period were given previously. These formulas involved Dedekind sums, class numbers of imaginary quadratic number fields, and generalized Bernoulli numbers. In the present paper we develop a theory of this kind for , , which covers the special case .