Zeckendorf's theorem
Zeckendorf's theorem, named after amateur mathematician Edouard Zeckendorf, is a result about the representation of integers as sums of Fibonacci numbers. It 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. More precisely, if N is any positive integer, there exist positive integers ci ≥ 2, with ci + 1 > ci + 1, such that
where Fn is the nth Fibonacci number. Such a sum is called the Zeckendorf representation of N. The Fibonacci coding of N can be derived from its Zeckendorf representation.
For example, the Zeckendorf representation of 64 is
- 64 = 55 + 8 + 1.
There are other ways of representing 64 as the sum of Fibonacci numbers
- 64 = 55 + 5 + 3 + 1
- 64 = 34 + 21 + 8 + 1
- 64 = 34 + 21 + 5 + 3 + 1
- 64 = 34 + 13 + 8 + 5 + 3 + 1
but these are not Zeckendorf representations because 34 and 21 are consecutive Fibonacci numbers, as are 5 and 3.
For any given positive integer, its Zeckendorf representation can be found by using a greedy algorithm, choosing the largest possible Fibonacci number at each stage. For instance, 11 = 8 + 3, whereas 13 = 13 (not 8 + 5), and 31 = 21 + 8 + 2.
Proof
Zeckendorf's theorem has two parts:
- Existence: every positive integer n has a Zeckendorf representation.
- Uniqueness: no positive integer n has two different Zeckendorf representations.
The existence part of Zeckendorf's theorem can be proven by induction. The base case has the Zeckendorf representation . Assuming that all have a Zeckendorf representation let be such that . Then, . Therefore, there exists a Zeckendorf representation for . The assumption also implies that . Therefore, the largest Fibonaci number in the Zeckendorf representation of must be strictly less than . This implies that the Zenckendorf representation of together with is a valid Zeckendorf representation for .
To prove uniqueness, one can use the identity
This can be proven by induction, or by a counting argument in which one realizes both sides of the identity are two ways of counting the number of ways of writing using sums of and at least one .
To get a contradiction, assume that there are integers , for , and , for , such that , , , and
The lengths and can be assumed to be the smallest possible.
If , that is if the largest terms and of the two Zeckendorf representations are equal, then they can be deleted from both representations and obtain two new Zeckendorf representations that are equal and have fewer number of summands. This contradicts that were the smallest possible. Therefore, . By swapping the names and , if necessary, one can assume that . However, the sum
Here the first inequality compares the sum with that of the Zeckendorf representation, which largest term is , and uses the largest Fibonaci numbers allowed. That is, using every second Fibonacci number descending from and stopping at or . The equation is the identity above. This shows that, even if the sum uses all the largest Fibonacci numbers allowed, its sum is still strictly less than the largest term in the sum . Therefore, one cannot have two different Zeckendorf representations giving the same sum.
Fibonacci multiplication
One can define the following operation on natural numbers a, b: given the Zeckendorf representations and we define the Fibonacci product
For example, the Zeckendorf representation of 2 is , and the Zeckendorf representation of 4 is ( is disallowed from representations), so
(The product is not always in Zeckendorf form. For example, )
A simple rearrangement of sums shows that this is a commutative operation; however, Donald Knuth proved the surprising fact that this operation is also associative.[1]
Representation with negafibonacci numbers
The Fibonacci sequence can be extended to negative index n using the rearranged recurrence relation
which yields the sequence of "negafibonacci" numbers satisfying
Any integer can be uniquely represented[2] as a sum of negafibonacci numbers in which no two consecutive negafibonacci numbers are used. For example:
- −11 = F−4 + F−6 = (−3) + (−8)
- 12 = F−2 + F−7 = (−1) + 13
- 24 = F−1 + F−4 + F−6 + F−9 = 1 + (−3) + (−8) + 34
- −43 = F−2 + F−7 + F−10 = (−1) + 13 + (−55)
- 0 is represented by the empty sum.
0 = F−1 + F−2 , for example, so the uniqueness of the representation does depend on the condition that no two consecutive negafibonacci numbers are used.
This gives a system of coding integers, similar to the representation of Zeckendorf's theorem. In the string representing the integer x, the nth digit is 1 if F−n appears in the sum that represents x; that digit is 0 otherwise. For example, 24 may be represented by the string 100101001, which has the digit 1 in places 9, 6, 4, and 1, because 24 = F−1 + F−4 + F−6 + F−9 . The integer x is represented by a string of odd length if and only if x > 0.
See also
References
- ^ Knuth, Donald E. (1988). "Fibonacci multiplication" (PDF). Applied Mathematics Letters. 1 (1): 57–60. doi:10.1016/0893-9659(88)90176-0. ISSN 0893-9659. Zbl 0633.10011.
- ^ Knuth, Donald (2008-12-11). Negafibonacci Numbers and the Hyperbolic Plane. Annual meeting, Mathematical Association of America. The Fairmont Hotel, San Jose, CA.
- Zeckendorf, E. (1972). "Représentation des nombres naturels par une somme de nombres de Fibonacci ou de nombres de Lucas". Bull. Soc. R. Sci. Liège (in French). 41: 179–182. ISSN 0037-9565. Zbl 0252.10011.
External links
- Weisstein, Eric W. "Zeckendorf's Theorem". MathWorld.
- Weisstein, Eric W. "Zeckendorf Representation". MathWorld.
- Zeckendorf's theorem at cut-the-knot
- G.M. Phillips (2001) [1994], "Zeckendorf representation", Encyclopedia of Mathematics, EMS Press
- OEIS sequence A101330 (Knuth's Fibonacci (or circle) product)
This article incorporates material from proof that the Zeckendorf representation of a positive integer is unique on PlanetMath, which is licensed under the Creative Commons Attribution/Share-Alike License.