On the decimal and octal digits of 1/p
Pith reviewed 2026-05-18 09:05 UTC · model grok-4.3
The pith
For primes p ≡ 3 mod 4 where 10 has order (p-1)/2 mod p, digit frequencies in the decimal period of 1/p are given by formulas in the class numbers of two imaginary quadratic fields.
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
Under the hypotheses that p is a prime congruent to 3 modulo 4 and greater than 3, and that 10 has order (p-1)/2 modulo p, the decimal period of 1/p has length (p-1)/2 and the frequency of each digit 0 through 9 in this period is expressed in terms of the class numbers of two imaginary quadratic number fields. Analogous expressions are given when 10 is a primitive root modulo p and when the octal digits of 1/p are considered.
What carries the argument
Formulas that write the count of each digit in the repeating block of 1/p as a linear combination involving the class numbers of two imaginary quadratic fields, once the order condition on 10 modulo p is assumed.
Load-bearing premise
The supposition that 10 has the order (p-1)/2 mod p, for prime p ≡ 3 mod 4 and p > 3.
What would settle it
Select a small prime p ≡ 3 mod 4 that satisfies the order condition on 10, compute the actual counts of digits 0-9 in the decimal period of 1/p by long division, and compare them to the counts predicted by the class-number formulas; any mismatch would show the claimed equality does not hold.
read the original abstract
Let $p$ be a prime $\equiv 3$ mod 4, $p>3$, and suppose that 10 has the order $(p-1)/2$ mod p. Then $1/p$ has a decimal period of length $(p-1)/2$. We express the frequency of each digit $0,\ldots,9$ 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 $p$ and for the octal digits of $1/p$.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper considers primes p ≡ 3 (mod 4) with p > 3 such that the multiplicative order of 10 modulo p is exactly (p-1)/2. Under this hypothesis the decimal period of 1/p has length (p-1)/2, and the frequencies of the digits 0 through 9 in that period are expressed as explicit linear combinations of the class numbers h(-d1) and h(-d2) of two imaginary quadratic fields. Analogous statements are given when 10 is a primitive root modulo p and for the octal digits of 1/p.
Significance. If the claimed identities hold, the result supplies a concrete arithmetic link between the distribution of decimal digits in the period of 1/p and class numbers of imaginary quadratic fields. Such a connection would be noteworthy because it converts an incomplete character sum over an interval of length p/10 into algebraic invariants that are independently computable.
major comments (2)
- [§3, Theorem 2] §3, Theorem 2: the passage from the count of quadratic residues in each interval I_d = [d p/10, (d+1)p/10) to the stated linear combination of h(-d1) and h(-d2) is not accompanied by an explicit identity or reference. The standard expression for these counts is an incomplete sum of the Legendre symbol; the manuscript must therefore contain a non-standard algebraic reduction that converts this sum into class-number data. Without a self-contained verification or citation of this reduction, the central claim remains formally unsupported.
- [§2, Hypothesis (H)] §2, Hypothesis (H): the assumption that ord_p(10) = (p-1)/2 is used to identify the decimal period with the set of quadratic residues. The paper should state whether this hypothesis is known to hold for infinitely many p or whether it is merely a finite-check condition; the frequency formulae are conditional on (H) and their unconditional significance therefore depends on the density of such primes.
minor comments (2)
- [§3] The notation for the two discriminants -d1 and -d2 is introduced without an explicit formula in terms of p; a displayed equation giving d1 and d2 would improve readability.
- [Table 1] Table 1 lists numerical checks for small p but does not indicate how the class numbers were computed or whether the frequencies were obtained by direct enumeration of the period; adding a short computational note would strengthen the verification.
Simulated Author's Rebuttal
We thank the referee for the careful reading and constructive comments. We address the two major comments point by point below, indicating where revisions will be made to strengthen the manuscript.
read point-by-point responses
-
Referee: [§3, Theorem 2] §3, Theorem 2: the passage from the count of quadratic residues in each interval I_d = [d p/10, (d+1)p/10) to the stated linear combination of h(-d1) and h(-d2) is not accompanied by an explicit identity or reference. The standard expression for these counts is an incomplete sum of the Legendre symbol; the manuscript must therefore contain a non-standard algebraic reduction that converts this sum into class-number data. Without a self-contained verification or citation of this reduction, the central claim remains formally unsupported.
Authors: We agree that the derivation connecting the incomplete character sums over the intervals I_d to the explicit linear combinations of the class numbers h(-d1) and h(-d2) needs to be made fully explicit. The reduction relies on expressing the distribution of quadratic residues modulo p in short intervals via the class group structure of the fields Q(sqrt(-d1)) and Q(sqrt(-d2)), but the current text does not supply the intermediate identities or a reference. In the revised manuscript we will insert a self-contained verification of this step, including the precise relation between the partial sums of the Legendre symbol and the class numbers. revision: yes
-
Referee: [§2, Hypothesis (H)] §2, Hypothesis (H): the assumption that ord_p(10) = (p-1)/2 is used to identify the decimal period with the set of quadratic residues. The paper should state whether this hypothesis is known to hold for infinitely many p or whether it is merely a finite-check condition; the frequency formulae are conditional on (H) and their unconditional significance therefore depends on the density of such primes.
Authors: The frequency formulae are explicitly conditional on Hypothesis (H). We will add a short paragraph in §2 noting that (H) is a finite, verifiable condition for any given prime and that it is not currently known whether infinitely many such primes exist. We will also record the heuristic expectation, under standard assumptions such as Artin’s conjecture, that the set of primes satisfying (H) has positive density among primes ≡ 3 mod 4. This clarifies the scope of the unconditional significance of the results. revision: partial
Circularity Check
No circularity: digit frequencies derived from independent class-number formulas under given order hypothesis
full rationale
The derivation begins from the explicit hypothesis that ord_p(10)=(p-1)/2, which forces the decimal cycle to be the quadratic residues modulo p. It then counts residues in each interval [d p/10,(d+1)p/10) via incomplete character sums and converts those sums into linear combinations of class numbers h(-d1) and h(-d2) of two imaginary quadratic fields. Both the class numbers and the conversion identities are standard, independently defined objects in algebraic number theory (via the class group and Dirichlet's class-number formula); they are not fitted to the digit data, not defined in terms of the frequencies, and not justified solely by self-citation. The octal analogue follows the same pattern. No step reduces the claimed result to its own inputs by construction.
Axiom & Free-Parameter Ledger
axioms (2)
- standard math Multiplicative order of 10 modulo p divides p-1 and is well-defined for prime p not dividing 10
- standard math Class numbers of imaginary quadratic fields are well-defined positive integers
Lean theorems connected to this paper
-
IndisputableMonolith/Foundation/ArithmeticFromLogicLogicNat recovery and embed_strictMono unclear?
unclearRelation between the paper passage and the cited Recognition theorem.
Theorem 1 ... nk = 1/2 (⌊(k+1)p/10⌋ - ⌊kp/10⌋ + δk) and n9-k = nk - δk ... δk expressed via h1 and h2 of Q(√-p), Q(√-5p)
What do these tags mean?
- matches
- The paper's claim is directly supported by a theorem in the formal canon.
- supports
- The theorem supports part of the paper's argument, but the paper may add assumptions or extra steps.
- extends
- The paper goes beyond the formal theorem; the theorem is a base layer rather than the whole result.
- uses
- The paper appears to rely on the theorem as machinery.
- contradicts
- The paper's claim conflicts with a theorem or certificate in the canon.
- unclear
- Pith found a possible connection, but the passage is too broad, indirect, or ambiguous to say the theorem truly supports the claim.
Reference graph
Works this paper leans on
-
[1]
B. C. Berndt, Classical theorems on quadratic residues, Enseign. Math. (2) 22 (1976), 261–304
work page 1976
-
[2]
K. Chakraborty, K. Krishnamoorthy, On some symmetries of the basenexpansion of 1/m: the class number connection, Pacific J. Math. 319 (2022), 39–53
work page 2022
-
[3]
Girstmair, The digits of 1/pin connection with class number factors, Acta Arith
K. Girstmair, The digits of 1/pin connection with class number factors, Acta Arith. 67 (1994) 381–386
work page 1994
-
[4]
K. Girstmair, Periodische Dezimalbr¨ uche – was nicht jeder dar¨ uber weiß, Jahrbuch ¨Uberblicke Mathematik 1995, Braunschweig, 1995, 163–179
work page 1995
-
[5]
Hasse, ¨Uber die Klassenzahl abelscher Zahlk¨ orper, Berlin, 1952
H. Hasse, ¨Uber die Klassenzahl abelscher Zahlk¨ orper, Berlin, 1952
work page 1952
-
[6]
Hirabayashi, Generalizations of Girstmair’s formula, Abh
M. Hirabayashi, Generalizations of Girstmair’s formula, Abh. Math. Sem. Univ. Hamburg 75 (2005), 83–95
work page 2005
-
[7]
Louboutin, Computation of class numbers of quadratic number fields, Math
S. Louboutin, Computation of class numbers of quadratic number fields, Math. Comp. 71 (2002), 1735–1743
work page 2002
-
[8]
Y. Mizuno, A certain character twisted average value of the digits of rational num- bers and the class numbers of imaginary quadratic fields, Acta Arith. 208 (2023), 215–233. 7
work page 2023
-
[9]
Moree, On primes in arithmetic progression having a prescribed primitive root, J
P. Moree, On primes in arithmetic progression having a prescribed primitive root, J. Number Th. 78 (1999), 85–98
work page 1999
- [10]
-
[11]
M. R. Murty, R. Thangadurai, The class number ofQ( √−p) and digits of 1/p, Proc. Amer. Math. Soc. 139 (2011), 1277–1289
work page 2011
-
[12]
S. Pujahari, N. Saikia,l-adic digits and class numbers of imaginary quadratic fields, Internat. J. Math. 35 (2024), Paper No. 2450041, 16 pp
work page 2024
-
[13]
Shiomi, An analogue of Girstmair’s formula in function fields, Finite Fields Appl
D. Shiomi, An analogue of Girstmair’s formula in function fields, Finite Fields Appl. 103 (2025), Paper No. 102585, 16 pp
work page 2025
- [14]
-
[15]
M. H. Tom´ e, Arithmetic of Hecke L-functions of quadratic extensions of totally real fields, J. Number Th. 262 (2024), 103–133
work page 2024
-
[16]
L. C. Washington, Introduction to Cyclotomic Fields. New York, 1982. Kurt Girstmair Institut f¨ ur Mathematik Universit¨ at Innsbruck Technikerstr. 13/7 A-6020 Innsbruck, Austria Kurt.Girstmair@uibk.ac.at 8
work page 1982
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.