Skip to content

Commit fd559a9

Browse files
authored
Merge pull request cp-algorithms#1018 from jxu/patch-9
Link extended Euclidean algorithm to site article
2 parents 115509c + c7f8b0f commit fd559a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/algebra/module-inverse.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Consider the following equation (with unknown $x$ and $y$):
2828
$$a \cdot x + m \cdot y = 1$$
2929

3030
This is a [Linear Diophantine equation in two variables](linear-diophantine-equation.md).
31-
As shown in the linked article, when $\gcd(a, m) = 1$, the equation has a solution which can be found using the [extended Euclidean algorithm](http://en.wikipedia.org/wiki/Extended_Euclidean_algorithm).
31+
As shown in the linked article, when $\gcd(a, m) = 1$, the equation has a solution which can be found using the [extended Euclidean algorithm](extended-euclid-algorithm.md).
3232
Note that $\gcd(a, m) = 1$ is also the condition for the modular inverse to exist.
3333

3434
Now, if we take modulo $m$ of both sides, we can get rid of $m \cdot y$, and the equation becomes:

0 commit comments

Comments
 (0)