1) Calculate gcd(2016,208)
I have managed to carry out the following steps:
2016 = 9 x 208 + 144
2016 - 9 x 208 = 144
208 = 144 + 64
208 - 144 = 64
But I am a little stuck on how to proceed after this. And also:
2) Are there any integers a and b such that 2016a + 208b = 1000? If so, what are they? If not, why not?
and
3) Are there any integers a and b such that 2016a + 208b = 1024? If so, what are they? If not, why not?
I believe that to answer question 2 and 3, I will need the gcd from question 1. However, I am not sure how I will use this gcd.
Any help?
$\begin {array}{c|cc}\\ &2016&208\\ 2016&1&0\\ 208&0&1\\ 144&1&-9\\ 64&-1&10\\ 16&3&-29\end{array}$
And $16$ divides $64,$ so we are done.
$16 = \gcd(2016,208)$
$16 =3\cdot 2016 - 29\cdot 208$
In each row the two columns to the right of the $|$ are the coefficients such that $m\cdot 2016 + n\cdot 208$ equals what is in the column on the left.
I look for the largest multiple that I can subtract from the row above, whatever I do on the left, I carry to the right.
b) 16 is not a factor of $1000$ i.e. $\gcd (2016, 1000) = 8$ So, no, it can't be done.
c) $1024 = 2^{10} = 16\cdot 2^6\\ 3\cdot 64 \cdot 2016 - 29\cdot 64 \cdot 208 = 1024$
This is certainly not the only pair that acomplishes the task. But it is an easy pair to find.