1

Anyone who plans to visit the Miracle Fruit Tree in the Royal Garden has to travel through Seven Gates in each of the Seven Curtain Walls surrounding the garden.

Each of these gates has a guard.

There is only one way in and out each of these curtain walls.

The Royal rule is Each of the guard will take half the number of fruits from anyone on the way out.

One fine day, a commoner negotiates a deal with each of the guard on the way in.

The deal is after sharing the split, will take back one from the guard.

After plucking 'MAGICNUMBER' number of fruits on the way out, Both the guard and the person honor the deal at each of the Seven gates.

At home the Person counts all the Miracle Fruits remaining.

The count is 'MAGICNUMBER'.

What is the 'MAGICNUMBER' ?

GentlePurpleRain
  • 25,965
  • 6
  • 93
  • 155
kanchirk
  • 1,789
  • 11
  • 20
  • 2
    This is similar to: http://puzzling.stackexchange.com/questions/626/paying-the-troll-toll, However I'm not sure if it would be considered a 'variant'? (if not I will vote to close it) – Mark N Jun 12 '15 at 16:45

2 Answers2

3

The person would only need 2 magical fruits
Half of 2 is 1, and he gets 1 back which is 2 again.
This will work for an infinite number of gates.

Alternatively,

The person could have 0 magical fruits.
Half of zero is 0, so there is no loss
Then the guard give you 1 fruit!
You end up with 1 free magical fruit to eat!

Mark N
  • 5,868
  • 22
  • 60
1

Here's how I solved this:-

MAGICNUMBER/2 + 1 = MAGICNUMBER

MAGICNUMBER/2 - MAGICNUMBER = -1

-MAGICNUMBER/2 = -1

MAGICNUMBER/2 = 1

MAGICNUMBER = 2

Sharad Gautam
  • 603
  • 5
  • 16