Chinese Remainder theorem

Discussion in 'Physics & Math' started by arfa brane, Apr 16, 2013.

  1. arfa brane call me arf Valued Senior Member

    Messages:
    7,832
    For some reason, I can't follow how this works. I think I can understand how to find an x congruent to two different values modulo two different primes, but applying this iteratively somehow eludes me.

    Anyway, the problem from the sheet is: Find a value for x that satifies

    \( x \equiv 2\; (mod 3),\; x \equiv 3\; (mod 5),\; x \equiv 4\; (mod 11),\; x \equiv 5\; (mod 16) \)​

    So, we want a number such that \( x \equiv a\; mod ( 3 \cdot 5 \cdot 11 \cdot 16) \), for some integer a.

    One way to find solutions is to substitute equivalences, which for the first congruence is x = 3s + 2, so we have
    \(3s + 2 \equiv 3\; (mod 5) \)​
    which is the same as
    \(3s \equiv 1\; (mod 5) \)​
    so
    \(3^{-1}3s \equiv 3^{-1} 1\; (mod 5) \)​
    the inverse of 3 modulo 5 is 2, so
    \(s \equiv 2\; (mod 5) \)​
     
    Last edited: Apr 16, 2013
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Robittybob1 Banned Banned

    Messages:
    4,199
    1973 is the first answer with a step up of 2640.
     
    Last edited: Apr 16, 2013
  4. Google AdSense Guest Advertisement



    to hide all adverts.
  5. arfa brane call me arf Valued Senior Member

    Messages:
    7,832
    We have x = 3s + 2 and s = 5t + 2, so x = 3(5t + 2) + 2.
    Then x = 15t + 8.

    So we iterate: \( 15t + 8 \equiv 4 (mod 11) \)
    and solve for t.
     
  6. Google AdSense Guest Advertisement



    to hide all adverts.
  7. eram Sciengineer Valued Senior Member

    Messages:
    1,877
    Just some trivia, the person who first published this and the person who wrote The Art of War share the same name.

    It would be cool if they had been the same person, we could learn about applying mathematical analysis to battlefield strategy.

    Please Register or Log in to view the hidden image!

     

Share This Page