Commit d0b4d95b authored by Jean-Christophe Filliâtre's avatar Jean-Christophe Filliâtre
Browse files

gallery: Zeckendorf's theorem stated

parent b4aea4a1
......@@ -102,6 +102,15 @@ module SmallestFibAbove
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.
module Zeckendorf
use import int.Fibonacci
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment