PROJECT EULER · #0297
Zeckendorf Representation
Each new term in the Fibonacci sequence is generated by adding the previous two terms.
Starting with
Every positive integer can be uniquely written as a sum of nonconsecutive terms of the Fibonacci sequence. For example,
Such a sum is called the Zeckendorf representation of the number.
For any integer
Thus,
Also, for
Find
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.