Yesterday I met the perfect logicians Divvy and Subtra. I told them:
I have chosen two positive integers $x$ and $y$ with $2\le x\lt y\le 100$ and with $x$ a divisor of $y$. I will now whisper the ratio $r=y/x$ into the ear of Divvy and I will whisper the difference $d=y-x$ into the ear of Subtra.
And then I whispered the ratio and the difference into their ears.
Then the following conversation took place:
- Divvy: I don't know the numbers.
- Subtra confirmed: I already knew this.
- Divvy: I already knew that you knew that I don't.
- Subtra: I still can't determine the numbers.
- Divvy: At the very beginning of this conversation, I knew that you did not know the numbers. I forgot to mention this. Does this information change something for you?
- Subtra: Yes, it changes everything! Finally I am able to determine the numbers!
Question: What on earth are these magic numbers $x$ and $y$?
Answer
We are dealing with four integers $x$, $y$, $r$ and $d$ that satisfy $y=rx$ and $d=(r-1)x$. Note that $x (1) Divvy: I don't know the numbers. Divvy's first statement is equivalent to $2\le r\le33$. (2) Subtra confirmed: I already knew this. As Subtra's difference is $d=(r-1)x$, her statement means that $d$ cannot be written as the product of two factors $r-1$ and $x$, one of which is $\ge33$ and one of which is $\ge2$. Subtra's statement means that the difference $d$ is either from the range $0\le d\le65$, or that $d$ is odd and from the range $67\le d\le97$. Equivalently, $d\notin\{66,68,70,\ldots,98\}$. (3) Divvy: I already knew that you knew that I don't. Divvy's statement means that there does not exist any integer $x$ with $2\le x\le100/r$, so that the corresponding difference $(r-1)x$ is an even integer in the so-called bad range $B=\{66,68,\ldots,98\}$. We make some case distinctions on $2\le r\le33$. Summarizing, we see that Divvy's second statement is equivalent to $r\in\{2,26,28,30,32\}$. (4) Subtra: I still can't determine the numbers. At this point of the conversation, we are left with the following options for the pairs $(x,y)$: Since Subtra is not able to determine the numbers $x$ and $y$ from this, her value $d$ must be compatible with two distinct pairs $(x,y)$ in this enumeration. This reduces the possible options for $(x,y)$ to the following short list: Subtra's second statement means that $d=50$. (5) Divvy: At the very beginning of this conversation, I already knew that you did not know the numbers. We are only left with two possible values $r=2$ and $r=26$ for the ratio. Divvy's third statement implies $r=26$. (6) Subtra: But now I can determine the numbers. Subtra now knows that $d=50$ and $r=26$, and deduces the numbers. Answer: The magic numbers are $x=2$ and $y=52$.
No comments:
Post a Comment