- #1
evinda
Gold Member
MHB
- 3,836
- 0
Hi! (Sun)
I have to solve the diophantine equations:
for $x,y >0$
That's what I have tried:
Could you tell me if it is right or if I have done something wrong? (Thinking)
I have to solve the diophantine equations:
- $18x+5y=48$
- $158x-57y=7$
for $x,y >0$
That's what I have tried:
- $$gcd(18,5)=1, \text{ so } 18x+5y=48 \text{ has infinite solutions.}$$
$$\text{ As } gcd(18,15)=1, \exists x_0,y_0 \text{ such that } 18x_0+5y_0=1 \Rightarrow 18 (48x_0)+5(48y_0)=48$$
$$\text{So, } x_1=48x_0 , y_1=48y_0 \text{ is a solution of the diophantine equation}$$
The solutions are given by the formulas:
$$x=48x_0+18k , y=48y_0+5k, k \in \mathbb{Z}$$
$$x>0 \Rightarrow 48x_0+18k>0 \Rightarrow k>-\frac{48x_0}{18}$$
$$y>0 \Rightarrow 48y_0+5k>0 \Rightarrow k>-\frac{48y_0}{5}$$
$$ \text{ Therefore, }k> \max \{ -\frac{48x_0}{18}, -\frac{48y_0}{5}\}$$
- $$gcd(158,57)=1, \text{ so the diophantine equation } 158x-57y=7 \text{ has infinite solutions.}$$
Since, $gcd(158,57)=1$, $\exists x_0,y_0 \text{ such that } 158x_0+57y_0=1 \Rightarrow 158(7 x_0)-57(-7y_0)=7$
So,$x_1=7x_0 \text{ and } y_1=-7y_0$ is a solution of the diophantine equation.
So,the solutions from $ 158x-57y=7$ are given by the formulas:
$$x=7x_0+158k, y=-7y_0+57k , k \in \mathbb{Z}$$
$$x>0 \Rightarrow k > \frac{-7x_0}{158}$$
$$y>0 \Rightarrow k>\frac{7y_0}{57}$$
Therefore, $k>\max \{ \frac{-7x_0}{158},\frac{7y_0}{57} \}$
Could you tell me if it is right or if I have done something wrong? (Thinking)