Efficiently computing multiple modular inverses at once

The Endeavour 2026-01-14

Summary:

Suppose you have a large prime number M and you need to find the inverse of several numbers mod M.  Montgomery’s trick is a way to combine the computation of the inverses to take less time than computing the inverses individually. Peter Montgomery (1947–2020) came up with this trick in 1985. We will illustrate Montgomery’s trick by […]

The post Efficiently computing multiple modular inverses at once first appeared on John D. Cook.

Link:

https://www.johndcook.com/blog/2026/01/14/montgomerys-trick/

From feeds:

Statistics and Visualization » The Endeavour

Tags:

computing

Authors:

John

Date tagged:

01/14/2026, 17:17

Date published:

01/14/2026, 10:06