Lamé's theorem
Statement
Let be the Fibonacci numbers, with and . Let be integers, and suppose the Euclidean algorithm on performs exactly divisions with remainder before reaching remainder . Then and . Consequently, is at most times the number of decimal digits of .
Remarks
The proof is by induction on . The last division has quotient at least , because its dividend exceeds its divisor, and every earlier quotient is at least . Read backwards, each number in the chain of remainders is at least the sum of the next two, so the chain dominates the Fibonacci numbers. For the digit bound, with the golden ratio, so ; if has digits this gives , hence since is an integer.
The bound is sharp: the pair needs exactly divisions. For example, gives , , , , , which is divisions with .
Going deeper
For a student
The theorem is one of the first results of the analysis of algorithms. It shows that computing takes division steps, so the Euclidean algorithm runs in time polynomial in the length of the input. The same bound holds for the extended Euclidean algorithm, which performs the same divisions.
Reading path
To understand this page from the ground up, read these 4 pages in order. The foundations come first.
Show the path as a graph
- no evidence level
- Euclidean algorithm concept
- Fibonacci sequence example
- Golden ratio object
- Lamé's theorem statement
Further reading
About this page
| Tag | MVSDN4DT97 |
|---|---|
| URI | m2://MVSDN4DT97 |
| Kind | statement, theorem |
| Writing | W0 stub |
| MSC | 11A05, 11Y16, 68W40 |
| Status | This copy of the site has no build data. Run m2 status MVSDN4DT97. |
| About | Euclidean algorithm |
| Uses | Euclidean algorithm, Fibonacci sequence, Golden ratio |
| Changed | 3 November 2026 |
Markdown · JSON · Edit on GitHub
What this page needs for W1
- an inventory row: the row of the inventory that the node accounts for (0 of 1)
- a source with a locator (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.
What links here
No page links to this page yet.