Antheias Garden

Antheias Garden – Chapter 1

Code Solutions on GitHub โ†—

 

 

Antheias Garden

Antheia was walking through a colorful garden and somehow had an odd feeling that there is something missing. There was a tree ๐ŸŒณ, many stones ๐Ÿชจ, even some lizards ๐ŸฆŽ which already found their way into this odoriferous spot.

A pond ๐ŸŒŠ! Antheia was powerful enough to wish a tiny pond into existence. Minutes later, some rainbow trouts already found a new home.

But now waiting until water lilies are fully grown? Not really necessary, as every day the water lilies double themselves anyway.

There was just a full-moon ๐ŸŒ• and Antheia could get back when the moon fully shines again. For today Antheia just puts one beautiful water lily into the pond.

How many water lilies will Antheia see when she returns on the next full-moon ๐ŸŒ•?

Hints:

  1. Between two full moons are roughly 29 days.
  2. Antheia puts one lily into the water, after 1 day there are 2 lilies, after 2 days there are 4 lilies, and so on …
  3. The solution has to be an integer (not a floating point number)

 

Categorystory
Coding Levelbeginner
Coding Ideasexponent
Coding LanguagesCode Solutions on GitHub โ†—
Story Genrehistorical fiction
Story Content Key Wordsgreek goddess, moon, flowers, fish, pond
Story LicenseCC BY-NC-SA 4.0 International
Parental Rating6+ For Everyone
How To Quote Story(Noctiluca, adapted by StoryCoder.dev under CC BY-NC-SA 4.0 International)
Picture Licensenull
How to Quote Picture(adapted by StoryCoder.dev under null)
Available SolutionsC# – Erlang – Go – JavaScript – Python – Swift
TitleAntheias Garden – Chapter 1
AuthorNoctiluca
Tags
Shopping Basket