I am practicing some modular arithmetic and I am trying to find the multiplicative inverse of a large number. Here is the problem:
345^-1 mod 76408
I'm not sure how to go about solving this problem. I set it up the following way:
x = 345^-1 mod 76408
345x = 1 mod 76408
76408 = 345 * 221 + 163
345 = 163 * 2 + 19
163 = 19 * 8 + 11
19 = 11 * 1 + 8
11 = 8 * 1 + 3
8 = 3 * 2 + 2
3 = 2 * 1 + 1
2 = 1 * 2
I watched a video where i would then use the extended euclidean algorithm, but I'm unsure as to how to do it.
Any help/advice to solve this would be appreciated! Thanks.