Exact Computation of the Catalan Number $C(2,050,572,903)$
Mahesh Ramani

TL;DR
This paper introduces a novel two-phase algorithm that enables the exact computation of extremely large Catalan numbers, demonstrated by calculating the number with over a billion digits, using prime factorization and memory-efficient reconstruction.
Contribution
The paper presents a scalable, memory-efficient algorithm for exact computation of large Catalan numbers, operating in the prime-exponent domain and reconstructing the number with optimized data structures.
Findings
Successfully computed Catalan number with over a billion digits
Achieved the largest exact Catalan number to date
Demonstrated practical performance and verification methods
Abstract
This paper presents a two-phase algorithm for computing exact Catalan numbers at an unprecedented scale. The method is demonstrated by computing for yielding a result with a targeted decimal digits. To circumvent the memory limitations associated with evaluating large factorials, the algorithm operates exclusively in the prime-exponent domain. Phase 1 employs a parallel segmented sieve to enumerate primes up to and applies Legendre's formula to determine the precise prime factorization of . The primes are grouped by exponent and serialized to disk. Phase 2 reconstructs the final integer using a memory-efficient balanced product tree with chunking. The algorithm runs on a time complexity of bit-operations and a space complexity of bits. This result represents the largest exact Catalan number…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsCryptography and Residue Arithmetic · Polynomial and algebraic computation · Analytic Number Theory Research
