The Extended Euclidean Algorithm
Modeled on
Cryptography and Network Security
, 5
th
edition, William Stallings, p115
A:
B: