Iterations in the Euclidean algorithm

Click For Summary

Homework Help Overview

The discussion revolves around the Euclidean algorithm and its efficiency in calculating the greatest common divisor (gcd) of two natural numbers, m and n, under the condition that the minimum of m and n is at least \(2^k\) for some natural number k. Participants are tasked with demonstrating that the algorithm requires at most \(2k\) iterations.

Discussion Character

  • Exploratory, Assumption checking, Conceptual clarification

Approaches and Questions Raised

  • Participants discuss the need to show that the remainders \(r_{k+2}\) are less than or equal to half of \(r_k\). There is uncertainty about how to approach this proof, with suggestions of using contradiction or cases. Some participants question the completeness of the original statement and whether the conditions are correctly framed.

Discussion Status

The discussion is ongoing, with participants exploring different interpretations of the problem statement and the implications of the hint provided regarding the relationship between the remainders. There is no explicit consensus on the approach to take, but hints and suggestions are being shared.

Contextual Notes

Some participants note potential issues with the original problem statement, suggesting that it may need clarification regarding the bounds of m and n. There is also a mention of the hint provided, which suggests a case-based approach to the proof.

Panphobia
Messages
435
Reaction score
13

Homework Statement


Let m and n be natural numbers. Suppose ## min(m, n) \geq 2^k ## for some natural number k. Show that the Euclidean Algorithm needs at most ## 2k ## iterations to calculate the gcd of m and n.

The Attempt at a Solution


[/B]
So far I think I need to show that for all the remainders ## r_{k} ## ## r_{k+2} \leq \frac{r_{k}}{2} ##. But I have no idea what else to do or how to prove that.
 
Physics news on Phys.org
Panphobia said:

Homework Statement


Let m and n be natural numbers. Suppose ## min(m, n) \geq 2^k ## for some natural number k. Show that the Euclidean Algorithm needs at most ## 2k ## iterations to calculate the gcd of m and n.

The Attempt at a Solution


[/B]
So far I think I need to show that for all the remainders ## r_{k} ## ## r_{k+2} \leq \frac{r_{k}}{2} ##. But I have no idea what else to do or how to prove that.

The statement is incomplete: I think you had better say ##2^k \leq \min(m,n) < 2^{k+1}##. (Otherwise, ##k = 1## would satisfy your hypothesis, and your claim would be that for any pair ##m,n \geq 2## we can find their gcd in at most 2 steps.)
 
It should be changed to ## min(m, n) \leq 2^k ##
 
To show that ## r_{k+2} \leq \frac{r_k}{2} ## how would I do that? Contradiction? Cases?
 
Panphobia said:
To show that ## r_{k+2} \leq \frac{r_k}{2} ## how would I do that? Contradiction? Cases?

What makes you think you need to show that? Was it supplied as a hint by the person setting the question?
 
Yeah it was supplied as a hint. According to the hint it's supposed be proven using cases. But I can't see it.
 

Similar threads

  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 11 ·
Replies
11
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K