Tuesday, 6 January 2015

gcd and lcm - using extended euclidean algorithm to find s, t, r




i am stuck for many hours and i don't understand using the extended euclidean algorithm. i calculated it the gcd using the regular algorithm but i don't get how to calculate it properly to obtain s,t,r.



i understand that from the gcd i can get a linear combination representation, but i don't get how to do it using the algorithm.



how can i find s,t,r for a=154,b=84?



if it is of any importance, the algorithm i am referring to is from the book cryptography: theory and practice



thank you very much. became hopeless because of it



Answer



Using the Euclidean algorithm, we have



154=184+7084=170+1470=514+0

The last nonzero remainder is 14. So gcd(154,84)=14. Now
14=8470(using 2)=84(15484)(using 1)=2841154
So 14=2841154.


No comments:

Post a Comment

real analysis - How to find limhrightarrow0fracsin(ha)h

How to find limh0sin(ha)h without lhopital rule? I know when I use lhopital I easy get $$ \lim_{h\rightarrow 0}...