Miss Kate wants to test the mathematical skills of Jake and James. She sets up an integer x for them to guess and gives hints separately to both of them. Both of them are told that:
She then sets up a meeting for them, but they aren't allowed to tell the others the values of a, b, c, or d. This is what they say:
What is the value of c?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
The reason Jake cannot find the number is because there are two or more integers n within the defined range that fulfills n=a (mod b). That implies that there are two numbers in the defined range that differs by b. As the smallest integer in the range is 21, and the largest 50, we can tell that b < 50-21+1 = 30. Likewise, d<30. So 20 < b,d <30. That means b and d are among 23 and 29.
If b=29, the only reason Jake doesn't know the number is because a=21, because there are two numbers in the range fulfilling n=21 (mod 29), and there are no other solution for a that causes more than 1 solution. However, if this is the case, Jake knowing that James doesn't know either, implying d=23, won't help at all. After knowing d=23, he can only tell that c ranges from 21-27 to cause James to not know the number because of multiple solutions. Because Jake ends up knowing the number, this isn't the case.
Thus, b= 23. That implies d=29. And because of the reasoning above, the only value of c that can cause James to not know the number is 21.