Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The Chinese Remainder Theorem (the CRT)

  1. Jul 1, 2008 #1
    Find the lowest number that has a remainder of
    1 when divided by 2,
    2 when divided by 3,
    3 when divided by 4,
    4 when divided by 5, and
    5 when divided by 6.

    It is possible to solve this by applying the general algorithm that solves Chinese Remainder problems. But, for this special case of the CRT, there is an much quicker way. You just have to look at it right and the answer pops out. ....

    Naturally, the point of this problem is more about finding the trick than it is about finding the right answer.

    6=3x2 and 4 = 2x2.
    Problem Source:
    Problem 35 on p. 11 in Chp. 1 of Carter and Russell, "The Complete Book of Fun Maths"
  2. jcsd
  3. Jul 2, 2008 #2
    Is it 59?
  4. Jul 6, 2008 #3

    Solution Explained:

    If you multiply all the numbers in the right hand column together and subtract one, you get a number that satisfies all the conditions, except there are smaller numbers that work too.

    The least common multiple minus one is the smallest number that works. And that is 59.

    Relationship with the Chinese Remainder Theorem spelled out:

    To solve the problem using the usual proof of the CRT, one applies the Eucledian algorithm. The Eucledian algorithm is often first introduced as a method of computing the gcd, and, given the gcd, one can easily compute the lcd. [I forget how this last demonstration goes. If someone could remind me, that would be great.]

    Hence this problem presents the CRT as a generalization of the computation of the gcd using the Eucledian algorithm.
    Last edited: Jul 6, 2008
  5. Jul 8, 2008 #4

    Ah, I've seen this trick before. Denote the number we're looking for as x and view the problem in terms of congruencies and it should be evident what happens when you add 1 to x. Then find the lcm of the product of the divisors in the problem. Count 2, 3, another 2 (for 4), 5, and 6 is covered. So x+1 = 2*2*3*5 => x = 59.
  6. Jul 8, 2008 #5

    All I can say is "Excellent." Really, a nice explanation.

  7. Mar 29, 2009 #6
    thx very much. Your soln is very useful
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook