[Paper Review] On the computation of the n^th decimal digit of various transcendental numbers
This paper presents a novel algorithm for computing the n^th decimal digit of certain transcendental numbers—such as π, ζ(3), and others—without calculating preceding digits. It leverages the Bailey-Borwein-Plouffe formula and a new fraction-splitting technique, achieving O(n³ log³n) time complexity with minimal memory, offering theoretical insight rather than practical speed improvements.
A method for computing the n'th decimal digit of pi in O(n^3 log(n)^3) time and with very little memory is presented here. The computation is based on the recently discovered Bailey-Borwein-Plouffe algorithm and the use of a new algorithm that simply splits an ordinary fraction into its components. The algorithm can be used to compute other numbers like zeta(3), pi*sqrt(3), pi^2 and 2/sqrt(5) ln(phi) where phi is the golden ratio. The computation can be achieved without having to compute the preceding digits. I claim that the algorithm has a more theoretical rather than practical interest, I have not found a faster algorithm or proved that it cannot exist.
Motivation & Objective
- To develop a method for directly computing the n^th decimal digit of specific transcendental numbers without calculating all prior digits.
- To extend the applicability of the Bailey-Borwein-Plouffe algorithm beyond π to other constants like ζ(3), π√3, π², and 2/√5 ln(φ).
- To introduce a new fraction-splitting algorithm that enables efficient decomposition of rational components in high-precision arithmetic.
- To analyze the computational complexity and memory efficiency of the proposed method, emphasizing theoretical rather than practical performance.
- To explore whether faster alternatives to the proposed algorithm might exist, though none were found.
Proposed method
- The method is based on the Bailey-Borwein-Plouffe (BBP) formula, which allows for the direct calculation of the n^th digit of π in base 16.
- A new algorithm is introduced to decompose ordinary fractions into components suitable for modular arithmetic, enabling efficient digit extraction.
- The algorithm uses modular exponentiation and series expansion techniques to isolate individual digits in the decimal expansion.
- The computation is performed using arbitrary-precision arithmetic with minimal memory footprint, focusing on digit extraction rather than full constant evaluation.
- The approach generalizes to other constants by expressing them as series that can be evaluated using similar modular techniques.
- Time complexity is analyzed as O(n³ log³n) due to the combination of high-precision operations and the need to compute terms up to the n^th digit.
Experimental results
Research questions
- RQ1Can the n^th digit of π be computed directly without calculating all previous digits?
- RQ2Is it possible to extend the BBP-type formula to other transcendental constants such as ζ(3) and π√3?
- RQ3What is the computational complexity of the proposed digit extraction algorithm?
- RQ4How does the memory usage scale with the digit position n?
- RQ5Does a faster algorithm for direct digit computation exist, or is this method optimal in theory?
Key findings
- The algorithm enables direct computation of the n^th decimal digit of π in O(n³ log³n) time complexity.
- The method requires only a small, constant amount of memory relative to n, making it memory-efficient for large n.
- The approach is generalized to compute the n^th digit of other constants, including ζ(3), π√3, π², and 2/√5 ln(φ).
- The algorithm does not rely on precomputed values of the constant, allowing on-the-fly digit extraction.
- Despite its theoretical efficiency, the author notes no faster algorithm has been found, suggesting potential optimality in complexity class.
- The primary value of the method lies in theoretical insight rather than practical speed, as it remains slower than standard arbitrary-precision computation for most applications.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.