Solving Modular Arithmetic: x\equiv2 (mod km)

  • Thread starter Thread starter theIBnerd
  • Start date Start date
  • Tags Tags
    Arithmetic
AI Thread Summary
The discussion centers on the conditions for modular arithmetic, specifically whether x ≡ 2 (mod k) and x ≡ 2 (mod m) implies x ≡ 2 (mod km). It is clarified that this implication holds true only if k and m are coprime. An example is provided with k=4 and m=8, demonstrating that while x=10 satisfies the individual modular equations, it does not satisfy the combined equation without the coprime condition. The user concludes that they have resolved their confusion by establishing the necessary condition for the modular relationship. The conversation highlights the importance of understanding coprimality in modular arithmetic.
theIBnerd
Messages
13
Reaction score
0
i might be making it up, but i am confused.

can we say:

x\equiv2 (mod k)
x\equiv2 (mod m)
hence
x\equiv2 (mod km) by km i mean k multiplied by m.

if not, what is the result? or can it be found?

thank you in advance.
 
Mathematics news on Phys.org
No.

k=4
m=8
x=10
x=2(mod 4) and x=2(mod 8) but x=10(mod 32)

In general, if you have something mod m and something mod k, and want to discuss what happens mod mk, then you need a condition on m and k being coprime, or something similar.
 
thank you for your answer.

i think i found sth:

say (k,m) = 1

x=a (mod k)
x=a (mod m)

x=kt+a and x=my+a
kt=my
t=mb
y=kb

then x=kmb+a
x-a=kmb
x-a=0 (mod km)
x=a (mod km)

it is valid, isn't it? any counterexamples?
 
That looks pretty good to me
 
:) then my problem is solved. now i should get back to work.
 
Yeah, I hate when that happens!:-p
 
Thread 'Video on imaginary numbers and some queries'
Hi, I was watching the following video. I found some points confusing. Could you please help me to understand the gaps? Thanks, in advance! Question 1: Around 4:22, the video says the following. So for those mathematicians, negative numbers didn't exist. You could subtract, that is find the difference between two positive quantities, but you couldn't have a negative answer or negative coefficients. Mathematicians were so averse to negative numbers that there was no single quadratic...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Thread 'Unit Circle Double Angle Derivations'
Here I made a terrible mistake of assuming this to be an equilateral triangle and set 2sinx=1 => x=pi/6. Although this did derive the double angle formulas it also led into a terrible mess trying to find all the combinations of sides. I must have been tired and just assumed 6x=180 and 2sinx=1. By that time, I was so mindset that I nearly scolded a person for even saying 90-x. I wonder if this is a case of biased observation that seeks to dis credit me like Jesus of Nazareth since in reality...
Back
Top