Diophantine Equation and Euclid's algorithm

  • Thread starter Thread starter Spruance
  • Start date Start date
  • Tags Tags
    Algorithm
Click For Summary
The discussion centers on solving the Diophantine equation 13x + 4y = 100 for positive integers x and y. The original poster used Euclid's algorithm to find that x = 4 and y = 12, resulting in x + y = 16. Another participant noted that x must be an even number and suggested that x should be set to 4 to ensure y remains an integer, confirming the same solution. The conversation highlights the use of different methods to arrive at the solution while seeking a simpler approach. Overall, the equation's solution is established as x + y = 16.
Spruance
Messages
33
Reaction score
0
Given that x and y are positive integers such that:

13x + 4y = 100

Then, what is x + y like?

Personally, I found the answer using Euclid's algorithm.


d = gcd(13,4)=1

13 * u + 4 * v = 1

(u, v) = (1,-3)

(x,y) = (100, -300)

13 * (x - 100) = 4 * (y + 300)

(Gauss)

x = 4 * k & y = 13 * k - 1

we set k = 1;

ergo is x = 4 and y = 12

x + y = 4 + 12 = 16

However, my teacher told me that it exist a much easier way to solve the equation. Anyone that know his solution to the problem?

Thanks in advance
 
Physics news on Phys.org
Spruance said:
Given that x and y are positive integers such that:

13x + 4y = 100

Then, what is x + y like?

Personally, I found the answer using Euclid's algorithm.


d = gcd(13,4)=1

13 * u + 4 * v = 1

(u, v) = (1,-3)

(x,y) = (100, -300)

13 * (x - 100) = 4 * (y + 300)

(Gauss)

x = 4 * k & y = 13 * k - 1

we set k = 1;

ergo is x = 4 and y = 12

x + y = 4 + 12 = 16

However, my teacher told me that it exist a much easier way to solve the equation. Anyone that know his solution to the problem?

Thanks in advance


13x +4y = 100 and x and y are integers

first off if this is to be true then x HAS to be a positive even number.
also notice that 13*8 is 80+24=104 therefore x can only be 2 4 or 6.

Next, 13 and 4 have no common factors therefore we must choose that x is equal to 4 for it to be guaranteed that y is also an integer. So if x = 4, then y is 100/4 - 13 = 12.

Hope this helps!
 
Question: A clock's minute hand has length 4 and its hour hand has length 3. What is the distance between the tips at the moment when it is increasing most rapidly?(Putnam Exam Question) Answer: Making assumption that both the hands moves at constant angular velocities, the answer is ## \sqrt{7} .## But don't you think this assumption is somewhat doubtful and wrong?

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
1
Views
1K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 19 ·
Replies
19
Views
3K
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
45
Views
5K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K