The diaphantine equation, have solutions iff . So in your case (a,b)=1 and since have solutions.
Therefore 30x + 17y = 30 and 158x-57y=7 have solutions.
Hope this helps.
Do diophantine equations ax+by =C with gcd (a,b) = 1 have a solution?
Consider the following diophantine equations
30x + 17y = 30
gcd of both these equations are 1. So does that mean these equations have no solution?
First of all (a,b)=d (the greatest common divisor of a and b is d) means the greatest positive integer that divides both a and b is d. Therefore by definition the greatest common divisor is always positive.
When finding the greatest common divisor and the general solution to a Diophantine equation use the method I have given below.
Using Euclid's algorithm,
Now using reverse substitution,
The general solution,
Hope this will help you to understand Diophantine equations.