English

On Newton-Raphson iteration for multiplicative inverses modulo prime powers

Symbolic Computation 2019-04-22 v5 Mathematical Software

Abstract

We study algorithms for the fast computation of modular inverses. Newton-Raphson iteration over pp-adic numbers gives a recurrence relation computing modular inverse modulo pmp^m, that is logarithmic in mm. We solve the recurrence to obtain an explicit formula for the inverse. Then we study different implementation variants of this iteration and show that our explicit formula is interesting for small exponent values but slower or large exponent, say of more than 700700 bits. Overall we thus propose a hybrid combination of our explicit formula and the best asymptotic variants. This hybrid combination yields then a constant factor improvement, also for large exponents.

Keywords

Cite

@article{arxiv.1209.6626,
  title  = {On Newton-Raphson iteration for multiplicative inverses modulo prime powers},
  author = {Jean-Guillaume Dumas},
  journal= {arXiv preprint arXiv:1209.6626},
  year   = {2019}
}
R2 v1 2026-06-21T22:13:05.022Z