Math 2.0

Number theory Theorem

Lamé's theorem

Builds on Euclidean algorithmFibonacci sequenceGolden ratio

Statement

Let (Fn)(F_n) be the Fibonacci numbers, with F1=F2=1F_1 = F_2 = 1 and Fn+2=Fn+1+FnF_{n+2} = F_{n+1} + F_n. Let a>b≥1a > b \ge 1 be integers, and suppose the Euclidean algorithm on (a,b)(a, b) performs exactly N≥1N \ge 1 divisions with remainder before reaching remainder 00. Then b≥FN+1b \ge F_{N+1} and a≥FN+2a \ge F_{N+2}. Consequently, NN is at most 55 times the number of decimal digits of bb.

Remarks

The proof is by induction on NN. The last division has quotient at least 22, because its dividend exceeds its divisor, and every earlier quotient is at least 11. 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, FN+1≥φN−1F_{N+1} \ge \varphi^{N-1} with φ=(1+5)/2\varphi = (1 + \sqrt 5)/2 the golden ratio, so N−1≤log⁡φb<4.79log⁡10bN - 1 \le \log_\varphi b < 4.79 \log_{10} b; if bb has dd digits this gives N<1+4.79 dN < 1 + 4.79\, d, hence N≤5dN \le 5d since NN is an integer.

The bound is sharp: the pair (FN+2,FN+1)(F_{N+2}, F_{N+1}) needs exactly NN divisions. For example, (13,8)(13, 8) gives 13=1⋅8+513 = 1 \cdot 8 + 5, 8=1⋅5+38 = 1 \cdot 5 + 3, 5=1⋅3+25 = 1 \cdot 3 + 2, 3=1⋅2+13 = 1 \cdot 2 + 1, 2=2⋅1+02 = 2 \cdot 1 + 0, which is N=5N = 5 divisions with b=8=F6b = 8 = F_6.

Going deeper

For a student

The theorem is one of the first results of the analysis of algorithms. It shows that computing gcd⁡(a,b)\gcd(a, b) takes O(log⁡b)O(\log b) 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
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Euclidean algorithm concept
  2. Fibonacci sequence example
  3. Golden ratio object
  4. Lamé's theorem statement

Further reading

  1. Web https://en.wikipedia.org/wiki/Euclidean_algorithm
About this page
TagMVSDN4DT97
URIm2://MVSDN4DT97
Kindstatement, theorem
WritingW0 stub
MSC11A05, 11Y16, 68W40
StatusThis copy of the site has no build data. Run m2 status MVSDN4DT97.
AboutEuclidean algorithm
UsesEuclidean algorithm, Fibonacci sequence, Golden ratio
Changed3 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.