What Are Congruent Modulos?

  • Context: Undergrad 
  • Thread starter Thread starter stanners
  • Start date Start date
Click For Summary
SUMMARY

Congruent modulos are defined by the relationship x is congruent to y mod n if n divides x-y. This principle applies equally to negative and positive numbers. For example, -1 is congruent to 1 mod 2 because 2 divides the difference of 1 and -1. To find the remainder of negative numbers, one must adjust by adding the modulus until the result falls within the range of 0 to n-1, as demonstrated with -12 mod 5.

PREREQUISITES
  • Understanding of modular arithmetic
  • Familiarity with the concept of remainders
  • Basic knowledge of negative numbers in mathematics
  • Ability to perform simple arithmetic operations
NEXT STEPS
  • Study the properties of modular arithmetic in detail
  • Learn how to compute modular inverses
  • Explore applications of congruences in number theory
  • Investigate the Chinese Remainder Theorem for solving systems of congruences
USEFUL FOR

Students of mathematics, educators teaching modular arithmetic, and anyone interested in number theory and its applications.

stanners
Messages
11
Reaction score
0
Hey, I'm reading through some notes, and I don't really understand congruent modulos

I was hoping someone could explain better than the sites I found on google.
Am I solving for something? I see a bunch of examples, but I don't understand what the problem is, or what I'm solving for... a = b (mod p)

-1 = 1 (mod 2)
-12 = 3 (mod 5)

I don't understand how the negative numbers work.

22 = 1 (mod 3)
12 = 2 (mod 5)

What I'm getting right now is 22/3 is remainder 1. and 12/5 is remainder 2..

but for -12/5.. wouldn't the remainder be -2?
and -1/2.. wouldn't the remainder be -1?

Sorry if this seems like a dumb question, thanks in advance.
 
Physics news on Phys.org
Negative numbers work in precisely the same way as positive numbers.

x is congruent to y mod n if n divides x-y, so 1-(-1)=2, and 2 is divisible by 2, hence 1=-1 mod 2.

Remainders are defined to be in the range 0 to n-1. To work out the remainder you must subtract or _add_ n until you get a number in the right range. Thus, taking the -12 one, add 5 to get -7, add 5 to get -2, add 5 to get 3, now stop as we're in the range 0,1,2,3,4.
 

Similar threads

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