How to Use
Enter n:
- Representation: Sum of Fibonacci numbers
- Indices: Which F(k) are used
- Binary: Fibonacci binary form
Zeckendorf's Theorem
Uniqueness: the representation with no two consecutive Fibonacci numbers is unique. Proof: if F(k) and F(k+1) both used, replace with F(k+2). Repeat until no consecutive pair remains. The greedy algorithm always produces this form.
Fibonacci Coding
Fibonacci coding: represent n in Zeckendorf form, write 1s/0s for used/unused Fibonacci numbers, append '1' as end marker. Used in data compression with the property that no codeword is a prefix of another.
Step-by-Step Instructions
- 1Enter n.
- 2View Zeckendorf form.
- 3See Fibonacci indices.
- 4Check verification.
- 5View binary form.