# Simplest Magic Fruit Split with Magic Number [duplicate]

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' ?

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!

• You got it. (Hope this was not a duplicate question) Commented Jun 12, 2015 at 16:38
• @kanchirk I think it is :( Commented Jun 12, 2015 at 16:38
• Let me delete it then. Sorry. Commented Jun 12, 2015 at 16:39
• @kanchirk I will vote close it once I find the dup. Commented Jun 12, 2015 at 16:40
• Thank you very much. Appreciate it. This was a puzzle for my kid. Commented Jun 12, 2015 at 16:41

Here's how I solved this:-

MAGICNUMBER/2 + 1 = MAGICNUMBER

MAGICNUMBER/2 - MAGICNUMBER = -1

-MAGICNUMBER/2 = -1

MAGICNUMBER/2 = 1

MAGICNUMBER = 2