Chinese Remainder Theorem
Chinese Remainder Theorem
For a parade, marchers are arranged in columns of seven, but one person is left out. In columns of eight, two people are left out. With columns of nine, three people are left out. How many marchers are there? The given data is , , and . Since the moduli are relatively prime, the Chinese remainder theorem can be used to find the unique possible number of marchers between and . There are 498 marchers.
x≡1(mod7)
x≡2(mod8)
x≡3(mod9)
(7,8,9)
1
789=504