To
solve a congruence of the
form
ax≡b modm
, multiply both sides by
a-1
modm to
get
x = b/a
modm.
The congruence
17x≡23 mod127
has a
solution x = 91, as the following steps illustrate.
Evaluate
23/17mod127 = 91
Check this result by substitution back into the original congruence.
Evaluate
17⋅91mod127
= 23
Note that, since 91 is a solution to the congruence
17x≡23 mod127
, additional solutions are given by + 127n, where n is any integer. In fact,
x≡91
mod127
is just another way of writing x = 91 + 127n for some integer n.