There are two integers, x and y, both of them are valued between 2 and 99 (inclusive)
Mr. S only knows the sum of the two numbers, while Mr. P only knows the product of the two numbers.
Mr. S told Mr. P, "I know you won't know what the two numbers are."
Then Mr. P said "Now I know what are they."
Followed by Mr. S "I get it now."
What is the product of the two numbers?
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.
A very first thing to consider: How did Mr. S know that Mr. P won't know what the two numbers are in the first place.
We can find that the number Mr. P got must not be the product of two primes, or he would get the two numbers simply by writing down the two primes.
So for Mr. S to make sure that Mr. P won't know the two numbers, the number he got must not be able to be written as the sum of two primes, or he would not be able to make sure that Mr. P didn't get the product of two primes, in which case Mr. P would know what the two numbers are.
(For example, if Mr. S got 20, then there is a possibility that the two numbers are 13 and 7, in case Mr. P got 91 and he would work it out immediately)
As the number Mr. S got cannot be written as the sum of two prime numbers, we know that he could not get any even numbers ( 2 is impossible as both numbers are larger than or equal to 2, and any even number larger than 2 can be written as the sum of two primes, because Goldbach's conjecture is shown to hold up through 4X10^18 and we are only working within 200 for now ) and odd numbers which are 2 larger than an odd prime are also eliminated in the same way.
Another limitation for the number Mr. S got is that it cannot be larger than 53, because if he got a number larger than 53, there is a possibility that one of x or y is 53, and in that case Mr. P would be able to work it out immediately as both numbers are smaller than or equal to 99 (For example, if Mr. S got 59, then it is possibly that the two numbers are 53 and 6, and if Mr. P got 53X6=318, he would work it out immediately as 318 cannot be written as the product of another pair of numbers both smaller than or equals to 100)
For now, we can work out all the possibilities of the sum of number x and y: First, the number is smaller than or equals to 53 Second, it is odd, and is not 2 larger than an odd prime Third, it is larger than or equal to 4
So we only have 11 17 23 27 29 35 37 41 47 51 53 left as possibilities of the sum.
Then consider what did Mr. P say: he got the two numbers immediately after hearing Mr. S saying "I know you won't know" So, after hearing what Mr. S said, Mr. P has done the same process and has obtained the same conclusion as us about the possibilities of the sum of the two numbers, and he obtained the two numbers with the product of them plus the new evidences of the sum of the two numbers.
Because the sum of x and y is odd, so their product must be even. So the number Mr. P had can be written as: (odd number)X2^n. Because Mr. P worked the two numbers out immediately, so the odd number mentioned beforehand cannot be a composite number (If it is composite, Mr. P cannot make sure how to factorise the number he got uniquely. For example: if he got 108, he cannot make sure if he should write it as 3X36 or 4X27) So, the number Mr. P got, or the product of x and y, must be able to be written as (odd prime)X2^n
After Mr. P said that he got the two numbers, Mr. S responded immediately that he also worked them out, which means knowing that the product is written as odd primeX2^n gave Mr. Sum limitations about how he should write the number he got into sum of x and y in an unique way.
So we can use brutal force to see if the possible sums we obtained earlier would be written as the sum of 2^n and an odd prime uniquely.
Among all the possible sums we obtained earlier, only 17, 29, 41, 53 satisfies.
So we have only four possibilities left: 17=4+13 product 52 29=16+13 product 208 41=4+37 product 148 53=16+37 product 592
And let's go through the remaining possibilities again: If the sum was 53, it could also be written as 6+47, and if Mr. P got 6X47, he could still be able to tell the two numbers immediately (For 6X47 can also be written as 3X94, sum 97, but 97 is not within the possible sums we obtained earlier, so Mr. P would know that the x and y are 6 and 47, but Mr. S cannot make sure if the two numbers are 16 and 37 or 6 and 47.) In similar processes, we can eliminate 53, 41 and 29, and we need to prove 17 fits perfectly:
17=4+13=3+14=2+15=5+12=6+11=7+10=8+9 2X15=6X5, 6+5=11, it is a possible sum, so Mr. P cannot make sure 3X14=21X2, 21+2=23, it is a possible sum, so Mr. P cannot make sure 5X12=20X3, 20+3=23, it is a possible sum, so Mr. P cannot make sure 11X6=33X2, 33+2=35, it is a possible sum, so Mr. P cannot make sure 7X10=2X35, 2+35=37, it is a possible sum, so Mr. P cannot make sure 8X9=24X3, 24+3=27, it is a possible sum, so Mr. P cannot make sure
While 4X13 can only be written as 4X13 or 2X26, and 2+26 is not a possible sum, so 17 is the only possible sum, which can only be written as 4+13. So the product of x and y is equal to 4X13=52