I'm a senior in high school taking a number theory class. I have read the other answers on this site about back substitution but frankly I do not understand them at all. I know that back substitution is a very iterative process so I'm just looking for a simple explanation and a clear example because I feel like once I get it I will be able to solve all future problem with it.
Here's the problem I am trying to solve:
Use the GCD, along with back substitution, to obtain integers $x$ and $y$ that satisfy this equation: $\gcd(143,227)=143x+227y$.
I've already found the GCD using the Euclidean Algorithm and now just need to understand back substitution. I tried writing the first equation: $1=11-(5)(2)$, where $1$ is the last nonzero remainder obtained with the Euclidean Algorithm and $5$ and $2$ are the quotient and divisor respectively (from the same division problem). I understand that the next step is to substitute but I don't really understand how. This is where I'm at and any help is greatly appreciated.
Thanks, Jake.
$$ 227=143+84 \\ 143=84+59 \\ 84=59+25 \\ 59=2\cdot25+9 \\ 25=2\cdot9+7 \\ 9=7+2 \\ 7=3\cdot2+1 \\ 2=2\cdot1+0 $$ So, $\gcd(227,143)=1$ and starting from the second line from the bottom (each time backsolving for the remainder from the previous line) we get: $$ 1=7-3\cdot2=7-3\cdot(9-7)=4\cdot7-3\cdot9= \\ =4\cdot(25-2\cdot9)-3\cdot9=4\cdot25-11\cdot9= \\ =4\cdot25-11\cdot(59-2\cdot25)=26\cdot25-11\cdot59= \\ =26\cdot(84-59)-11\cdot59=26\cdot84-37\cdot59= \\ =26\cdot84-37\cdot(143-84)=63\cdot84-37\cdot143=\\ =63\cdot(227-143)-37\cdot143=63\cdot227-100\cdot143 $$ so you end up with: $$ 1=63*227-100*143 $$ the last equation is called the Bezout's identity and the method of back-solving for reaching it, is usually called "the extended Euclidean algorithm".