Proof of Altered Division Algorithm

Click For Summary

Homework Help Overview

The discussion revolves around proving the existence of unique integers q and r for positive integers a and b, such that a = bq + r and -b/2 < r ≤ b/2. Participants reference the standard division algorithm as a foundational concept.

Discussion Character

  • Exploratory, Assumption checking, Problem interpretation

Approaches and Questions Raised

  • Participants explore the implications of the standard division algorithm and attempt to redefine the remainder r in terms of a new variable r'. Questions arise regarding the validity of the chosen r' and its alignment with the altered division algorithm's requirements.

Discussion Status

Some participants express uncertainty about the correctness of their approaches, particularly regarding the definition of r'. Others suggest alternative methods for determining r' based on the relationship between r and b, indicating a productive exploration of the problem.

Contextual Notes

Participants are working under the assumption that the standard division algorithm applies, but they are questioning how to adapt it to meet the specific conditions of the altered algorithm. There is a noted lack of consensus on the appropriate choice for r' and its implications for finding q'.

tylerc1991
Messages
158
Reaction score
0

Homework Statement



Show that, for positive integers [itex]a[/itex] and [itex]b[/itex], there exists unique integers [itex]q[/itex] and [itex]r[/itex] such that

[itex]a = bq + r[/itex] and [itex]-b/2 < r \leq b/2[/itex].

Homework Equations



We can assume the standard division algorithm holds. That is, for integers [itex]a[/itex] and [itex]b[/itex], there exists unique integers [itex]q[/itex] and [itex]r[/itex] such that

[itex]a = bq + r[/itex] and [itex]0 \leq r < b[/itex].

Let [itex][\cdot][/itex] represent the floor function.

The Attempt at a Solution



Suppose [itex]a[/itex] and [itex]b[/itex] are positive integers. By the division algorithm, there exists unique integers [itex]q[/itex] and [itex]r[/itex] such that

[itex]a = bq + r[/itex] and [itex]0 \leq r < b[/itex].

At this point, I let [itex]r' = [b/2] - r[/itex]. Since [itex]0 \leq r[/itex], we have that [itex]-r \leq 0[/itex], which implies [itex][b/2] - r = r' \leq [b/2] \leq b/2[/itex] by the definition of the floor function. Also, since [itex]r < b[/itex], we see that [itex]-r > -b[/itex], which implies [itex][b/2] - r > [b/2] - b = [-b/2] \geq -b/2[/itex].

This is where I get stuck. I have found an integer [itex]r'[/itex] that gives [itex]-b/2 < r' \leq b/2[/itex], but now I have to find an integer [itex]q'[/itex] to satisfy [itex]a = bq' + r'[/itex]. Any ideas?
 
Last edited:
Physics news on Phys.org
tylerc1991 said:

Homework Statement



Show that, for positive integers [itex]a[/itex] and [itex]b[/itex], there exists unique integers [itex]q[/itex] and [itex]r[/itex] such that

[itex]a = bq + r[/itex] and [itex]-b/2 < r \leq b/2[/itex].

Homework Equations



We can assume the standard division algorithm holds. That is, for integers [itex]a[/itex] and [itex]b[/itex], there exists unique integers [itex]q[/itex] and [itex]r[/itex] such that

[itex]a = bq + r[/itex] and [itex]0 \leq r < b[/itex].

Let [itex][\cdot][/itex] represent the floor function.

The Attempt at a Solution



Suppose [itex]a[/itex] and [itex]b[/itex] are positive integers. By the division algorithm, there exists unique integers [itex]q[/itex] and [itex]r[/itex] such that

[itex]a = bq + r[/itex] and [itex]0 \leq r < b[/itex].

At this point, I let [itex]r' = [b/2] - r[/itex]. Since [itex]0 \leq r[/itex], we have that [itex]-r \leq 0[/itex], which implies [itex][b/2] - r = r' \leq [b/2] \leq b/2[/itex] by the definition of the floor function. Also, since [itex]r < b[/itex], we see that [itex]-r > -b[/itex], which implies [itex][b/2] - r > [b/2] - b = [-b/2] \geq -b/2[/itex].

This is where I get stuck. I have found an integer [itex]r'[/itex] that gives [itex]-b/2 < r' \leq b/2[/itex], but now I have to find an integer [itex]q'[/itex] to satisfy [itex]a = bq' + r'[/itex]. Any ideas?

The r' you have, will not work as the remainder of the altered algorithm. I don't know if that's what you intended or not.
 
SammyS said:
The r' you have, will not work as the remainder of the altered algorithm. I don't know if that's what you intended or not.

Right. The solution above doesn't work. I ended up choosing r' depending on what r - b was, which gives the desired result. Hopefully that helps anyone who has this problem in the future.
 
tylerc1991 said:
Right. The solution above doesn't work. I ended up choosing r' depending on what r - b was, which gives the desired result. Hopefully that helps anyone who has this problem in the future.
Right !

or ...
Let r ' = r , q ' = q

If r ' > b/2 then: r ' = r - b and q ' = q + 1 .
 

Similar threads

Replies
15
Views
4K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 20 ·
Replies
20
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
Replies
2
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K