Find integers $x$ and $y$ such that $49x + 100y = 1$. Which, if either, is the inverse of $49$, modulo $100$?
I know the answer to this is $x = 49$ and $y = -24$, but how do I arrive at that?
The argument starts with:
$$100 = 1(100) + 0(49)$$
$$49 = 0(100) + 1(49)$$
$$2 = 1(100) - 2(49)$$
The last step is:
$$1 = -24(100) + 49(49)$$
I just can't understand where the $-24$ and $49(49)$ came from.
