With you: Fibonacci contributions to mathematics
|RUSSELL CROWE MIND||Righteous harmonious fists|
|Fibonacci contributions to mathematics||22|
|Fibonacci contributions to mathematics||372|
Code Golf Stack Exchange is a question and answer site for programming puzzle enthusiasts and code golfers. It only takes a minute to sign up. Connect and share knowledge within a single location that is structured and easy to search.
Implement the 1-indexed sequence Awhich starts like this:. This sequence is the lexicographically fibonacci contributions to mathematics sequence of positive integers, so that indexing into the sequence twice yields the regular Fibonacci sequence:. Due to the indexing nature of this sequence, the indexing is fixed to 1-indexing. Standard code-golf rules apply. The shortest code in bytes wins. Try it online! This is far from an optimal solution, probably both from efficiency and golfing perspectives, but I finally figured out how the generation even worked with much thanks to an observation from Bubbler, and I wanted to share it. Hopefully this helps as a starting point for anyone who isn't sure how to approach this, and maybe I will figure out a much shorter algorithm later on.
The Difference Between Ethereum and Ether
The relevant function is awhich takes a positive integer n as input and returns the n th 1-indexed number of the sequence. This is really just a port of hyper-neutrino's answer. Sign up to join this community.
The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams?
Learn more. The half-step of Fibonacci Ask Question. Asked today.]