For example, the Euclidean algorithm for gcd(36,22) is given below on the left, while the reversal of the steps is shown on the right. Numbers marked in this color are replaced in the following line by expressions marked in this color.
| Euclidean Algorithm for gcd(36,22) | Reversal | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|