516

 

884

 

306

 

12342

 

355

 

389

 

12712

 

12716

 

10104

Theory: The pseudo code of the extended euclid algorithm: xgcd(a,b): prevx, x = 1, 0; prevy, y = 0, 1 while (b!=0) { q = a/b x = prevx – q*x; prevx= x; y = prevy – q*y; prevy= y; a = b; b= a % b; } return a, prevx, prevy [button color=”red”