On the decimal and octal digits of $1/p$
Number Theory
2026-04-28 v6
Abstract
Let be a prime mod 4, , and suppose that 10 has the order mod p. Then has a decimal period of length . We express the frequency of each digit in this period in terms of the class numbers of two imaginary quadratic number fields. We also exhibit certain analogues of this result, so for the case that 10 is a primitive root mod and for the octal digits of .
Cite
@article{arxiv.2510.07873,
title = {On the decimal and octal digits of $1/p$},
author = {Kurt Girstmair},
journal= {arXiv preprint arXiv:2510.07873},
year = {2026}
}