-
Notifications
You must be signed in to change notification settings - Fork 2
Euclidean and Extended Euclidean for GCD
Rafiul Islam edited this page Nov 24, 2018
·
5 revisions
- if
a get 0
then stop iteration and pickb
as GCD
a = b % a |
b = a |
---|---|
16 % 81 = 16
|
81 |
81 % 16 = 1
|
16 |
16 % 1 = 0
|
1 |