Your spouse shook hands with Pat, but not Chris.
We begin with what we know: since nobody shook hands with more than six persons, and the seven people other than
yourself all shook hands with a different number of people, the numbers must have been:
0,1,2,3,4,5,6, respectively.
Let us begin with "0"--whom we shall call the introvert, because this person shook nobody's hand. At the other extreme
was "6"--whom we shall call the extrovert for obvious reasons. The extrovert shook everybody's hand, except his/her
own spouse. Since the extrovert and the introvert did not shake hands, the introvert must be the extrovert's spouse.
0&6 are a couple, leaving 1,2,3,4,5 and yourself
Consider the remaining five people other than yourself. Each of these shook hands with the extrovert, and none with the introvert.
One of these five people-- "1", the quasi-introvert--only shook hands with one other person, the extrovert. Another--
"5", the quasi-extrovert--shook hands with five people, everyone except his/her own spouse and the introvert ("0").
Therefore, the quasi-introvert and the quasi-extrovert form a couple.
0&6, 1&5 are couples, leaving 2,3,4 and yourself.
In the same way, "2" and "4" form a couple--we'll call them the pseudo-introvert and pseudo-extrovert, respectively.
0&6, 1&5, 2&4 are couples, leaving 3 and yourself.
Therefore, your spouse is the one who shook hands with three other persons. Furthermore, you and your spouse shook hands with the same people: the extrovert ("6"), the quasi-extrovert ("5"), and the pseudo-extrovert ("4"). This group includes Pat (one of our givens: you shook hands with Pat), and therefore must exclude Chris.
Showing posts with label puzzle solutions. Show all posts
Showing posts with label puzzle solutions. Show all posts
Saturday, July 21, 2007
Solution to Gold Chain Problem
This can be done wit 2 cuts.
Cut the gold chain into 3 pieces of length 1, 2 and 4. That will take just 2 cuts. On the first day, 1 can be given as wage. On 2nd day link 1 can be taken back, and link 2 can be given. On 3rd day link 1 can be given along with link 2. And so on..
Cut the gold chain into 3 pieces of length 1, 2 and 4. That will take just 2 cuts. On the first day, 1 can be given as wage. On 2nd day link 1 can be taken back, and link 2 can be given. On 3rd day link 1 can be given along with link 2. And so on..
Saturday, July 14, 2007
Solution to the 5 Pirates and the Gold Problem
All pirates assume tat the other players will play optimally.
Consider the case where there r just two pirates B and A in the order of seniority.. So B will decide how to split the gold. All the pirates are very greedy and only 50% votes are required for approval. So B will choose to keep all the gold and vote for himself.. Thus A will get zero..
If there are three pirates C,B and A then C must get 2 votes 2 win. A knows tat he will get nothing if C is killed. So if C agrees to give him atleast 1 gold coin, voting for C is a better option for A. So C will keep 99 coins and give 1 coin to A. So the coin distribution is 99, 0, 1
If there r 4 pirates, D,C,B and A then the same reasoning can be applied and D will provide the loser in the 3 people scenario above with a gold coin. Since B is the loser. He will get a gold coin. B knows tat if he does not vote for D, C will take over and he wont get any gold as shown above.
So the distribution becomes 99,0,1,0
If there r 5 pirates, E,D,C,B and A we need 3 votes for E to win.. So E will give 1 coin each to losers in the 4 person scenario. So C and A will get a coin each
So the distribution decided by the most senior pirate to ensure his survival and maximize his gold is 98,0,1,0,1.
Consider the case where there r just two pirates B and A in the order of seniority.. So B will decide how to split the gold. All the pirates are very greedy and only 50% votes are required for approval. So B will choose to keep all the gold and vote for himself.. Thus A will get zero..
If there are three pirates C,B and A then C must get 2 votes 2 win. A knows tat he will get nothing if C is killed. So if C agrees to give him atleast 1 gold coin, voting for C is a better option for A. So C will keep 99 coins and give 1 coin to A. So the coin distribution is 99, 0, 1
If there r 4 pirates, D,C,B and A then the same reasoning can be applied and D will provide the loser in the 3 people scenario above with a gold coin. Since B is the loser. He will get a gold coin. B knows tat if he does not vote for D, C will take over and he wont get any gold as shown above.
So the distribution becomes 99,0,1,0
If there r 5 pirates, E,D,C,B and A we need 3 votes for E to win.. So E will give 1 coin each to losers in the 4 person scenario. So C and A will get a coin each
So the distribution decided by the most senior pirate to ensure his survival and maximize his gold is 98,0,1,0,1.
Friday, July 13, 2007
Solution to which 1 is heavier..
The gold will be heavier if we try to lift it..
Weight is the force acting on a body due to gravity..
In vacuum the weight of 1kg of cotton and 1kg of gold will be the same..
We know tat cotton is very much less denser than gold.. So 1kg cotton will take up much more volume than 1 kg of gold.
Buoyancy of air causes an upthrust on both gold and cotton.. This upthrust is directly proportional to the volume of air displaced.. So a higher upthrust will act on Cotton..
So the net force acting downwards on Cotton will be smaller..
So cotton will be easier to lift up..
Weight is the force acting on a body due to gravity..
In vacuum the weight of 1kg of cotton and 1kg of gold will be the same..
We know tat cotton is very much less denser than gold.. So 1kg cotton will take up much more volume than 1 kg of gold.
Buoyancy of air causes an upthrust on both gold and cotton.. This upthrust is directly proportional to the volume of air displaced.. So a higher upthrust will act on Cotton..
So the net force acting downwards on Cotton will be smaller..
So cotton will be easier to lift up..
Solution to Cows and the Meadow Problem
The number of cows required is 20..
For this we have to consider the fact tat the grass is growing continously.. Let y be the rate of growth of grass.. So in 24 days the grass will grow 24y..
Now let the total amount be 1..
So (1+24y) is the amt of grass in 24 days..
In 1 day,70 cows will eat = (1+24y)/24
and 1 cow will eat = (1+24y)/(24*70)
and similarly we get 1 cow will eat (1+60y)/(60*30)
Equating the 2 equations and solving we get y= 1/480.. This is the rate of growth of grass. Substituting this in 1 of the above equations we get 1/1600
So for 96 days Let there be x cows---> (1+96*(1/480))/(96*x) = 1/1600
solving x we get x= 20 cows..
For this we have to consider the fact tat the grass is growing continously.. Let y be the rate of growth of grass.. So in 24 days the grass will grow 24y..
Now let the total amount be 1..
So (1+24y) is the amt of grass in 24 days..
In 1 day,70 cows will eat = (1+24y)/24
and 1 cow will eat = (1+24y)/(24*70)
and similarly we get 1 cow will eat (1+60y)/(60*30)
Equating the 2 equations and solving we get y= 1/480.. This is the rate of growth of grass. Substituting this in 1 of the above equations we get 1/1600
So for 96 days Let there be x cows---> (1+96*(1/480))/(96*x) = 1/1600
solving x we get x= 20 cows..
Solution to red and blue marbles problem
Place one red marble in one jar and all the remaining balls ( 49 red and 50 blue) in the next jar.
so probability would be 0.5* 1+ 0.5* 49/99 ..so u get a probability around 0.75.
so probability would be 0.5* 1+ 0.5* 49/99 ..so u get a probability around 0.75.
Monday, July 9, 2007
Solution to jelly bean problem
The answer is one..
remember tat all the jars are mislabeled..
take a jellybean from the jar labeled as "mix of both".
if it is a grape jelly jelly bean then the jar should be labeled as "grape jelly" and the jar mislabeled as "peanut butter" should be corrected as "mix of both.." and the jar mislabeled as "grape jelly" should be corrected as "peanut butter"
remember tat all the jars are mislabeled..
take a jellybean from the jar labeled as "mix of both".
if it is a grape jelly jelly bean then the jar should be labeled as "grape jelly" and the jar mislabeled as "peanut butter" should be corrected as "mix of both.." and the jar mislabeled as "grape jelly" should be corrected as "peanut butter"
Solution to Coins on the Table problem
Move the coins 1 by 1 to two sides of the table alternatively.. Then flip all coins in one of the sides..
Solution to contaminated pill problem
This is a simple 1..
Take one pill from jar 1.. two from jar 2 and so on till 5 from jar 5..
Now Weigh the pills together..
If the reading of the weighing machine ends in 9 then the contaminated pill is from jar 1..
If it ends in 8 then it is from jar 2.
If 7 then jar 3.
If 6 then jar 4.
and if 5 then jar 5.
Take one pill from jar 1.. two from jar 2 and so on till 5 from jar 5..
Now Weigh the pills together..
If the reading of the weighing machine ends in 9 then the contaminated pill is from jar 1..
If it ends in 8 then it is from jar 2.
If 7 then jar 3.
If 6 then jar 4.
and if 5 then jar 5.
Solution to top three
The minimum number of races required is 7. The solution goes like this.
first divide the 25 horses into 5 grps A,B,C,D,E each containing 5 horses.
Now conduct 5 races for the 5 groups and u will get 1st,2nd,3rd place winners for each group.
Lemme call the 1st place winner of grp A as A1, 2nd place winner as A2 and so on till A5.
Do the same to the other groups.
Now group A1,B1,C1,D1,E1 together and conduct a race. let A1 be 1st, B1 be 2nd and C1 be 3rd.
A1 will be the fastest 1st place horse. Now for 2nd and 3rd place horse.
We r sure tat other horses in group C,D and E wont be the 2nd and 3rd place horses. C1 turned out to be the fastest horse in group C and so the other horses in C will be slower than C1.
So for the next race group A2,A3,B1,B2,C1 together and conduct the race.
The 2nd place winner in this race will be the 2nd fastest horse.
The 3rd place winner in this race will be the 3rd fastest horse.
first divide the 25 horses into 5 grps A,B,C,D,E each containing 5 horses.
Now conduct 5 races for the 5 groups and u will get 1st,2nd,3rd place winners for each group.
Lemme call the 1st place winner of grp A as A1, 2nd place winner as A2 and so on till A5.
Do the same to the other groups.
Now group A1,B1,C1,D1,E1 together and conduct a race. let A1 be 1st, B1 be 2nd and C1 be 3rd.
A1 will be the fastest 1st place horse. Now for 2nd and 3rd place horse.
We r sure tat other horses in group C,D and E wont be the 2nd and 3rd place horses. C1 turned out to be the fastest horse in group C and so the other horses in C will be slower than C1.
So for the next race group A2,A3,B1,B2,C1 together and conduct the race.
The 2nd place winner in this race will be the 2nd fastest horse.
The 3rd place winner in this race will be the 3rd fastest horse.
Solution to crossing the bridge
Its possible to cross the bridge in 17 minutes
C&D crosses D returns = 2+ 1 = 3mins
A&B crosses C returns =10 + 2=12min
C&B crosses =2min
So the total is 17 minutes.
C&D crosses D returns = 2+ 1 = 3mins
A&B crosses C returns =10 + 2=12min
C&B crosses =2min
So the total is 17 minutes.
Solution to the King and his poisoned wine problem
Number the bottles from 1 to 1000.. The trick to gettin the answer to tis problem is to know that every number frm 1-1000 has a unique binary representation.
The binary representation of 1 is 0000000001, 2 is 0000000010 and so on..
Now we hav 10 wine tasters. Number them from 1 to 10. Now feed the nth wine taster wit the wine from the bottles whenever nth bit in binary number is 1. for eg. for 0000000001 only the 10th taster is fed wit bottle 1. if 1000000011 the 1st,9th,10th tasters r fed.
So by identifyin the tasters who die on the 29th day we will be able to verify the correct bottle.
The binary representation of 1 is 0000000001, 2 is 0000000010 and so on..
Now we hav 10 wine tasters. Number them from 1 to 10. Now feed the nth wine taster wit the wine from the bottles whenever nth bit in binary number is 1. for eg. for 0000000001 only the 10th taster is fed wit bottle 1. if 1000000011 the 1st,9th,10th tasters r fed.
So by identifyin the tasters who die on the 29th day we will be able to verify the correct bottle.
Thursday, July 5, 2007
Solution to the Cube Painting problem
There r " 30 " ways in which the cubes can be painted..
Before saying the solution, lemme say why the answer is not " 1 ".. The most common answer i got from my friends is "1". If there was just 1 way to paint the cube then if u have many cubes of this type they would be indistinguishable from each other.. but this is not the case here. A cube with red and blue painted on opposite sides can be distinguished from a cube with red and green painted on opposite sides..
This gives us a hint to the solution.. the cubes can distinguished by what colors lie opposite to each other. So we just have to consider the number of ways to make such pairs..
Now consider an unpainted cube.. Now paint a particular side with 1 color.. Now u have 5 colors left. The number of ways in which the side opposite to this can be colored is in 5 ways.. After coloring the opposite side u have 4 colors left.. Rotate the cube by 90.. and color the blank face wit one more color. Then the face opposite to it an be colored in 3 ways.. Now 2 faces are left.. Color the remaining 2 colors on the 2 sides.. But we will be able to make 1 more distinguishable cube if u jst reverse the way in which the last 2 colors are painted. So the number of cubes tat can be made is 5 * 3 *2 = 30 cubes..
Before saying the solution, lemme say why the answer is not " 1 ".. The most common answer i got from my friends is "1". If there was just 1 way to paint the cube then if u have many cubes of this type they would be indistinguishable from each other.. but this is not the case here. A cube with red and blue painted on opposite sides can be distinguished from a cube with red and green painted on opposite sides..
This gives us a hint to the solution.. the cubes can distinguished by what colors lie opposite to each other. So we just have to consider the number of ways to make such pairs..
Now consider an unpainted cube.. Now paint a particular side with 1 color.. Now u have 5 colors left. The number of ways in which the side opposite to this can be colored is in 5 ways.. After coloring the opposite side u have 4 colors left.. Rotate the cube by 90.. and color the blank face wit one more color. Then the face opposite to it an be colored in 3 ways.. Now 2 faces are left.. Color the remaining 2 colors on the 2 sides.. But we will be able to make 1 more distinguishable cube if u jst reverse the way in which the last 2 colors are painted. So the number of cubes tat can be made is 5 * 3 *2 = 30 cubes..
Solution to the series
The next term in the series is 63.
Solution :-
The nth number of the series is the sum of the nth prime number and nth fibonacci number..
The fibonacci series goes lik this 0, 1, 1, 2, 3, 5, 8, 13..
The nth term is the sum of the (n-1)th and (n-2)th term..
The prime numbers go lik this 2, 3, 5, 7, 11, 13, 17...
http://www.research.att.com/~njas/sequences/
This is an online encyclopedia of integer sequences.. Go there and try searching our sequence.
This is a useful link i found while attempting programming competitions at http://www.topcoder.com
Solution :-
The nth number of the series is the sum of the nth prime number and nth fibonacci number..
The fibonacci series goes lik this 0, 1, 1, 2, 3, 5, 8, 13..
The nth term is the sum of the (n-1)th and (n-2)th term..
The prime numbers go lik this 2, 3, 5, 7, 11, 13, 17...
http://www.research.att.com/~njas/sequences/
This is an online encyclopedia of integer sequences.. Go there and try searching our sequence.
This is a useful link i found while attempting programming competitions at http://www.topcoder.com
Solution to the Three Doors and 1 Prize Problem..
This is a famous problem in probability called the Monty Hall problem.. For more info goto
http://en.wikipedia.org/wiki/Monty_Hall_problem
The answer is it is always better to switch ur choice to the other door.. Chance of winning doubles if u switch ur door.. The solution goes like this..
Suppose doors are numbered 1,2 and 3. Its clear tat u hav an equal probability of choosing any of the doors. Now suppose tat the prize is behind door 1 and the other 2 doors hav goats behind.
Suppose tat u will always switch ur choice when the gameshow host asks u..
If ur choice was door 2, the gameshow host will open up door 3 for u and show u a goat. So since the prize is behind door 1 u will win if u switch to door 1.
If u picked door 3, the gameshow host will open up door 2 for and show u a goat.. So u will win again if u switch ur choice to door 1..
Now suppose ur choice was door 1, the gameshow host will open any of door 2 or 3 for u. This time u will lose if u switch ur door..
So u hav a 2/3 chance of winning if u switch ur door..
Now suppose ur choice was never to switch..
if door 2 was ur choice, u will lose..
if door 3 was ur choice, u will lose again..
if u had picked door 1, u will win.
So u hav a 1/3 chance of winning if u dont switch..
So ur chance of winning doubles if u switch ur doors..
Hope its clear.. The wikipedia article has links to java applets tat demonstrates tat the solution is correct..
http://en.wikipedia.org/wiki/Monty_Hall_problem
The answer is it is always better to switch ur choice to the other door.. Chance of winning doubles if u switch ur door.. The solution goes like this..
Suppose doors are numbered 1,2 and 3. Its clear tat u hav an equal probability of choosing any of the doors. Now suppose tat the prize is behind door 1 and the other 2 doors hav goats behind.
Suppose tat u will always switch ur choice when the gameshow host asks u..
If ur choice was door 2, the gameshow host will open up door 3 for u and show u a goat. So since the prize is behind door 1 u will win if u switch to door 1.
If u picked door 3, the gameshow host will open up door 2 for and show u a goat.. So u will win again if u switch ur choice to door 1..
Now suppose ur choice was door 1, the gameshow host will open any of door 2 or 3 for u. This time u will lose if u switch ur door..
So u hav a 2/3 chance of winning if u switch ur door..
Now suppose ur choice was never to switch..
if door 2 was ur choice, u will lose..
if door 3 was ur choice, u will lose again..
if u had picked door 1, u will win.
So u hav a 1/3 chance of winning if u dont switch..
So ur chance of winning doubles if u switch ur doors..
Hope its clear.. The wikipedia article has links to java applets tat demonstrates tat the solution is correct..
Monday, July 2, 2007
Solution to the 2 Mathematicians
The first clue was the product of their ages is 72.
So take all the possibilities.
72 ,1,1 = not possible coz mathematicians met after 27 years.
36, 2,1= not possible
18,2,2
9,4,2
4,6,3
6,6,2
12,3,2
12,6,1
24,3,1
3,3,8
Now the second clue is tat the sum of their ages is a number tat the other guy can clearly see.. But still the other guy cant guess the answer.
18,2,2 =22
9,4,2 =15
4,6,3 =13
6,6,2 = 14
12,3,2 =17
12,6,1 =19
24,3,1 = 28
3,3,8 = 14
So if the guy couldnt guess the answer tat means tat the total must hav been 14. thn u hav 2 possible ways u can factorise 72 wit the sum 14..
so the answer must be 6,6,2 or 8,3,3
The third clue says tat the youngest daughter just started walking.
So.. 8,3,3 s nt possible.. here u hav 2 younger daughters of the same age.
Therefore 6,6,2 is the answer :)
So take all the possibilities.
72 ,1,1 = not possible coz mathematicians met after 27 years.
36, 2,1= not possible
18,2,2
9,4,2
4,6,3
6,6,2
12,3,2
12,6,1
24,3,1
3,3,8
Now the second clue is tat the sum of their ages is a number tat the other guy can clearly see.. But still the other guy cant guess the answer.
18,2,2 =22
9,4,2 =15
4,6,3 =13
6,6,2 = 14
12,3,2 =17
12,6,1 =19
24,3,1 = 28
3,3,8 = 14
So if the guy couldnt guess the answer tat means tat the total must hav been 14. thn u hav 2 possible ways u can factorise 72 wit the sum 14..
so the answer must be 6,6,2 or 8,3,3
The third clue says tat the youngest daughter just started walking.
So.. 8,3,3 s nt possible.. here u hav 2 younger daughters of the same age.
Therefore 6,6,2 is the answer :)
Solution to Cookie Seller
The solution goes lik this.. :)
We hav inifinte number of boxes of each type..
By taking all multiples of 6 we will get all the even multiples of 3 above 6.. and by taking all multiples of 9 we will be able to make all odd multiples of 3. Thus we can make all the multiples of 3 above the number 6..
So wat abt the the other numbers?? hmmm..
Now take the number 29.. it gives 2 as remainder when divided by 3.. if we add 400 to 29 ie 429 is a multiple of 3. So any number above 410 which gives a remainder of 2 when divided by 3 can be made by using a 400 box and the rest 6 and 9.
ie, 421= can be made as 400 + 21 ( 2 *6+1*9) and so on..
Now take the number 28. it gives a remainder 1 when divided by 3. If we add 800 to 28 ie 828 is divisble by 3..
So any number above 806 can be made by these 3 types of boxes..
So wat abt the maximum tat cannot be sold
805 - 400 is divisible by 3..
804 is divisible by 3
803 is nt divisble by 3, 803-400=403 is nt divisble by 3, a 803-800=3 cannot be made using our boxes..
So 803 is the max number of boxes tat cannot be sold..
We hav inifinte number of boxes of each type..
By taking all multiples of 6 we will get all the even multiples of 3 above 6.. and by taking all multiples of 9 we will be able to make all odd multiples of 3. Thus we can make all the multiples of 3 above the number 6..
So wat abt the the other numbers?? hmmm..
Now take the number 29.. it gives 2 as remainder when divided by 3.. if we add 400 to 29 ie 429 is a multiple of 3. So any number above 410 which gives a remainder of 2 when divided by 3 can be made by using a 400 box and the rest 6 and 9.
ie, 421= can be made as 400 + 21 ( 2 *6+1*9) and so on..
Now take the number 28. it gives a remainder 1 when divided by 3. If we add 800 to 28 ie 828 is divisble by 3..
So any number above 806 can be made by these 3 types of boxes..
So wat abt the maximum tat cannot be sold
805 - 400 is divisible by 3..
804 is divisible by 3
803 is nt divisble by 3, 803-400=403 is nt divisble by 3, a 803-800=3 cannot be made using our boxes..
So 803 is the max number of boxes tat cannot be sold..
Subscribe to:
Posts (Atom)