Zeckendorf's theorem

{{short description|On the unique representation of integers as sums of non-consecutive Fibonacci numbers}}

Image:Zeckendorf representations 89px.pngs in Zeckendorf form. Each rectangle has a Fibonacci number {{math|Fj}} as width (blue number in the center) and {{math|Fj−1}} as height. The vertical bands have width 10.]]

In mathematics, Zeckendorf's theorem, named after Belgian amateur mathematician Edouard Zeckendorf, is a theorem about the representation of integers as sums of Fibonacci numbers.

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. More precisely, if {{mvar|N}} is any positive integer, there exist positive integers {{math|ci ≥ 2}}, with {{math|ci + 1 > ci + 1}}, such that

:N = \sum_{i = 0}^k F_{c_i},

where {{mvar|Fn}} is the {{mvar|n}}th Fibonacci number. Such a sum is called the Zeckendorf representation of {{mvar|N}}. The Fibonacci coding of {{mvar|N}} can be derived from its Zeckendorf representation.

For example, the Zeckendorf representation of 64 is

:{{math|1=64 = 55 + 8 + 1}}.

There are other ways of representing 64 as the sum of Fibonacci numbers

:{{math|1=64 = 55 + 5 + 3 + 1}}

:{{math|1=64 = 34 + 21 + 8 + 1}}

:{{math|1=64 = 34 + 21 + 5 + 3 + 1}}

:{{math|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.

History

While the theorem is named after the eponymous author who published his paper in 1972, the same result had been published 20 years earlier by Gerrit Lekkerkerker.{{Cite web |title=Fibonacci bases and Other Ways of Representing Numbers |url=https://r-knott.surrey.ac.uk/Fibonacci/fibrep.html |access-date=2024-03-16 |website=r-knott.surrey.ac.uk}} As such, the theorem is an example of Stigler's Law of Eponymy.

Proof

Zeckendorf's theorem has two parts:

  1. Existence: every positive integer {{mvar|n}} has a Zeckendorf representation.
  2. Uniqueness: no positive integer {{mvar|n}} has two different Zeckendorf representations.

The first part of Zeckendorf's theorem (existence) can be proven by induction. For {{math|1=n = 1, 2, 3}} it is clearly true (as these are Fibonacci numbers), for {{math|1=n = 4}} we have {{math|1=4 = 3 + 1}}. If {{math|n}} is a Fibonacci number then there is nothing to prove. Otherwise there exists {{mvar|j}} such that {{math|Fj < n < Fj + 1 }}. Now suppose each positive integer {{math|a < n}} has a Zeckendorf representation (induction hypothesis) and consider {{math|1=b = nFj }}. Since {{math|b < n}}, {{mvar|b}} has a Zeckendorf representation by the induction hypothesis. At the same time, {{math|1=b = nFj < Fj + 1Fj {{=}} Fj − 1 }} (we apply the definition of Fibonacci number in the last equality), so the Zeckendorf representation of {{mvar|b}} does not contain {{math|Fj − 1 }}, and hence also does not contain {{math|Fj }}. As a result, {{math|n}} can be represented as the sum of {{mvar|Fj}} and the Zeckendorf representation of {{mvar|b}}, such that the Fibonacci numbers involved in the sum are distinct.{{Cite web |last=Henderson |first=Nik |date=July 23, 2016 |title=What Is Zeckendorf's Theorem? |url=https://math.osu.edu/sites/math.osu.edu/files/henderson_zeckendorf.pdf |access-date=August 23, 2024 |website=Ohio State University}}

The second part of Zeckendorf's theorem (uniqueness) requires the following lemma:

:Lemma: The sum of any non-empty set of distinct, non-consecutive Fibonacci numbers whose largest member is {{mvar|Fj}} is strictly less than the next larger Fibonacci number {{math|Fj + 1 }}.

The lemma can be proven by induction on {{mvar|j}}.

Now take two non-empty sets S and T of distinct non-consecutive Fibonacci numbers which have the same sum, \sum_{x \in S} x = \sum_{x \in T} x. Consider sets S' and T' which are equal to S and T from which the common elements have been removed (i. e. S' = S\setminus T and T' = T\setminus S). Since S and T had equal sum, and we have removed exactly the elements from S\cap T from both sets, S' and T' must have the same sum as well, \sum_{x \in S'} x = \sum_{x \in T'} x.

Now we will show by contradiction that at least one of S' and T' is empty. Assume the contrary, i. e. that S' and T' are both non-empty and let the largest member of S' be {{mvar|Fs}} and the largest member of T' be {{mvar|Ft}}. Because S' and T' contain no common elements, {{math|FsFt}}. Without loss of generality, suppose {{math|Fs < Ft}}. Then by the lemma, \sum_{x \in S'} x < F_{s + 1}, and, by the fact that F_{s} < F_{s + 1} \leq F_{t}, \sum_{x \in S'} x < F_t, whereas clearly \sum_{x \in T'} x \geq F_t. This contradicts the fact that S' and T' have the same sum, and we can conclude that either S' or T' must be empty.

Now assume (again without loss of generality) that S' is empty. Then S' has sum 0, and so must T'. But since T' can only contain positive integers, it must be empty too. To conclude: S' = T' = \emptyset which implies S = T, proving that each Zeckendorf representation is unique.

Fibonacci multiplication

One can define the following operation a\circ b on natural numbers {{mvar|a}}, {{mvar|b}}: given the Zeckendorf representations

a=\sum_{i=0}^kF_{c_i}\;(c_i\ge2) and b=\sum_{j=0}^lF_{d_j}\;(d_j\ge2) we define the Fibonacci product a\circ b=\sum_{i=0}^k\sum_{j=0}^lF_{c_i+d_j}.

For example, the Zeckendorf representation of 2 is F_3, and the Zeckendorf representation of 4 is F_4 + F_2 (F_1 is disallowed from representations), so 2 \circ 4 = F_{3+4} + F_{3+2} = 13 + 5 = 18.

(The product is not always in Zeckendorf form. For example, 4 \circ 4 = (F_4 + F_2) \circ (F_4 + F_2) = F_{4+4} + 2F_{4+2} + F_{2+2} = 21 + 2\cdot 8 + 3 = 40 = F_9 + F_5 + F_2.)

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.{{cite journal |first=Donald E. |last=Knuth |authorlink=Donald Knuth |title=Fibonacci multiplication |journal=Applied Mathematics Letters |volume=1 |issue=1 |year=1988 |pages=57–60 | doi=10.1016/0893-9659(88)90176-0 |zbl=0633.10011 |issn=0893-9659 |url=http://www.cs.umb.edu/~rvetro/vetroBioComp/compression/FIBO/KnuthFibb.pdf|doi-access=free }}

Representation with negafibonacci numbers

The Fibonacci sequence can be extended to negative index {{mvar|n}} using the rearranged recurrence relation

:F_{n-2} = F_n - F_{n-1},

which yields the sequence of "negafibonacci" numbers satisfying

:F_{-n} = (-1)^{n+1} F_n.

Any integer can be uniquely represented{{cite conference |last=Knuth |first=Donald |authorlink=Donald Knuth |title=Negafibonacci Numbers and the Hyperbolic Plane |conference=Annual meeting, Mathematical Association of America |location=The Fairmont Hotel, San Jose, CA |date=2008-12-11 |url=http://www.allacademic.com/meta/p206842_index.html}} as a sum of negafibonacci numbers in which no two consecutive negafibonacci numbers are used. For example:

  • {{math|1=−11 = F−4 + F−6 = (−3) + (−8)}}
  • {{math|1=12 = F−2 + F−7 = (−1) + 13}}
  • {{math|1=24 = F−1 + F−4 + F−6 + F−9 = 1 + (−3) + (−8) + 34}}
  • {{math|1=−43 = F−2 + F−7 + F−10 = (−1) + 13 + (−55)}}
  • 0 is represented by the empty sum.

{{math|1=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 {{mvar|x}}, the {{mvar|n}}th digit is 1 if {{mvar|F−n}} appears in the sum that represents {{mvar|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 {{math|1=24 = F−1 + F−4 + F−6 + F−9 }}. The integer {{mvar|x}} is represented by a string of odd length if and only if {{math|x > 0}}.

See also

References

{{reflist}}

  • {{cite journal | zbl=0252.10011 | last=Zeckendorf | first=E. | title=Représentation des nombres naturels par une somme de nombres de Fibonacci ou de nombres de Lucas | language=French | journal=Bull. Soc. R. Sci. Liège | volume=41 | pages=179–182 | year=1972 | issn=0037-9565 }}