For the base case, suppose that , so we'd like to prove that . Firstly we know that with , then applying the next iteration we have with and one more time, we get with , this shows us that .
Since , and , then , and , therefore therefore which concludes the base case
Now let assuming that , we want to prove that , noting that .
To start let's say we have an intance of the euclidean algorithm that lasts for at least iterations, therefore we know that by our induction hypothesis, additionally at the -th iteration we would have an equation of the form , since we know that , then , which then shows that , and since , then we know that which is what we needed to show