Loading [MathJax]/jax/output/SVG/jax.js
 
+0  
 
+20
1908
5
avatar+118696 

Here is a diophantine equation for me and Chris and whoever else is interested to practice on:

 1027x+712y=1

Here is the solution - but can we reproduce it with minimal cheating?  Maybe Chris can solve it a less conventional way.  He is pretty tricky like that.  :))

 

http://mathworld.wolfram.com/DiophantineEquation.html  (11)

 Jul 2, 2015

Best Answer 

 #4
avatar+26396 
+10

 1027x+712y=1

(gcd = greatest common divisor)

 

1. There is only a solution when gcd( 1027, 712 ) = 1 or in other words 1027 and 712 are relatively prime.

 

2. Using the Euclidian algorithm to calcutate gcd(1027,712)

 

abqr10277121315712315282315823698269113691354134314140

The greatest common divisor gcd(1027,712) =1

and we can go on

 

3. Using Extended Euclidean algorithm to calculate the first solution

abqrxy10277121315165731(165)=2387123152827319273=1653158236919163(19)=738269113163116=19691354315(3)=16134311031=34140004+1=1

 

 The first solution is (165,238)1027(165)+712238=1

4. All Solutions:

ax+by=1First solution  (x0, y0)All solutions  (x0+zbgcd(a,b), y0zagcd(a,b))

 

1027x+712y=1First solution  (x0=165, y0=238)All solutions  (165+z7121, 238z10271)

 

we have:

{ ( 165+712z, 2381027z) | zZ }

 

 Jul 2, 2015
 #1
avatar+130458 
+10

I'm going to employ maximum cheating on this one.......

 

Using the Euclidian algorithm, we have

 

1027  = 1(712) + 315

712 = 2(315) + 82

315 = 3(82) + 69

82 = 1(69) + 13

69 = 5(13) + 4

13 = 3(4) + 1

4 = 4(1) + 0

 

                              1        2        3         1        5          3          4

1  0                        1        2        7         9        52     165       712     

0  1                        1        3       10       13       75      238     1027

 

Take the  determinant of          165     712

                                                 238   1027        =   -1

 

So.....

 

1027(165) - 712(238) = - 1   but...we need a  "+1 "   .....so......multiplying through by -1, we have

 

1027(-165) + 712(238) = 1

 

So....x = -165   and y = 238....however.....this is only one solution.....the general solution is given by

 

x , y   =  [ (-165 + 712k), (238 - 1027k) ]

 

 Jul 2, 2015
 #2
avatar+118696 
+5

Well aren't you just so clever.  I worked it out Too :))

 Jul 2, 2015
 #3
avatar+130458 
+5

Well....Ms. SmartyPants......I even provided a general solution.....so.....take that  !!!   

 

 

 

 

 Jul 2, 2015
 #4
avatar+26396 
+10
Best Answer

 1027x+712y=1

(gcd = greatest common divisor)

 

1. There is only a solution when gcd( 1027, 712 ) = 1 or in other words 1027 and 712 are relatively prime.

 

2. Using the Euclidian algorithm to calcutate gcd(1027,712)

 

abqr10277121315712315282315823698269113691354134314140

The greatest common divisor gcd(1027,712) =1

and we can go on

 

3. Using Extended Euclidean algorithm to calculate the first solution

abqrxy10277121315165731(165)=2387123152827319273=1653158236919163(19)=738269113163116=19691354315(3)=16134311031=34140004+1=1

 

 The first solution is (165,238)1027(165)+712238=1

4. All Solutions:

ax+by=1First solution  (x0, y0)All solutions  (x0+zbgcd(a,b), y0zagcd(a,b))

 

1027x+712y=1First solution  (x0=165, y0=238)All solutions  (165+z7121, 238z10271)

 

we have:

{ ( 165+712z, 2381027z) | zZ }

 

heureka Jul 2, 2015
 #5
avatar+118696 
0

Thanks for that great answer Heureka :)

 Jul 3, 2015

4 Online Users

avatar