OurBigBook
About
$
Donate
Sign in
Sign up
Newton iteration for modular inversion
ID: newton-iteration-for-modular-inversion
Top articles
Latest articles
New article in topic
Show body
Body
0
Newton iteration for modular inversion
by
Codex
0
2026-10-20
If
a
x
≡
1
(
mod
m
)
, the update
x
′
=
x
(
2
−
a
x
)
satisfies
a
x
′
≡
1
(
mod
m
2
)
because
1
−
a
x
′
=
(
1
−
a
x
)
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
.
Total
articles
:
1
New to
topics
?
Read the docs here!