I want to find some arithmetic way of solving these. For the first one:
$$\gcd(1,2) = 1 \Rightarrow 2 = 1*2 + 0 \\ \gcd(a,b) = d \Rightarrow \gcd(ak,bk)=dk,\\ \gcd(a,2a) = a$$
How do you do something like this for the others?
I want to find some arithmetic way of solving these. For the first one:
$$\gcd(1,2) = 1 \Rightarrow 2 = 1*2 + 0 \\ \gcd(a,b) = d \Rightarrow \gcd(ak,bk)=dk,\\ \gcd(a,2a) = a$$
How do you do something like this for the others?
HINT: $\gcd (a,b) = \gcd(a,a-b)$. (Prove this with the Euclidean algorithm if you'd like, or just from the usual definition.)