Browse · MathNet
PrintJapan 2007
Japan 2007 counting and probability
Problem
There is a village with a population of . This village has no name. You are God of this village and you want villagers to decide the name of this village. Every villager has one idea of the village's name.
Each villager can send a letter to each villager (including himself). And every villager can send any number of letters every day. Letters are collected in the evening and delivered at once the next morning every day. The villager who sends the letter can decide to whom the letter should be delivered. And each villager can send a letter to tell the idea of the name of the village to God only one time. This idea doesn't need to be the same as the idea which he and the other villagers had thought at first. And every villager's action is only writing a letter.
Every villager can be classified into an honest person or a liar. You and every villager don't know who is an honest person, and who is a liar. But you know that the number of liars is less than or equal to , and there is one honest person at least in this village.
You can give instructions to every villager only once at noon of one day. An honest person necessarily follows the instruction, but you don't know if a liar follows the instruction. Find the maximum for which there exists an instruction which fulfills the conditions below.
At last, every honest person sends a letter to God and every honest person sends the same idea of the village's name. If every honest person had thought the same idea of the name of the village at first, every honest person sends this idea to God.
Each villager can send a letter to each villager (including himself). And every villager can send any number of letters every day. Letters are collected in the evening and delivered at once the next morning every day. The villager who sends the letter can decide to whom the letter should be delivered. And each villager can send a letter to tell the idea of the name of the village to God only one time. This idea doesn't need to be the same as the idea which he and the other villagers had thought at first. And every villager's action is only writing a letter.
Every villager can be classified into an honest person or a liar. You and every villager don't know who is an honest person, and who is a liar. But you know that the number of liars is less than or equal to , and there is one honest person at least in this village.
You can give instructions to every villager only once at noon of one day. An honest person necessarily follows the instruction, but you don't know if a liar follows the instruction. Find the maximum for which there exists an instruction which fulfills the conditions below.
At last, every honest person sends a letter to God and every honest person sends the same idea of the village's name. If every honest person had thought the same idea of the name of the village at first, every honest person sends this idea to God.
Solution
If , we will prove that there exists an instruction which fulfills the conditions. Give the following instruction to every villager.
Define today as 0th day. All the villagers must prepare a notebook and a memo pad.
Today, each villager should write the idea of the village's name in the letters proposed and send these letters to every villager (including oneself). And at th day, perform all the following in order.
If you receive the letter proposed from villager in the morning, send the letter th day says proposed to every villager. Until then, if you have received the letter th day says proposed () from or more persons, send the letter th day says proposed to every villager. Until then, if you have received the letter th day says proposed () from or more persons, write [sure: th day says proposed to your memo pad. About villager and idea , if is even and distinct villagers exist and [sure: th day says proposed is written in your memo pad for all the even numbers that satisfy , then write 's idea seems to be in your notebook and send the letter proposed to every villager.
And at th day, all the villagers must look into their notebook and look for all the pairs that satisfy the following condition.
Condition: 's idea seems to be is written in your notebook. And if 's idea seems to be and 's idea seems to be are both written in your notebook, then .
Consider pairs that satisfy this condition only. Count the kind of corresponding to each . And if only one has the most kinds of , then send a letter to God. Otherwise, send a letter [JMO] to God.
Now let us prove that this instruction satisfies the problem's condition. We will prove the following. Notice that .
(1) If some honest person wrote [sure: th day says proposed ] in his memo pad, villager really sent the letter [ proposed ] on the th day.
(2) If some honest person wrote [sure: th day says proposed ] in his memo pad on the th day, every honest person wrote the same content in their memo pads by the th day.
(3) Now assume that is an honest person. If some honest person wrote ['s idea seems to be ] in his notebook, really proposed . And if proposed , every honest person would write ['s idea seems to be ] in their notebook by the th day.
(4) If some honest person wrote ['s idea seems to be ] in his notebook, every honest person would write the same content in their memo pads by the th day.
Proof of (1): Assume that some honest person wrote [sure: th day says proposed ] to his memo pad. According to the instruction, he received the letter [th day says proposed ] from or more persons. Especially, from , there exists some honest person who sent the letter [th day says proposed ]. Now define as the honest person who sent this content first. There are two possible reasons why sent this letter.
(a) received the letter of this content from or more people. (b) received the letter of the content [ proposed ] from .
But in the case of (a), from , a certain honest person sent a letter [th day says proposed ] to earlier than sent the same letter. This is contrary to the definition of . Therefore, there is the case (b) only, and lemma (1) is proved.
Proof of (2): Assume that some honest person wrote [sure: th day says proposed ] to his memo pad on the th day. It means that or more villagers, therefore or more honest people sent a letter [th day says proposed ] to him by the th day. By the way, every honest person sent letters to every villager every day, so every villager receives the letter of this content from or more persons by the th day, and so every honest person sent the letter of this content to every villager, and therefore every villager will receive the letter of this content from or more persons by the th day. Thus, every honest person wrote [sure: th day says proposed ] in their memo pad by the th day. Lemma (2) is proved.
Proof of (3): Assume that some honest person wrote ['s idea seems to be ] in his notebook. According to the instruction, [sure: 0th day says proposed ] was written in his memo pad. According to lemma (1), sent the letter [ proposed ] on the 0th day. Next, assume that sent the letter [ proposed ] to every villager. Then on the 1st day, every honest person, that means or more honest people receive this letter, and send the letter [0th day says proposed ] to every villager. Then on the 2nd day, every honest person receives this letter, and writes [0th day says proposed ] to their memo pad, and then write ['s idea seems to be ] to their notebook. Lemma (3) is proved.
Proof of (4): Assume that the honest person who wrote ['s idea seems to be ] in the notebook earliest is , and wrote this on the th day. According to the instruction, there exist distinct villagers and [sure: th day says proposed ] in 's notebook. From , then . So there exists a number that is an honest person, or there doesn't exist such number . In this case, .
In the case of the former, if is an honest person, according to lemma (1), really sent the letter [ proposed ] on the th day, or . But the former is contrary to the definition of . So . And thus every honest person wrote ['s idea seems to be ] in their notebook on the 2nd day. (This fact is proved by the part of proof of lemma (3))
In the case of the latter, sent the letter [ proposed ] to every villager on the th day. And from the same argument as (3), every honest person wrote [sure: th day says proposed ] in their notebook on the th day. By the way, the content [sure: th day say proposed ] () in 's notebook will be also written in every honest person's notebook (reference to lemma (2)). Every isn't honest, so is different from every . Therefore, from these facts, every honest person wrote ['s idea seems to be ] in their notebook on the th day. Now , then . Lemma (4) is proved.
According to lemma (4), on the evening of the th day, the contents of every honest person's notebook are the same. So every honest person will send the same letter to God. Thus the first condition is satisfied. Next, according to lemma (3), every honest person's idea is written in every honest person's memo pad. And for honest person , at most one is written as ['s idea seems to be ]. Therefore, if every honest person had the same idea of the village name , gains the most votes. () Thus every honest person sends a letter to God. So the second condition is satisfied.
Next, we will prove that if , instructions which fulfill the conditions don't exist. At first, prove the following lemma.
Lemma A: In the problem, if the number of villagers is changed into , and put , instructions which fulfill the conditions don't exist.
Proof of Lemma A: Assume that instructions which fulfill the conditions exist. Define three villagers as and . Assume that this instruction doesn't direct to send a letter to oneself. Consider the following situation X. There was another village in which three villagers and live. And this village also had no name. And in this village, another God gave the same instruction as the same day ( correspond to ). But because of a mistake of the post office, the letter from to always arrived as a letter from to , and the letter from to always arrived as a letter from to (). And are honest people, and consider as their ideas of the name of the village respectively. ()
First, take notice of and . Consider the following village Z.
Village Z has three villagers . The same direction was given to village Z. is a honest person, and considers as an idea of the name of the village Z. is a honest person, and considers as an idea of the name of the village Z. is a liar. sends a letter which sent to on the th day to on the th day. And sends a letter which sent to on the th day to on the th day.
In this situation, actions of , in Village Z is the same as actions of in Situation X. From the assumption that the instruction fulfills the conditions, and send the same idea for the name of the village Z to God. or holds, and we can assume .
Next, take notice of and . From the same reason, they send the same idea for the name of the village Z to God. But they considered the same idea at first, so the idea they send to God is (from the second condition). This is a contradiction. So the lemma A is proved.
And now assume that there exists an instruction which fulfills the conditions if . Define villagers as . Consider the following instruction J about the village which three persons live in and .
Each villager must prepare dolls. Define the dolls of as . should make each doll consider the same idea as thinks. And should make each doll do the same action as the action which does in the instruction . If sends a letter to (or ), must send a letter to (or ). And if receives the letter of the following form, must give this letter to (as the letter from . And the content of this letter is ). And if received a letter in other forms, must ignore it.
from from from
And if every () sent the same letter to God, must send the letter to God. must act the same way. We will prove that the instruction J fulfills the conditions. Assume that only is a liar. In the case of are liars and the others are honest people, will send the same idea to God, so will send the same idea. And the instruction J also fulfills the second condition. We can prove other cases by the same way. But this is contrary to the Lemma A. So it is proved that if , instructions which fulfill the conditions don't exist.
Therefore, the answer is .
Define today as 0th day. All the villagers must prepare a notebook and a memo pad.
Today, each villager should write the idea of the village's name in the letters proposed and send these letters to every villager (including oneself). And at th day, perform all the following in order.
If you receive the letter proposed from villager in the morning, send the letter th day says proposed to every villager. Until then, if you have received the letter th day says proposed () from or more persons, send the letter th day says proposed to every villager. Until then, if you have received the letter th day says proposed () from or more persons, write [sure: th day says proposed to your memo pad. About villager and idea , if is even and distinct villagers exist and [sure: th day says proposed is written in your memo pad for all the even numbers that satisfy , then write 's idea seems to be in your notebook and send the letter proposed to every villager.
And at th day, all the villagers must look into their notebook and look for all the pairs that satisfy the following condition.
Condition: 's idea seems to be is written in your notebook. And if 's idea seems to be and 's idea seems to be are both written in your notebook, then .
Consider pairs that satisfy this condition only. Count the kind of corresponding to each . And if only one has the most kinds of , then send a letter to God. Otherwise, send a letter [JMO] to God.
Now let us prove that this instruction satisfies the problem's condition. We will prove the following. Notice that .
(1) If some honest person wrote [sure: th day says proposed ] in his memo pad, villager really sent the letter [ proposed ] on the th day.
(2) If some honest person wrote [sure: th day says proposed ] in his memo pad on the th day, every honest person wrote the same content in their memo pads by the th day.
(3) Now assume that is an honest person. If some honest person wrote ['s idea seems to be ] in his notebook, really proposed . And if proposed , every honest person would write ['s idea seems to be ] in their notebook by the th day.
(4) If some honest person wrote ['s idea seems to be ] in his notebook, every honest person would write the same content in their memo pads by the th day.
Proof of (1): Assume that some honest person wrote [sure: th day says proposed ] to his memo pad. According to the instruction, he received the letter [th day says proposed ] from or more persons. Especially, from , there exists some honest person who sent the letter [th day says proposed ]. Now define as the honest person who sent this content first. There are two possible reasons why sent this letter.
(a) received the letter of this content from or more people. (b) received the letter of the content [ proposed ] from .
But in the case of (a), from , a certain honest person sent a letter [th day says proposed ] to earlier than sent the same letter. This is contrary to the definition of . Therefore, there is the case (b) only, and lemma (1) is proved.
Proof of (2): Assume that some honest person wrote [sure: th day says proposed ] to his memo pad on the th day. It means that or more villagers, therefore or more honest people sent a letter [th day says proposed ] to him by the th day. By the way, every honest person sent letters to every villager every day, so every villager receives the letter of this content from or more persons by the th day, and so every honest person sent the letter of this content to every villager, and therefore every villager will receive the letter of this content from or more persons by the th day. Thus, every honest person wrote [sure: th day says proposed ] in their memo pad by the th day. Lemma (2) is proved.
Proof of (3): Assume that some honest person wrote ['s idea seems to be ] in his notebook. According to the instruction, [sure: 0th day says proposed ] was written in his memo pad. According to lemma (1), sent the letter [ proposed ] on the 0th day. Next, assume that sent the letter [ proposed ] to every villager. Then on the 1st day, every honest person, that means or more honest people receive this letter, and send the letter [0th day says proposed ] to every villager. Then on the 2nd day, every honest person receives this letter, and writes [0th day says proposed ] to their memo pad, and then write ['s idea seems to be ] to their notebook. Lemma (3) is proved.
Proof of (4): Assume that the honest person who wrote ['s idea seems to be ] in the notebook earliest is , and wrote this on the th day. According to the instruction, there exist distinct villagers and [sure: th day says proposed ] in 's notebook. From , then . So there exists a number that is an honest person, or there doesn't exist such number . In this case, .
In the case of the former, if is an honest person, according to lemma (1), really sent the letter [ proposed ] on the th day, or . But the former is contrary to the definition of . So . And thus every honest person wrote ['s idea seems to be ] in their notebook on the 2nd day. (This fact is proved by the part of proof of lemma (3))
In the case of the latter, sent the letter [ proposed ] to every villager on the th day. And from the same argument as (3), every honest person wrote [sure: th day says proposed ] in their notebook on the th day. By the way, the content [sure: th day say proposed ] () in 's notebook will be also written in every honest person's notebook (reference to lemma (2)). Every isn't honest, so is different from every . Therefore, from these facts, every honest person wrote ['s idea seems to be ] in their notebook on the th day. Now , then . Lemma (4) is proved.
According to lemma (4), on the evening of the th day, the contents of every honest person's notebook are the same. So every honest person will send the same letter to God. Thus the first condition is satisfied. Next, according to lemma (3), every honest person's idea is written in every honest person's memo pad. And for honest person , at most one is written as ['s idea seems to be ]. Therefore, if every honest person had the same idea of the village name , gains the most votes. () Thus every honest person sends a letter to God. So the second condition is satisfied.
Next, we will prove that if , instructions which fulfill the conditions don't exist. At first, prove the following lemma.
Lemma A: In the problem, if the number of villagers is changed into , and put , instructions which fulfill the conditions don't exist.
Proof of Lemma A: Assume that instructions which fulfill the conditions exist. Define three villagers as and . Assume that this instruction doesn't direct to send a letter to oneself. Consider the following situation X. There was another village in which three villagers and live. And this village also had no name. And in this village, another God gave the same instruction as the same day ( correspond to ). But because of a mistake of the post office, the letter from to always arrived as a letter from to , and the letter from to always arrived as a letter from to (). And are honest people, and consider as their ideas of the name of the village respectively. ()
First, take notice of and . Consider the following village Z.
Village Z has three villagers . The same direction was given to village Z. is a honest person, and considers as an idea of the name of the village Z. is a honest person, and considers as an idea of the name of the village Z. is a liar. sends a letter which sent to on the th day to on the th day. And sends a letter which sent to on the th day to on the th day.
In this situation, actions of , in Village Z is the same as actions of in Situation X. From the assumption that the instruction fulfills the conditions, and send the same idea for the name of the village Z to God. or holds, and we can assume .
Next, take notice of and . From the same reason, they send the same idea for the name of the village Z to God. But they considered the same idea at first, so the idea they send to God is (from the second condition). This is a contradiction. So the lemma A is proved.
And now assume that there exists an instruction which fulfills the conditions if . Define villagers as . Consider the following instruction J about the village which three persons live in and .
Each villager must prepare dolls. Define the dolls of as . should make each doll consider the same idea as thinks. And should make each doll do the same action as the action which does in the instruction . If sends a letter to (or ), must send a letter to (or ). And if receives the letter of the following form, must give this letter to (as the letter from . And the content of this letter is ). And if received a letter in other forms, must ignore it.
from from from
And if every () sent the same letter to God, must send the letter to God. must act the same way. We will prove that the instruction J fulfills the conditions. Assume that only is a liar. In the case of are liars and the others are honest people, will send the same idea to God, so will send the same idea. And the instruction J also fulfills the second condition. We can prove other cases by the same way. But this is contrary to the Lemma A. So it is proved that if , instructions which fulfill the conditions don't exist.
Therefore, the answer is .
Final answer
668
Techniques
LogicAlgorithmsInduction / smoothing