Go back to previous page
Forum URL: http://www.cut-the-knot.org/cgi-bin/dcforum/forumctk.cgi
Forum Name: This and that
Topic ID: 922
Message ID: 4
#4, RE: proving the Chinese remainder theorem for more than 2
Posted by Otto Murphy on Mar-19-10 at 11:08 PM
In response to message #2
Don't you have to show that:

s = n_k+1 (mod gcd(lcm(m1, m2, ..., mk), m_k+1))

is true before you can find n:

n = s (mod lcm(m_1, m_2, ..., m_k))
n = n_k+1 (mod m_k+1)

I can't figure out how to prove that the first eqn. is true.