3 January 2016

A puzzle – seemingly simple, but not quite

Here you go Debajyoti – since you were clamoring for another one. This one involves probability and can be considered very simple or very intriguing depending on your point of view…

I was having drinks with two of my friends last evening when the discussion meandered around our kids. All three of us have two kids each and no twins. Chris mentioned that his boy has really taken to high school football. The other child is less inclined towards sports and prefers to excel academically. Rick, the other friend – who is the youngest of the three of us – talked about his four year old son overjoyed with his grandparents’ visit during Christmas and all the gifts he got. Rick and his wife also just had a baby – and that was one more reason the grandparents had come – to help them around in the house.

So, now the question for you: Which of my two friends – Chris or Rick is more likely to have a daughter?

20 December 2015

Puzzle time! Of colored hats and blindfolded people…

It has been a long time since I posted a puzzle. This is a variation of those category of logic problems where blindfolded people regularly get colored hats put on them and they have to guess the color of the hat on their own head 🙂

This particular one goes this way – Twelve sailors get marooned in an island. The local tribe finds them out and takes them to their leader. Their leader, not knowing what to do with the prisoners, come up with a novel idea. He tells them that next day morning, he was going to line them up in a straight line and put a cap on their head while they are blindfolded. The only colors he has his hats in are black and white. (I do not have the faintest idea why on God’s green earth the tribal leader had black and white hats, but that is what he had 🙂 ) After that, he would remove everybody’s blindfold. Then, every sailor could see the color of the hats of all the people in front of himself but not his own or that of the ones behind.

The leader would start from the last person in the rear and ask him to name the color of the hat he was wearing. He could only say “Black” or “White”. Any other words spoken would result in everybody getting killed. If the person got the right answer, he would be spared, else he would be killed. Then the leader would move to the next person who was ahead of the last person and go thru the same procedure… till he was done with all twelve of them.

You can assume that everybody can hear the answer given by the person being asked. All the people who were spared would be given a boat and shown how to go back to their land.

Tonight, the sailors have to come up with a strategy to save as many of themselves as they can.

What would be the best strategy to maximize the number of people who can survive? How many can survive?

23 October 2015

Friday evening puzzle

When I met Lia’s mom (see a couple of posts back) last evening, Lia mentioned to her mom and her sister about my FB posts. And quickly added that she totally skips my puzzles. Which gave me an idea to form a puzzle including Lia and see what she does about it 🙂

Lia and I, both Saturday morning runners at Fowler Park, decide to run together tomorrow morning. We agree to meet up between 6am  and 7am. Both of us are definitely going to arrive in that timeframe. But, since we were likely to reach there at different times, we agreed on the rule that upon reaching the trailhead, if one does not find the other waiting there, he/she will wait exactly for 20 minutes for the other person before proceeding to run by himself/herself. Of course, in the middle of the wait, if it becomes 7 am already, the person just goes ahead for the run alone, (realizing that the other person came earlier and must have left after waiting for 20 minutes.)

Question is what is the probability that we will actually get to run together?

26 September 2015

Puzzle: Boarding a plane

Last morning, I was having a rather humorous email exchange with some of my friends from my previous job when one of them, Gasan, sent a very interesting puzzle. This is not that simple. What is surprising is his kids got this problem as a homework problem. Also Raj let me know that the answers are all over the internet. So, if you want to exercise your brain, do not Google it up. After you have given it whatever time you want to give, feel free to look up the answer.

Meanwhile, just to show how much fun we had as a team – or rather the team had at my expense, I am going to copy Gasan’s articulation of the problem as is…

A line of 100 airline passengers are waiting to board a plane. They each hold a ticket to one of the 100 seats on the flight. (for some reference, let’s say that the nth passenger in line has a ticket for the seat number n.)
Unfortunately, the first person in line is a crazy bald headed guy named Rajib, and will ignore the seat number on their ticket, picking a random seat to occupy. All the other passengers including Gasan, Chris, Sunjay, even Raj and Karthik are quite normal, and will go to their proper seat unless it is already occupied. If it is occupied, they will then find a free seat to sit in, at random.
What is the probability that the last (100th) person to board the plane will sit in their proper seat (#100)?

17 September 2015

A simple but elegant puzzle

Five friends at the gym came upon the new weighing machine recently installed there. They decided to take their weights in pairs (two at a time). The five of them can have ten pairings. They found the weights to be 259, 251, 264, 281, 268, 242, 257, 266, 253 and 275 pounds.
From this can you find out what were the individual weights of the friends?

If you are reading this on FB, message me if you have found the answers and your method.

13 September 2015

Math puzzle (relatively easy)

Yet another custom when my nephews and niece are around in their granddad’s house along with me is to go out for a walk after dinner and solve mathematical or logic puzzles. You might remember how, last time, we got stuck on getting two numbers (was it 19 and 21??) using the digits 1, 2 and 3 and any number of operators.

Last night, we came up with a variation – Using the digits 1, 2 and 4 and no other digits (and you can use them only once) you have to come up with 1 thru 25. 20 posed an interesting problem. Can you try it?

Using 1, 2 and 4 get 20. You can use any number of mathematical operators and symbols any number of times (but no other digits than the above and that too only once). For the record, trigonometric functions are not allowed since there is an assumption of the unit (radians/degrees). We reluctantly accept logarithms but try to find alternate answers. We certainly accept concatenation. Meaning you can get 16 by simly saying 12+4.

31 August 2015

An interesting logic puzzle

I thought this is a real cool problem… IT is all about logical thinking…

A teacher took out 8 stamps from a box – four of them white and four of them black. He got three of his brightest students – X, Y and Z and made them stand facing each other. He showed them the stamps, blindfolded each of them and then put two stamps on each of their foreheads. He put the final two stamps back in the box and closed the box. Then he opened the blindfolds. So, each of X, Y and Z could see the stamps on the forehead of the other two (but not their own – or the ones in the box). But they could obviously hear each other.

The teacher asked X first what were the color of the stamps (White White or Black Black or White Black) on his forehead. He said he did not know. The teacher asked then Y the same question. Y said he did not know either. Similarly the teacher asked Z and he too replied he did not know.

The teacher went back to X and asked if he now knew what he had. X again replied in the negative. The teacher asked Y next. And he did answer.

What was his answer? How did he deduce it?

31 July 2015

One more day. One more flight. One more puzzle.

Try this one. It is not as simple as it might sound but not as complicated either.

You have six identical balls except two are painted red, two are painted blue and two are painted white. You know one ball of each color weighs 10 pounds and one ball of each color weighs 11 pounds. (So each color has one lighter ball and one heavier ball).

You have a scale and pan balance but no weights. Only the balance and the six balls.

What is the minimum number of weighings you have to do to determine which are the heavier balls and which are the lighter balls?

30 July 2015

Want to weigh in on this puzzle?

I came up with this puzzle on my flight this evening. Therefore, my solution is not fully vetted. I will put my solution and then hopefully some of you will either show a better solution or vouch for mine. As of now, I am going to post the puzZle and hit the sack. I will check your answers tomorrow.

You have a traditional weighing scale and pan balance – you know where you can put weights or stuff on any of the two sides… You also have the following weights (don’t worry about the units): 1, 10, 100 and 1000.

The question is – how many different weights can you weigh combining the above weights?

26 July 2015

Do you know the answer?

I can’t find the answer to the question I had for myself today. I Googled but still can’t find it. The question is – Which river forms the longest international boundary?

Speaking of rivers and international boundaries, what is your guess about which river crosses the maximum number of international borders? In fact, it flows thru as many as 10 countries.

Here is another interesting trivia question – there is a point close to the above river where three country borders meet. At that point is a picnic table that is shaped as an equilateral triangle! The sides are parallel to the borders! There are three benches on the three sides with the appropriate country’s flag imprinted on their side. You can eat your food and jump from country to country without needing any visa!! Want to guess what those countries are?