Let be 7x+9y=5 a linear diophantine equation, in two variables. What are the integer solutions for x and y?
I know that 7x+9y=5 is a cartesian equation for a line in the plane. Then I thought, if one could define x and y in terms of the same parameter, it would be possible to know all the integer solutions. But I don't have clue on how can convert an diophantine equantion in the form ax+by=c to its parametric form.
Can you give me some hints?Thanks.
Answer
97=1+27=1+172=1+13+12
So, the last but one convergent is 1+13=43
Using Convergent property of continued fraction, 7⋅4−9⋅3=1
7x+9y=5(7⋅4−9⋅3)⟹7(x−20)=−9(y+15)⟹x−20=−9(y+15)7 which is an integer.
So, 7∣(y+15) as (7,9)=1 ⟹x−20−9=y+157=z for some integer z
So, y=7z−15=7(z−3)+6=7w+6 where w=z−3 is any integer.
So, x=−9z+20=−9(w−3)+20−27=−(9w+7)
Alternatively, by observation 7x+9y=5=14−9
or 7(x−2)=−9(y+1)
or, x−2−9=y+17
−9(y+1)7=x−2 which is an integer, so is y+17 as (7,9)=1
So, x−2−9=y+17=u where u is any integer.
So, x=−9u+2,y=7u−1
No comments:
Post a Comment