Digit frequencies and class numbers
arXiv:2606.04512
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 case , the frequency of each digit can be expressed in terms of generalized (first order) Bernoulli numbers. In some cases only Bernoulli numbers belonging to quadratic characters occur. This means that the frequencies can be written in terms of class numbers of imaginary quadratic number fields (the so-called class number case). In the present paper we classify the numbers and falling under the class number case. We also highlight one of the simplest examples not falling under this case ( mod , ) and the most complex example of the class number case. Moreover, we show that knowing the frequency of each is equivalent to knowing the respective Bernoulli numbers.