Antheias Garden Chapter 2

Antheias Garden – Chapter 2

Code Solutions on GitHub โ†—

 

 

Antheias Garden – Chapter 2

After the first full moon Antheia returned to the pond. The life she was breathing into the body of water obviously had their effects.

But was there another entity visiting this pond? Some flowers were lined up in a pattern too perfect to be random.

An Iris, a Hibiscus, a Ficaria Verna, a Rudbeckia Hirta, … The Iris had 3 Petals, the Hibiscus 5 Petals, the Ficaria 8 Petals and it continued like this 13, 21, 34, … petals. The flowers themselves arranged in an spiral.

How many petals does the 20th flower have in this arrangement?

Hint

  • This sequence is called the fibonacci numbers
  • Use either a recursive function
  • Or a loop to do the calculation

How many petals does the 100th flower have?

Hint

  • Depending on the programming language, it may be necessary to use a library which allows to do calculations with large integers

But who was this? Is there another goddess playing a game with her?

Demeter? The goddess of grains. Did she plant this spiral?

Iris? The first flower she noticed was called after the godess herself. Or maybe Iris was just bringing an hidden message from another god, she did not understood?

Narcissus? She glanced shortly into the pond, tumbling backwards, then somewhat shocked by her own thoughts.

Chloris? Through the whispers of the west-wind, she knew that Chloris had an wonderful garden, filled with flowers from the known and unknown parts of the whole world.

Antheia saw that many plants following this pattern, but not all of them. So far this was just an observation. Was there a reason for this? Something which goes beyond something even Zeus could imagine?

Antheia was clever. She realized after some time, if she divided the the number of petals of two flowers following each other, that the ratio seemed to approach a specific number.

  • 5 / 3 = 1.66667
  • 13 / 8 = 1.625
  • 21 / 13 = 1.61538

What is this number? (with 5 digits of precision)

Maybe she should ask Athena about this. Athena was the most clever entity she knew. The most merciless strategista in the Olymp. Or Prometheus and ease his pain for at least some time?

 

Categorystory
Coding Levelbeginner
Coding Ideasfibonacci, recursion, big integer, big number
Coding LanguagesCode Solutions on GitHub โ†—
Story Genrehistorical fiction
Story Content Key Wordsgreek goddess, flowers, petals, pond, pattern
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 Solutions
TitleAntheias Garden – Chapter 2
AuthorNoctiluca
Tags
Shopping Basket