ChatterBank1 min ago
A Variation On The "when Is Cheryl's Birthday?" Problem
I was just given this nasty-sounding variation on the birthday problem that's been bugging the internet for the last few days. It goes like this:
Person A chooses a pair of numbers between and including 2 and 99, and finds their sum (S) and Product (P). He then tells one person only the product f the two numbers, and nothing else, and the other person is only toldtheir sum.
Person P says: I do not know what the two numbers are.
Person S says: I already knew that.
Person P says: Oh, then I know what the two numbers are now.
Person S says: Then so do I, now.
What are the two numbers?
Person A chooses a pair of numbers between and including 2 and 99, and finds their sum (S) and Product (P). He then tells one person only the product f the two numbers, and nothing else, and the other person is only toldtheir sum.
Person P says: I do not know what the two numbers are.
Person S says: I already knew that.
Person P says: Oh, then I know what the two numbers are now.
Person S says: Then so do I, now.
What are the two numbers?
Answers
Best Answer
No best answer has yet been selected by jim360. Once a best answer has been selected, it will be shown here.
For more on marking an answer as the "Best Answer", please visit our FAQ.Ok, cheers.
Not sure I'm going to get far but we need a product that is not unique to start with.
Next I got to work out why person S knew they were not unique. S can not have unique numbers too as otherwise they'd know the answer.
S must have a small number of possibilities one pair of which must have a product that is not unique.
So all I have to do is make a blooming large table and scour for those conditions ? Sounds like too much fun to me.
Not sure I'm going to get far but we need a product that is not unique to start with.
Next I got to work out why person S knew they were not unique. S can not have unique numbers too as otherwise they'd know the answer.
S must have a small number of possibilities one pair of which must have a product that is not unique.
So all I have to do is make a blooming large table and scour for those conditions ? Sounds like too much fun to me.
Discussion here - http:// mathfor um.org/ library /drmath /view/5 1609.ht ml .
The problem with that approach is that it's sort of cheating -- I 'know' properties of the answer so will assume without proof. It's a more interesting exercise to derive it.
One way of starting on a journey to the solution is to pick a couple of possible pairs and see how the logic would apply to them, or not. We can classify such pairs in the following way: prime and prime; prime and not prime; not prime and not prime. Then:
For two prime numbers p q, the product pq can be easily factorised straight away, so in fact the guy who knew the product would know the two numbers instantly (in this puzzle, one has to assume that the people P and S are fully capable of arithmetic and logic). Hence without any further work, we can see that at least one of the numbers isn't prime.
On the other hand, suppose both numbers are not prime, eg 24 and 45. Their product also admits factorisations such as 12 and 90, 72 and 15, 36 and 30 etc; while their sum also admits a huge range of options. Although this part of the logic turns out to be unnecessary, it also hopefully serves to illustrate that the solution is unlikely to be two non-primes either; for how, in that case, could one extra piece of information -- that the sum was enough to know that the product was inconclusive -- be enough to separate all of the possible options?
It then appears to follow that one of the two numbers is prime, and the other is not. We can do better, and logically prove that this statement is true, but it's enough to hint that there are better ways to solve this puzzle than by exhaustively searching through all of the c. 5,000 different pairs.
I'll post the rest of the solution later.
One way of starting on a journey to the solution is to pick a couple of possible pairs and see how the logic would apply to them, or not. We can classify such pairs in the following way: prime and prime; prime and not prime; not prime and not prime. Then:
For two prime numbers p q, the product pq can be easily factorised straight away, so in fact the guy who knew the product would know the two numbers instantly (in this puzzle, one has to assume that the people P and S are fully capable of arithmetic and logic). Hence without any further work, we can see that at least one of the numbers isn't prime.
On the other hand, suppose both numbers are not prime, eg 24 and 45. Their product also admits factorisations such as 12 and 90, 72 and 15, 36 and 30 etc; while their sum also admits a huge range of options. Although this part of the logic turns out to be unnecessary, it also hopefully serves to illustrate that the solution is unlikely to be two non-primes either; for how, in that case, could one extra piece of information -- that the sum was enough to know that the product was inconclusive -- be enough to separate all of the possible options?
It then appears to follow that one of the two numbers is prime, and the other is not. We can do better, and logically prove that this statement is true, but it's enough to hint that there are better ways to solve this puzzle than by exhaustively searching through all of the c. 5,000 different pairs.
I'll post the rest of the solution later.
It has just occurred to me that the method I suggested isn't really cheating at all. The only property info we know is, as Giz said, that there is only one solution. That has to be or P and S can not claim to know THE answer: merely AN answer.
But for sure it'd be nice to find a way not to simply try each in turn. That's still a fairly long job.
But for sure it'd be nice to find a way not to simply try each in turn. That's still a fairly long job.
Related Questions
Sorry, we can't find any related questions. Try using the search bar at the top of the page to search for some keywords, or choose a topic and submit your own question.