Problem of the Day
A new programming or logic puzzle every Mon-Fri

The 3 Guardians

There exist 4 magical rivers. In between each river is a temple. Combined these temples are known as The 3 Guardians. These magical rivers have the power to make you wealthy, however, you will use them to appease The 3 Guardians. When you cross a river all the gold you are carrying is doubled. Thus, if you cross the first river with 2 coins you'll end up with 4 coins when you reach the first temple.

Using this logic, what is the minimum number (greater than 0) of gold coins you must start with to give each temple an equal number of gold coins and be left with 0 coins at the end of the fourth river?

Cheers to a good weekend!

Permalink: http://problemotd.com/problem/the-3-guardians/

Comments:

  • Foppe - 10 years, 1 month ago

    You start with 7 coins and donate 8 at each temple.

    reply permalink

  • Max Burstein - 10 years, 1 month ago

    Nice!

    reply permalink

Content curated by @MaxBurstein