Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Why3
why3
Commits
d0b4d95b
Commit
d0b4d95b
authored
Jul 06, 2015
by
Jean-Christophe Filliâtre
Browse files
gallery: Zeckendorf's theorem stated
parent
b4aea4a1
Changes
1
Show whitespace changes
Inline
Side-by-side
examples/fibonacci.mlw
View file @
d0b4d95b
...
...
@@ -102,6 +102,15 @@ module SmallestFibAbove
end
(**
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.
Cf https://en.wikipedia.org/wiki/Zeckendorf%27s_theorem
*)
module Zeckendorf
use import int.Fibonacci
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment