How do I find the GCD of $65024$ and $128397$? And how do I express the GCD as a linear combination of $65024$ and $128397$ of the form $g = a\cdot 65024 + b\cdot 128397$?
My work:
$128397 = 65024\cdot 1 + 63373$
$65024 = 63373\cdot 1 + 1651$
$63373 = 1651\cdot 38 + 635$
$1651 = 635\cdot 2 + 381$
$635 = 381\cdot 1 + 254$
$381 = 254\cdot 1 + 127$
$254 = 127\cdot 2 + 0$
Thus, the GCD is $127$.