• Want to help us with this year's BoS Trials?
    Let us know before 30 June. See this thread for details
  • Looking for HSC notes and resources?
    Check out our Notes & Resources page

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