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
 
Seemingly by some mathematical coincidence, a hexagon of sides 2,2,7,7, 11, and 11 can be inscribed in a circle of radius 7. The other day I saw a math problem on line, which they said came from a Polish Olympiad, where you compute the length x of the 3rd side which is the same as the radius, so that the sides of length 2,x, and 11 are inscribed on the arc of a semi-circle. The law of cosines applied twice gives the answer for x of exactly 7, but the arithmetic is so complex that the...
Is it possible to arrange six pencils such that each one touches the other five? If so, how? This is an adaption of a Martin Gardner puzzle only I changed it from cigarettes to pencils and left out the clues because PF folks don’t need clues. From the book “My Best Mathematical and Logic Puzzles”. Dover, 1994.
Thread 'Imaginary Pythagoras'
I posted this in the Lame Math thread, but it's got me thinking. Is there any validity to this? Or is it really just a mathematical trick? Naively, I see that i2 + plus 12 does equal zero2. But does this have a meaning? I know one can treat the imaginary number line as just another axis like the reals, but does that mean this does represent a triangle in the complex plane with a hypotenuse of length zero? Ibix offered a rendering of the diagram using what I assume is matrix* notation...
Back
Top