Division Algorithm: Find q & r for a=-5286 and b=19

  • Context: High School 
  • Thread starter Thread starter Caldus
  • Start date Start date
  • Tags Tags
    Algorithm Division
Click For Summary
SUMMARY

The division algorithm is used to find the quotient (q) and remainder (r) for integers a and b. In this case, for a = -5286 and b = 19, the correct values are q = -279 and r = 15. The relationship is established as a = (-q)b - r, where 0 ≤ r < b. The confusion arose from sign mismanagement in the calculations, emphasizing the importance of correctly applying the division algorithm.

PREREQUISITES
  • Understanding of the division algorithm
  • Basic knowledge of integer arithmetic
  • Familiarity with negative numbers and their properties
  • Ability to perform long division
NEXT STEPS
  • Review the division algorithm and its applications in number theory
  • Practice long division with negative integers
  • Explore the properties of quotients and remainders in modular arithmetic
  • Learn about the implications of the division algorithm in computer science
USEFUL FOR

Mathematics students, educators, and anyone interested in understanding integer division and its applications in algorithms.

Caldus
Messages
106
Reaction score
0
If I have to find the quotient q and the remainder r and:

a = -5286
b = 19

How do I go about writing down the steps for this algorithm? I know what the answer will be, but I need to be able to use the division algorithm to prove my answer. Like I know if:

b > 0 and a < 0 (which in this case is true),

then since -a > 0, a = (-q)b - r (where 0 <= r < b).

But how would I know that q is equal to -279 and that the remainder is 15? (Pretending that I didn't the know answer already.)

Thanks.
 
Mathematics news on Phys.org
I have absolutely no idea how you would "know that q is equal to
-279 and that the remainder is 15" since -(-279)(19)-15 is NOT
-5286 (nor is (-279)(19)-15). You have your signs mixed up.

Did you try actually dividing? That is, after all what the division algorithm is!
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
942
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K