For some problems, even longer ones, I've been able to see the pattern and properly do back substitution to bring a series of equations I've derived using the Euclidean algorithm to the form of Bezout's theorem:
$sa+tm$
Where $s$ and $t$ are parameters.
But, on some problems I get stuck and have no idea how to move forward.
For example, starting from finding the $gcd(3454,4666)$:
Using the Euclidean Algorithm I find:
$4666 = 3454 * 1 + 1212$ ------------- $1212 = 4666 - 3454 * 1$
$3454 = 1212 * 2 + 1030$ ---------------- $1030 = 3454 - 1212 * 2$
$1212 = 1030 * 1 + 182$ ----------------- $182 = 1212 - 1030 *1$
$1030 = 182 * 5 + 120$ ------------------ $120 = 1030 - 182 * 5$
$182 = 120 * 1 + 62$ --------------------- $62 = 182 - 120 * 1$
$120 = 62 * 1 + 58$ ---------------------- $58 = 120 - 62*1$
$62 = 58 * 1 + 4$ ------------------------ $4 = 62 - 58 * 1$
$58 = 4 * 14 + 2$ ------------------------ $2 = 58 - 4 * 14$
For my first step I substitute for the $4$ :
$2 = 58 - (62 - 58) * 14$
Where do I go from here? What are some general strategies to solve problems of this form? I'm having an inordinately hard time with some of these problems, but find others trivial--what is going on? What should I look out for when approaching problems of this type?
If you would like me to clarify content, please ask me such and I will edit accordingly. Thank you for taking the time to read this!