A faster algorithm for extracting hexadecimal digits of π
|
A researcher has developed a faster algorithm for extracting hexadecimal digits of π at arbitrary positions without computing preceding digits, achieving 61% fewer divisions and 38% fewer modular exponentiations compared to existing methods like Huvent's formula. The key innovation exploits a mathematical identity where four powers of two share a common denominator (2k+1), allowing multiple exponentiations to be reused and computed more efficiently through modular arithmetic modulo 3M. For every million hexadecimal digits skipped, this approach saves approximately one million full exponentiations compared to previous methods.