On Newton-Raphson iteration for multiplicative inverses modulo prime powers - Archive ouverte HAL Accéder directement au contenu
Rapport Année : 2012

On Newton-Raphson iteration for multiplicative inverses modulo prime powers

Jean-Guillaume Dumas

Résumé

We study algorithms for the fast computation of modular inverses. We first give another proof of the formulas of Arazi and Qi for the modular inverse modulo $2^m$, derived from Newton-Raphson iteration over p-adic fields, namely Hensel's lifting. From the expression of Newton-Raphson's iteration we then derive an actually explicit formula for the modular inverse, generalizing to any prime power modulus. On the one hand, we show then that despite a worse complexity the explicit formula can be $4$ times faster than Arazi and Qi's for small exponents. On the other hand, this algorithm becomes slower for arbitrary precision integers of more than $1700$ bits. Overall a hybrid combination of the two latter algorithms yield a constant factor improvement also for large exponents.
Fichier principal
Vignette du fichier
invmodpk.pdf (303.01 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)

Dates et versions

hal-00736701 , version 1 (28-09-2012)
hal-00736701 , version 2 (02-10-2012)
hal-00736701 , version 3 (09-10-2012)
hal-00736701 , version 4 (14-01-2018)
hal-00736701 , version 5 (14-05-2018)

Identifiants

Citer

Jean-Guillaume Dumas. On Newton-Raphson iteration for multiplicative inverses modulo prime powers. 2012. ⟨hal-00736701v2⟩
430 Consultations
549 Téléchargements

Altmetric

Partager

Gmail Facebook X LinkedIn More