This is aways possible, see Zeckendorf's theorem.
This is aways possible, see Zeckendorf's theorem.
The Wikipedia entry does suggest a greedy algorithm (at each step choosing the largest fib number that fits) though, using that we have
121 = 89 + 21 + 8 + 3
In other news, π² ≈ g.
"Zeckendorf's theorem states that every positive integer can be represented uniquely as the sum of one or more distinct Fibonacci numbers in such a way that the sum does not include any two consecutive Fibonacci numbers."
so, distinct and non-consecutive
What if a sum has more than 2 consecutive Fibonacci numbers? That doesn't cause a problem, but it takes a little more work to sort it out.
It looks like non consecutivity is only there to force unique solutions hence called zeckendorf representations