Rosetta Code

Zeckendorf number representation

Represent integers as sums of non-consecutive Fibonacci numbers using Zeckendorf's theorem.

Edit the source, then Run. Checks start after your first Run. Ctrl/⌘ + Enter runs; Tab indents. Preview services use sample data and never contact a real service.

rosettacode/popular/zeckendorf_number_representation.vibe
Output
Click Run example to see the result.

Code checks

Run once to load the checker. Your code stays in this browser.