18 September 2014

Puzzle time!!!

It has been two weeks since I left home. India trip, a week of business meetings and I am finally on my flight back home… It has been a long time since I posted a puzzle on my flight back home on a Thursday evening… so here goes the next one…

[Remember the rules – do not post your answers as Comments in FB. Either message me on FB or write a comment in my blogsite www.rajibroy.com]

A hotel wing has 17 consecutive rooms numbered 1 thru 17. Each of the rooms are connected to the two adjoining room(s) thru keyed (internal) doors and to the corridor with one (external) keyed door. Of course the two end rooms have only one internal door. A fugitive is holed up in one of the rooms. He has one of the two master keys that can open up the (internal) doors to the adjoining room(s). However, for security purpose, the key, once operated, is inactive for 24 hours. And the key has to be used once every 24 hours – else it gets completely deactivated. In other words, the fugitive has to shift to the next room every day using the internal door – on any one side, unless he is in room 1 or 17, in which case he has only one choice.

There is a detective who suspects that the fugitive is holed up there. He has the other master key. This key also works in the same way except it works only on the external door of the rooms (that opens to the corridor). Thus, the detective can open the external door of any room. If he finds the fugitive there, he apprehends him. If not, he has to immediately shut the door and stay in the corridor (so that the fugitive cannot escape thru the corridor). The detective, can choose to open the same room on consecutive days, if he so desires.

So day after day, this is what happens – the detective opens a room, checks for the fugitive and closes the door if he does not find him. The fugitive, meanwhile, day after day shifts to the room on the left or the right – once a day (as mentioned, unless he is in one of the end rooms, in which case, he can go in only one way).

Now, the detective’s assignment runs out in 30 days. So, he has to apprehend the fugitive within that time period or else he is recalled and the fugitive escapes.

Can you come up with a strategy for the detective (what logic will he follow to open doors) that will guarantee that he will catch the fugitive before he is recalled?

19 June 2014

Brain Drain: Puzzle after a long time

One more time (this time with a very different job) I find myself on a Thursday evening flying from DC to Atlanta. Which means time for another puzzle.

This time it is one of those about measuring arbitrary time with those dratted hourglasses. If you are reading this on FB, you probably remember that you can ask clarifying questions in the comments section but send answers by messaging me.

You have two hourglasses – one empties in four minutes and the other empties in seven minutes. You have to bake a cake but it must be baked for exactly nine minutes. What is the minimum time it will take you after I say Go! for you to bake the cake? (You don’t have to start baking the cake immediately when you turn the hourglass(es) but once you start baking, it has to finish in exactly nine minutes).

To further clarify, if you said “I will flip the four minute hourglass first and then moment it is done, I will start baking and flip both hourglasses….. And say you figured out how to bake the cake in nine minutes now using those two hourglasses”, then total time taken is thirteen minutes. Get it?

Go!

10 April 2014

Puzzle – Team’s salary

On a coast to coast flight. Figured I have enough time to come up with a puzzle.

As always send a personal message for your answer – do not put it in a public place like Comments section in Facebook.

I had heard this problem long time back and was struck by the simplicity of its answer. I am adding a twist to that question here.

You and fourteen more of your team members were having coffee at your office cafetaria one day. Your manager walked up to you and said “I have an interesting problem for you guys. All of you will get an increment if you can tell me the correct answer. I am going to pick a random person ten minutes from now and ask – ‘how many of the team members earn higher than the average salary of the team’ ?”

Now the trick is obviously nobody wants to divulge their own salary to anybody else. And nobody wants anybody to know whether he or she is making higher or lower than the average.

You can assume nobody is earning at exactly the average number.

The team members look up to you to devise a quick, easy and elegant way so that everybody will get that increment.

How would you do it?

25 March 2014

Puzzle: Railway Track

This is one of those “shunting” puzzles. As you can see in my somewhat clumsy diagram, there is a railway track that goes indefinitely to the right. On the left, it splits into a “Y”, both ends of which merge into a finite straight railway track. There is a coach “A” sitting on one arm of the Y and another coach “B” sitting on the other arm. Both the coaches are 5 yards each.

The distance between the junction point on coach A side and the end of the finite straight track is 5 yards. On the other side, near coach B, the distance between the junction point and the end of the straight finite track is 15 yards. (See pic). In between the junction points on the straight track sits an engine “E” which is itself 10 yards in length.

Like every engine, E can go forwards or backwards and can pull or push the coaches. Any coach and engine can be attached to each other.

Here is the puzzle: Can you interchange the position of coach A and coach B? You have to get engine E back to its original position when you are done.

20140325-160301.jpg

14 March 2014

Today’s puzzle

Two students of maths are playing the following game – each takes turn to pick a number from the following set {-4, -3, -2, -1, 0, +1, +2, +3, +4}. Once a number is picked, it is not replaced. And they keep playing till they run out of numbers. And they start all over again.

Whoever can come up with three numbers that add up to 0 first wins the game. It does not have to be the only three numbers she has. For example, she might have picked -3 and then in next chance picked +2. Hoping to pick +1 next. But other player seeing that, would  have taken away the +1 in the next move. So let’s say the original person next picked 4. And then if she got a chance to pick -1 in the next move, she would have -3, +2, +4 and -1. Note that -3, +4 and -1 adds to 0. So she wins.

Now, here is the question: If you are the first player, is there a strategy for you to win? If you are the second player, is there a strategy for you to win?

If you are seeing this in FB, send me message and do not post answers in Comments section.

9 March 2014

Few interesting facts about DST – but don’t tell my mom!!

I did not explain all these to my mom today – she would be further confused…
  1. DST is less than 100 years old. (98 in Central Europe and 96 in US)
  2. DST was first proposed by a guy in New Zealand who wanted more daylight to follow his profession – studying insects!!
  3. DST was subsequently proposed by another guy in UK who was frustrated with his back nine game in golf with less sunlight.
  4. Most of the countries scrapped DST after first world war (except a couple in Europe and Canada)
  5. Many adopted them back during second world war and the oil crisis of 70s. US standardized on it only in 1966.
  6. Many have scrapped it ever since!
  7. More inhabited land is covered in this world by countries who have scrapped DST than by those who currently observe it or those who never observed it.
  8. And this is going to completely flummox my mom – in spite of all her confusion, the fact is when she was born, India had Daylight savings. (during second world war when India was under the British). Subsequently it was scrapped. I bet this is a surprise for most of Indian friends too!
7 March 2014

Cool Puzzle

This puzzle does not require math skills but some imagination and visual skills. Assuming you have not seen this problem before, that is. One of the visual skills required is getting past my terrible drawing abilities 🙂
So, there is a painting with a string attached on the top two ends as shown in the picture. And there are two nails on the wall horizontally separated. (the separation distance does not matter).
Can you hang the painting with the string in a way that if any one of the nails come off, the painting will fall down to the ground?
Of course, the painting needs to actually hang from the nails using the string.

20140307-080424.jpg

Category: Puzzles | LEAVE A COMMENT
27 February 2014

New Puzzle

Thursday evening. No flight today. I got done with it on Monday. But still there is a puzzle…

Mary would like to go out with John but John did not care much for Mary. So Mary agreed to play a guessing game with him. John asked her to guess the apartment number that he first lived in. He let her know it was between 8 and 100 (both inclusive). But she had to guess with as few questions as she could.
Her first question was “Was the number more than 50”?
John answered the question. But what Mary did not know is that he lied. (he really did not care to go out with her).
Mary then asked “Is the number divisible by 4?”
John answered that question. But once again, he lied.
Mary thought for a while and asked “Was it a square number”?
This time John answered the question truthfully.
Mary excitedly asked her final question “I know the exact answer if you tell me if the number started with 3 or not”
John answered that question too. But we do not know whether he was telling the truth or not.
At that point, Mary proceeded to guess the apartment number. As you can imagine, she got it wrong. (After all John lied at least twice).
Now, can you tell me what was John’s apartment number?