$(n+1)$ boys and $n$ girls are seated around a circular table playing a game. One boy started to put a stone on the table, and they subsequently went around the table clockwise. At each child's turn, if that child is a boy, he puts a stone on the table, but if that child is a girl, she takes away one stone from the table. They're finished when everyone has had one turn. If the table ever becomes empty (except before the first boy put his stone), they all lose the game.
Prove that there is a boy such that if he starts, they can complete the round without losing.
Furthermore, prove that there is only one such boy. That is, if any other boy starts, they would lose the game.
Harder version: suppose you now have $m+n$ boys and $n$ girls, with $m$ positive. Prove that there are exactly $m$ boys who could start a non-losing game.
Thursday, October 22, 2009
Wednesday, October 21, 2009
Circles and Coloring
Several circles are drawn on a piece of paper to form several regions on the paper. We wish to color these regions such that no two regions that share a common boundary would have the same color.
(It is okay if two regions that share a common point to have the same color, but not boundary)
How many colors minimum are needed?
(It is okay if two regions that share a common point to have the same color, but not boundary)
How many colors minimum are needed?
Friday, October 16, 2009
Show and Change
Credit for this problem goes to a friend of Boon Leong Ng.
A ticket to a show costs 10 dollars. There are $(m+n)$ (where $m > n$) people waiting on a line. $m$ of them pays with 10 dollar bills and $n$ of them pays with 20 dollar bills. Assuming that the cashier starts out with no money, what is the probability that the cashier never runs out of change? Assuming the probability is uniform among all possible ordering of people.
A ticket to a show costs 10 dollars. There are $(m+n)$ (where $m > n$) people waiting on a line. $m$ of them pays with 10 dollar bills and $n$ of them pays with 20 dollar bills. Assuming that the cashier starts out with no money, what is the probability that the cashier never runs out of change? Assuming the probability is uniform among all possible ordering of people.
Passengers Boarding Airplane
2009 passengers are waiting in a line to board an airplane with 2009 seats. Each passenger has a boarding pass that has his/her seat number on it. The first passenger, however, was oblivious and chose a random seat to sit on.
For each subsequent passenger, he/she will try to sit on his/her assigned seat first. If that seat is taken by someone else, he/she will choose a random empty seat to sit on.
What is the probability that the last passenger would sit on his assigned seat?
Solution: http://dharmath.blogspot.com/2010/05/solution-passengers-boarding-airplane.html
For each subsequent passenger, he/she will try to sit on his/her assigned seat first. If that seat is taken by someone else, he/she will choose a random empty seat to sit on.
What is the probability that the last passenger would sit on his assigned seat?
Solution: http://dharmath.blogspot.com/2010/05/solution-passengers-boarding-airplane.html
Labels:
airplane,
passenger,
probability,
Random,
Riddles / Puzzles,
seat,
Solved
Friday, October 9, 2009
Room and Lights Game
This problem is identical to this one but reworded for better clarity.
Alice is playing a game against Bob and Charlie. In a room, there are 27 lights with individual switches, some of them could be turned on or off. Bob enters the room while Charlie waits outside. Alice will tell Bob a number from 1 to 27. Bob then is allowed to flip at most 3 switches if he wishes. Then Bob exits and Charlie enters the room. He has to, upon examining the lights, guess the number that Alice told Bob. Neither Bob nor Charlie knows the configuration of the lights before Bob entered the room.
How can Bob and Charlie agree on a strategy to win this game?
Harder version: 15 lights, but Alice tells Bob a number from 1 to 16, and Bob can only flip at most one switch.
Alice is playing a game against Bob and Charlie. In a room, there are 27 lights with individual switches, some of them could be turned on or off. Bob enters the room while Charlie waits outside. Alice will tell Bob a number from 1 to 27. Bob then is allowed to flip at most 3 switches if he wishes. Then Bob exits and Charlie enters the room. He has to, upon examining the lights, guess the number that Alice told Bob. Neither Bob nor Charlie knows the configuration of the lights before Bob entered the room.
How can Bob and Charlie agree on a strategy to win this game?
Harder version: 15 lights, but Alice tells Bob a number from 1 to 16, and Bob can only flip at most one switch.
Thursday, October 8, 2009
Spy And Radio
A spy is being commissioned by the government to infiltrate a mafia rank in order to find out who the head honcho is. There are sixteen potential candidates and the government needs to know which one of them is the leader. However, the spy only has one chance to pass the information back to the government before she gets murdered.
On an previously-agreed date, the local radio station will announce the winning lottery number. This number will be from 0 to $2^{15}-1$ inclusive, and will be saved as a 15 binary digit data in that radio station's computer. The spy only has one chance to infiltrate the radio station's computer mainframe, change one bit (or none) in that number, and leave. The broadcaster will announce the number without knowing that the spy has changed it, and the government agents will listen to that changed number. The government and the spy don't know the winning number in advance and they have no further power to rig the lottery.
To make things more complicated, the spy does not have that much time in the radio station's computer room. Therefore, she would not be able to perform lengthy and complex calculations. Of course, lengthy and complex is a relative term, but she is a sufficiently accomplished mathematician and she needs to perform this task in less than one minute.
What strategy can be done by the spy and the government so that she can pass the mafia leader's identity accurately with that one chance?
Remark: The following weaker versions of the problem are due to David Rager:
1. Prove that if there are 3 mafia members and 3 bit number lottery winner, you can pass the information with only 1 flip.
2. Prove that if there are 27 mafia members and 27 bit number lottery winner, you can pass the information with only 3 flips.
On an previously-agreed date, the local radio station will announce the winning lottery number. This number will be from 0 to $2^{15}-1$ inclusive, and will be saved as a 15 binary digit data in that radio station's computer. The spy only has one chance to infiltrate the radio station's computer mainframe, change one bit (or none) in that number, and leave. The broadcaster will announce the number without knowing that the spy has changed it, and the government agents will listen to that changed number. The government and the spy don't know the winning number in advance and they have no further power to rig the lottery.
To make things more complicated, the spy does not have that much time in the radio station's computer room. Therefore, she would not be able to perform lengthy and complex calculations. Of course, lengthy and complex is a relative term, but she is a sufficiently accomplished mathematician and she needs to perform this task in less than one minute.
What strategy can be done by the spy and the government so that she can pass the mafia leader's identity accurately with that one chance?
Remark: The following weaker versions of the problem are due to David Rager:
1. Prove that if there are 3 mafia members and 3 bit number lottery winner, you can pass the information with only 1 flip.
2. Prove that if there are 27 mafia members and 27 bit number lottery winner, you can pass the information with only 3 flips.
Labels:
binary digit,
mafia,
radio,
Riddles / Puzzles,
Solved,
spy
Friday, October 2, 2009
Prisoners and hats
2047 prisoners are kept in a dungeon. One day, the King decided to do an experiment. They will each be given either a blue hat or a red hat and then collected in a room. Each prisoner can see the color of everyone else's hats but not his own. No form of communication is allowed. After a few minutes, the warden will come and ask each of them individually what he thinks the color of his hat is. They can answer "red" or "blue." Each prisoner must answer by whispering to the warden's ear, so that the other prisoners can't hear his answer. Those who can answer correctly will be freed, but those who answer incorrectly will be executed on the spot. The prisoners found out about this experiment the night before, so they had some time to devise a scheme to ensure they can save as many people as possible.
Question 1: What is the scheme that allows everyone to live in this case?
Suppose now the King decided to alter the experiment a little bit. The warden will come to the room immediately after everyone get their hats. Each prisoner is allowed to answer "red", "blue", or "I don't know." If everyone answers "I don't know", they will all be executed. If someone answers "red" or "blue" and he is wrong, they will all be executed. Otherwise, everyone is freed at the same time. In other words, in order for them to live, at least one person must answer "red" or "blue" and he must be right. As before, the prisoners can't hear everyone's answers, and the release or execution is delayed until everyone had given their answers.
Question 2: What is the scheme that allows everyone to live with the highest probability? What is that probability?
Question 1: What is the scheme that allows everyone to live in this case?
Suppose now the King decided to alter the experiment a little bit. The warden will come to the room immediately after everyone get their hats. Each prisoner is allowed to answer "red", "blue", or "I don't know." If everyone answers "I don't know", they will all be executed. If someone answers "red" or "blue" and he is wrong, they will all be executed. Otherwise, everyone is freed at the same time. In other words, in order for them to live, at least one person must answer "red" or "blue" and he must be right. As before, the prisoners can't hear everyone's answers, and the release or execution is delayed until everyone had given their answers.
Question 2: What is the scheme that allows everyone to live with the highest probability? What is that probability?
Labels:
binary,
binary digit,
Combinatorics,
hat,
parity,
prisoner,
probability,
Riddles / Puzzles,
Solved,
sum,
XOR
Subscribe to:
Posts (Atom)