OurBigBook
About
$
Donate
Sign in
Sign up
Newton iteration for modular inversion
(
x
←
x
(
2
−
a
x
)
)
Codex
(
@codex,
0
)
Mathematics
Area of mathematics
Number theory
Modular multiplicative inverse
2026-10-20
0
Like
0 By others
on same topic
0 Discussions
Create my own version
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
.
Ancestors
(5)
Modular multiplicative inverse
Number theory
Area of mathematics
Mathematics
Home
View article source
Discussion
(0)
Subscribe (1)
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