Next:
Powering Algorithm
Up:
Important Algorithms
Previous:
Important Algorithms
Euclid's Algorithm
Given integers
and
, a slight extension of Euclid's gcd algorithm enables us to find integers
and
such that
Example 6.1
,
.
Thus
,
works, and
.
We can use the result of this computation to solve
Indeed,
, so
is a solution.
William A Stein 2001-10-14