Prove gcd(a, b) = gcd(r鈧欌倠鈧, r鈧)
We would use mathematical induction on the remainders to prove this:
Base case, n = 1: We need to prove gcd(a, b) = gcd(b, r鈧). According to Step 2, we have a = b * q鈧 + r鈧. Since a is a multiple of gcd(a, b) and a - b * q鈧 = r鈧, then r鈧 must also be a multiple of gcd(a, b). So gcd(a, b) must divide both b and r鈧, and hence gcd(a, b) 鈮 gcd(b, r鈧). Furthermore, since gcd(b, r鈧) divides both b and r鈧, it must also divide a, so gcd(b, r鈧) 鈮 gcd(a, b). Combining these inequalities, we have gcd(a, b) = gcd(b, r鈧).
Induction step: Suppose the statement is true for n = k, i.e., gcd(r鈧栤倠鈧, r鈧) = gcd(a, b). We must now prove it for n = k + 1, i.e., gcd(r鈧, r鈧栤倞鈧) = gcd(a, b).
For n = k + 1, we have r鈧 = r鈧栤倞鈧 * q鈧栤倞鈧 + r鈧栤倞鈧 with remainder 0. So, gcd(r鈧栤倠鈧, r鈧) = gcd(r鈧, r鈧栤倞鈧). Since gcd(r鈧栤倠鈧, r鈧) = gcd(a, b) (from our induction hypothesis), we get gcd(a, b) = gcd(r鈧, r鈧栤倞鈧).
Hence, by the principle of mathematical induction, we have proven that gcd(a, b) = gcd(r鈧欌倠鈧, r鈧) for all n 鈮 1.