MedVision ad

Use the extended Euclidean algorithm to find the inverse of... (1 Viewer)

Utility

Member
Joined
May 14, 2012
Messages
36
Gender
Undisclosed
HSC
N/A
5 mod 317.

317 = 5 * 63 + 2
5 = 2 * 2 + 1
2 = 1 * 2 + 0

GCD(317, 5) = 1.

1 = 5 - 2 * 2.

How would you finish this via substitution? For example, 2 = 317 - 5 * 63.

Correction:

1 = 5 - 2 * 2
1 = 5 * 1 + 2 * - 2
1 = 5 * 1 + (317 - 5 * 63) * - 2
1 = 5 (1 + 126) + 317 (-2)

127 = inverse.
 
Last edited:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top