Using the Euclidean algorithm .I think

In summary: Shouldn't that be MINUS 59y ?:shy:Thanks again, I can't even count the amount of times you've helped me in the last few days. I have one final question. It had to do with diophantines with 3 variables:2x + 3y + 7z = 32I read a long winded solution somewhere that involved guessing a value for one of the variables and then figuring them out for all the cases. Is there a more compact way of doing along the lines of 2 variables?Maybe you can cut down the examples needing examination. Is it the case that y, z have to be both odd or both even? And probably it would be more
  • #1
trap101
342
0
Using the Euclidean algorithm...I think...

find the smallest natural number x such that 24x leaves a remainder of 2 upon division by 59

SO it seems to me that the way to approach this would be through the euclidean algorithm and a diophantine equation. Thinking about it for a moment would I perhaps set it up like this?


24x + 59y = 2

then proceed with the process?
 
Physics news on Phys.org
  • #2


trap101 said:
find the smallest natural number x such that 24x leaves a remainder of 2 upon division by 59

SO it seems to me that the way to approach this would be through the euclidean algorithm and a diophantine equation. Thinking about it for a moment would I perhaps set it up like this?


24x + 59y = 2

then proceed with the process?

Well, sure. Yes. Why not?
 
  • #3


Thanks again, I can't even count the amount of times you've helped me in the last few days. I have one final question. It had to do with diophantines with 3 variables:

2x + 3y + 7z = 32

I read a long winded solution somewhere that involved guessing a value for one of the variables and then figuring them out for all the cases. Is there a more compact way of doing along the lines of 2 variables?
 
  • #4


trap101 said:
Thanks again, I can't even count the amount of times you've helped me in the last few days. I have one final question. It had to do with diophantines with 3 variables:

2x + 3y + 7z = 32

I read a long winded solution somewhere that involved guessing a value for one of the variables and then figuring them out for all the cases. Is there a more compact way of doing along the lines of 2 variables?

Not that I know of. That sounds like the way to do it.
 
  • #5


trap101 said:
find the smallest natural number x such that 24x leaves a remainder of 2 upon division by 59

SO it seems to me that the way to approach this would be through the euclidean algorithm and a diophantine equation. Thinking about it for a moment would I perhaps set it up like this?


24x + 59y = 2

then proceed with the process?

Shouldn't that be MINUS 59y ?:shy:
 
  • #6


trap101 said:
Thanks again, I can't even count the amount of times you've helped me in the last few days. I have one final question. It had to do with diophantines with 3 variables:

2x + 3y + 7z = 32

I read a long winded solution somewhere that involved guessing a value for one of the variables and then figuring them out for all the cases. Is there a more compact way of doing along the lines of 2 variables?

Maybe you can cut down the examples needing examination. Is it the case that y, z have to be both odd or both even? And probably it would be more efficient to examine different values of the number with the largest coefficient, z, first? Other shortcuts may suggest themselves as you proceed.
 

FAQ: Using the Euclidean algorithm .I think

What is the Euclidean algorithm?

The Euclidean algorithm is a method for finding the greatest common divisor (GCD) of two numbers. It involves repeatedly dividing the larger number by the smaller number and using the remainder as the new smaller number until the remainder is equal to 0. The last nonzero remainder is the GCD of the two numbers.

How is the Euclidean algorithm used?

The Euclidean algorithm is used to simplify fractions, find equivalent fractions, or reduce fractions to lowest terms. It can also be used to solve problems involving ratios and proportions, as well as to find the GCD of two or more numbers.

Can the Euclidean algorithm be used for any two numbers?

Yes, the Euclidean algorithm can be used for any two numbers, as long as they are positive integers.

What is the time complexity of the Euclidean algorithm?

The time complexity of the Euclidean algorithm is O(log n), where n is the larger of the two numbers. This means that the algorithm is very efficient and can handle large numbers quickly.

Are there any limitations to using the Euclidean algorithm?

The Euclidean algorithm can only be used for positive integers and cannot handle fractions or decimals. It also cannot find the GCD of two or more numbers if they have no common factors. In addition, the algorithm may take longer to compute if the two numbers are very large and have a large difference between them.

Similar threads

Replies
1
Views
1K
Replies
4
Views
3K
Replies
5
Views
2K
Replies
1
Views
2K
Replies
1
Views
942
Back
Top