Using Euclidean Algorithm, find the solution to the given equation
(198, 288, 512) = 198 x + 288 y + 512 z
Let the value of x + y + z = S . Write your answer as S .
Note :
1) (x, y, z) represents the GCD of x, y and z. 2) Though there can be many solutions of x, y and z. But the first solution that comes using Euclidean Algorithm is the answer.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Put d = GCD (198, 288).
Since GCD ( GCD (a, b), c) = GCD (a, b, c), we will find integers u and v for which GCD ( d , 512) = du + 512 v
Using Euclidean Algorithm,
So, d = 18.
To represent 18 as a linear combination of 198 and 288, we write the above equations backward -
Now we have to find (18, 512) and then represent it in the form of 18 u +512 v
So (512, 18) = 2. Now,
Putting the value of 18,
Thus, x = 171, y = - 114, z = - 2 and S = 55