Why modulo m1 and modulo m2 implies modulo [m1, m2]

  • Thread starter crypto_rsa
  • Start date
In summary, if a \equiv r (mod m1) and a \equiv r (mod m2), then a \equiv r (mod [m1, m2]). This can be proven by showing that if m1|(a-r) and m2|(a-r), then [m1, m2] | (a-r) and thus a \equiv r (mod [m1, m2]).
  • #1
crypto_rsa
4
0
Why "modulo m1" and "modulo m2" implies "modulo [m1, m2]"

If [tex]a \equiv r[/tex] (mod m1) and [tex]a \equiv r[/tex] (mod m2) then [tex]a \equiv r[/tex] (mod [m1, m2]), where [a, b] is the least common multiple of a and b.

I have tried to prove that.

Assume that
[tex][m_{1}, m_{2}] = l_{1}m_{1} = l_{2}m_{2}[/tex]

and

[tex]a = k_{1}m_{1} + r[/tex]
[tex]a = k_{2}m_{2} + r[/tex]

Then

[tex]al_{1} = k_{1}l_{1}m_{1} + rl_{1}[/tex]
[tex]al_{2} = k_{2}l_{2}m_{2} + rl_{2}[/tex]

thus

[tex]a(l_{1} - l_{2}) = [m_{1}, m_{2}](k_{1} - k_{2}) + r(l_{1} - l_{2})[/tex]

and

[tex]a = [m_{1}, m_{2}] {(k_{1} - k_{2}) \over (l_{1} - l_{2})} + r[/tex]

In order to

[tex]a \equiv r\ (mod [m_{1}, m_{2}])[/tex], or [tex]a = K[m_{1}, m_{2}] + r[/tex]

we have to prove that

[tex](l_{1} - l_{2})\; | \; (k_{1} - k_{2})[/tex]

But how?
 
Physics news on Phys.org
  • #2


This doesn't directly answer your question, but wouldn't the proof be a lot easier if you started off with m1|(a-r) and m2|(a-r) ... ?
 
  • #3


Gokul43201 said:
This doesn't directly answer your question, but wouldn't the proof be a lot easier if you started off with m1|(a-r) and m2|(a-r) ... ?

You are right, the proof is actually very simple:

If m1 | (a-r) and m2 | (a-r) then a-r is a common multiple of m1 and m2. Therefore it is divisible by the least common multiple, [m1, m2]. Thus [m1, m2] | (a-r), or [tex]a[/tex] [tex] \equiv r[/tex] (mod [m1, m2])
 

1. Why do we use modulo in mathematics?

The modulo operation (denoted by %) in mathematics is used to find the remainder after division. It is particularly useful in solving problems involving repetition or pattern recognition.

2. What does it mean for two numbers to have the same modulo?

When two numbers have the same modulo, it means that they have the same remainder when divided by a given number. For example, 9 and 19 have the same modulo 5, as both have a remainder of 4 when divided by 5.

3. How does modulo m1 and modulo m2 imply modulo [m1, m2]?

When two numbers have the same modulo m1 and modulo m2, it means that they have the same remainder when divided by both m1 and m2. Therefore, when we take the least common multiple (LCM) of m1 and m2, which is denoted by [m1, m2], it will be a multiple of both m1 and m2. Thus, any number that has the same remainder when divided by m1 and m2 must also have the same remainder when divided by [m1, m2]. This is why modulo m1 and modulo m2 imply modulo [m1, m2].

4. Can the order of m1 and m2 affect the result of modulo [m1, m2]?

No, the order of m1 and m2 does not affect the result of modulo [m1, m2]. This is because the LCM of two numbers is commutative, meaning it will give the same result regardless of the order in which the numbers are multiplied.

5. How is the modulo operation useful in cryptography?

The modulo operation is used in various cryptographic algorithms to ensure the security of data. It is used to generate large prime numbers, which are essential in many cryptographic protocols. It is also used in public-key cryptography, where the modulo operation is used to generate keys and encrypt and decrypt messages.

Similar threads

  • Precalculus Mathematics Homework Help
Replies
19
Views
752
  • Precalculus Mathematics Homework Help
Replies
5
Views
865
Replies
1
Views
716
  • Linear and Abstract Algebra
Replies
1
Views
912
  • Linear and Abstract Algebra
Replies
1
Views
1K
  • Linear and Abstract Algebra
Replies
2
Views
771
  • Engineering and Comp Sci Homework Help
Replies
6
Views
1K
  • Introductory Physics Homework Help
Replies
2
Views
227
  • Atomic and Condensed Matter
Replies
1
Views
1K
  • High Energy, Nuclear, Particle Physics
Replies
13
Views
3K
Back
Top