Exercise · Volume 1 · 1.2.8-34
Exercise 1.2.8-34
not stated yet in Lean solution written
| Rating | M24 |
|---|---|
| Markers | M (mathematical) |
| Kind | K1, prove: show that a stated fact is true from the written solution |
| Section | Section 1.2.8 of Volume 1. Companion chapter: Fibonacci numbers |
The task
Prove that every positive integer is in exactly one way a sum of Fibonacci numbers with , , and .
The exact wording is in your copy of the book.
Hints
Open one hint at a time. Try the exercise again after each.
Hint 1
First bound the sum of any such representation by the next Fibonacci number.
Hint 2
For existence take the largest Fibonacci number that does not exceed . For uniqueness compare the largest terms of two representations.
Solution
Show the solution
Call a finite list with gaps at least admissible.
Bound. For an admissible list, . Induction on . For it is , true because . For the induction hypothesis gives , and . So the sum is less than .
Existence, by induction on . For use . For let be the largest index with , so and . If , the list is the representation. Otherwise . By induction has an admissible list. Its largest term satisfies , so , that is, . Put in front of this list. The result is admissible.
Uniqueness. Let two admissible lists have the sum , with first indices and , and suppose . By the bound , a contradiction. So . Remove from both. The remaining lists are admissible with the same sum , and by induction on they are equal. (If the sum is , both lists are empty, because every term is at least .)
Check
For : , and ; , and . So . For : . A python search over all admissible index sets with sum at most finds exactly one set for every in .
Remarks
This is the Zeckendorf representation. The same argument works for the numbers (the binary system) with the bound . Exercises 1.2.8-35, 1.2.8-37 and 1.2.8-41 use this system.
This solution is checked, and a person has not reviewed it yet. The source.
In Lean
not stated yet The exercise is not stated in Lean yet.
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.