The Chinese Remainder Theorem (the CRT)

AI Thread Summary
The discussion centers on finding the smallest number that meets specific remainder conditions when divided by integers from 2 to 6. The problem can be efficiently solved using a trick rather than the traditional Chinese Remainder Theorem (CRT) approach. The solution involves recognizing that the least common multiple (LCM) of the divisors (2 through 6) minus one yields the answer. In this case, the answer is 59, which satisfies all the remainder conditions. The conversation highlights the relationship between this problem and the CRT, noting that the Euclidean algorithm is often used to compute the greatest common divisor (gcd) and can be applied to find the least common divisor (lcd) as well. Participants express appreciation for the clarity of the explanation provided.
DeaconJohn
Messages
122
Reaction score
0
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.

Hints:
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"
 
Physics news on Phys.org
Is it 59?
 
daskalou said:
Is it 59?

Yes!

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:
Solution:

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.
 
snipez90 said:
Solution:

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.

Snipez90,

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

DJ
 
thx very much. Your soln is very useful
 
Similar to the 2024 thread, here I start the 2025 thread. As always it is getting increasingly difficult to predict, so I will make a list based on other article predictions. You can also leave your prediction here. Here are the predictions of 2024 that did not make it: Peter Shor, David Deutsch and all the rest of the quantum computing community (various sources) Pablo Jarrillo Herrero, Allan McDonald and Rafi Bistritzer for magic angle in twisted graphene (various sources) Christoph...
Thread 'My experience as a hostage'
I believe it was the summer of 2001 that I made a trip to Peru for my work. I was a private contractor doing automation engineering and programming for various companies, including Frito Lay. Frito had purchased a snack food plant near Lima, Peru, and sent me down to oversee the upgrades to the systems and the startup. Peru was still suffering the ills of a recent civil war and I knew it was dicey, but the money was too good to pass up. It was a long trip to Lima; about 14 hours of airtime...

Similar threads

Back
Top