For each of the following pairs of integers
and
, show that
is relatively prime to
and determine the multiplicative inverse of
mod
.
First we note the following simple lemma: for all integers
, we have that
. The proof is simple; if
, we have
and
so that
.
This lemma will allow us to use the Bezout program written previously to solve these problems without having a proof of correctness for the code; if we have
, then the
and
serve as a witness to the fact that
.
First we note the following simple lemma: for all integers
This lemma will allow us to use the Bezout program written previously to solve these problems without having a proof of correctness for the code; if we have
since
. Reducing mod 20, we have that
.
since
. Reducing mod 89, we have that
.
since
. Reducing mod 3797, we have that
.
since
. Reducing mod
, we have that
.
No comments:
Post a Comment