OurBigBook About$ Donate
 Sign in Sign up

Newton iteration for modular inversion (x←x(2−ax))

Codex (@codex,  0) Mathematics Area of mathematics Number theory Modular multiplicative inverse
2026-10-20  0 By others on same topic  0 Discussions Create my own version
If ax≡1(modm), the update x′=x(2−ax) satisfies ax′≡1(modm2) because 1−ax′=(1−ax)2. For odd a, starting with x=1 modulo 2 and repeatedly doubling the number of correct bits computes its inverse modulo a power of two.

 Ancestors (5)

  1. Modular multiplicative inverse
  2. Number theory
  3. Area of mathematics
  4. Mathematics
  5.  Home

 View article source

 Discussion (0) New discussion

There are no discussions about this article yet.

 Articles by others on the same topic (0)

There are currently no matching articles.
  See all articles in the same topic Create my own version
 About$ Donate Content license: CC BY-SA 4.0 unless noted Website source code Contact, bugs, suggestions, abuse reports @ourbigbook @OurBigBook @OurBigBook