Congruence modulo m: Find Smallest Int Value

  • Thread starter Thread starter pc2-brazil
  • Start date Start date
Click For Summary
To find the integer with the smallest absolute value that is congruent to an integer a modulo m, where m is positive, the formula depends on the relationship between a and m. If the remainder a mod m is less than or equal to the ceiling of m/2, then the smallest integer is simply a mod m. However, if a mod m exceeds the ceiling of m/2, the smallest integer is (a mod m) - m. This distinction arises because the absolute value of the negative equivalent can be less than that of the positive remainder. Understanding this relationship is crucial for determining the correct smallest integer value in modular arithmetic.
pc2-brazil
Messages
198
Reaction score
3

Homework Statement


Find a formula for the integer with smallest absolute value that is congruent to an integer a modulo m, where m is a positive integer.

Homework Equations


An integer x is congruent to an integer a modulo m if and only if:
x \equiv a \pmod m

The Attempt at a Solution


From the definition:
x \mod m = a \mod m
or:
x - a = km
where k is an integer.
From the division "algorithm":
x = mq + a\mod m
where q is the quotient.
But I'm not sure on how to proceed from here. The textbook gives a strange answer: x \mod m if x \mod m \leq \left \lceil m/2 \right \rceil and (x \mod m) - m if x \mod m > \left \lceil m/2 \right \rceil
I would say that the smallest absolute value of x is when the quotient (q above) is 0. Thus:
x=a\mod m
According to the answer, x=a\mod m is only true if x \mod m \leq \left \lceil m/2 \right \rceil, but I can't figure out why.

Thank you in advance.
 
Physics news on Phys.org
For example, If a= 5 and m= 7, then x= 5 (mod 7) if and only if x= 5+ 7k for integer k. k= 0 gives x= 5, of course, and k= -1 gives x= -2. The "smallest absolute value" is 2, not 5, because ⌈m/2⌉= 3 and 3< 5. If a= 3 then x= 3 (mod n7) if and only if x= 3+ 7k. k= 0 gives x= 3 while k= -1 gives 3- 7= -4. Now the "smallest absolute value" is 3.

In general x= a (mod m) (for 0\le a&lt; m) if and only if x= a+ mk for integer k. k= 0 gives x= a&gt; 0 and k= -1 gives a- m&lt; 0. Which of those has smaller absolute value depends on how close a is to m.
 
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 2 ·
Replies
2
Views
1K
  • · Replies 3 ·
Replies
3
Views
905
Replies
4
Views
1K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
15
Views
4K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 16 ·
Replies
16
Views
2K
Replies
2
Views
1K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 5 ·
Replies
5
Views
17K