Math 2.0

Number theory Proof

Proof of the gcd formula for Fibonacci numbers by the Euclidean algorithm

Builds on Fibonacci sequenceGreatest common divisorAddition formula for Fibonacci numbersConsecutive Fibonacci numbers are coprimeGeneralized Euclid's lemmaCoprime integersStrong inductionEuclidean algorithm

Proof

We show that gcd⁡(Fa,Fb)\gcd(F_a, F_b) obeys the subtraction step of the Euclidean algorithm, and argue by strong induction.

  1. Let FkF_k be the Fibonacci numbers. They are natural numbers. Two pairs of integers with the same common divisors have the same greatest common divisor.
  2. For integers x,y,tx, y, t, the pairs (x,y)(x, y) and (x,y+tx)(x, y + t x) have the same common divisors. Indeed, d∣xd \mid x and d∣yd \mid y imply d∣y+txd \mid y + tx, and conversely d∣xd \mid x and d∣y+txd \mid y + tx imply d∣yd \mid y.
  3. Let x,y,cx, y, c be integers with gcd⁡(x,y)=1\gcd(x, y) = 1. We claim that (x,yc)(x, yc) and (x,c)(x, c) have the same common divisors.
  4. A common divisor of xx and cc divides ycyc. Conversely, let d∣xd \mid x and d∣ycd \mid yc. A common divisor of dd and yy divides xx and yy, so it is ±1\pm 1. Also dd and yy are not both 00, since otherwise x=0=yx = 0 = y and gcd⁡(x,y)=0\gcd(x, y) = 0. Thus dd and yy are coprime.
  5. By the generalized Euclid's lemma, d∣cd \mid c. This proves the claim of step 3.
  6. Let a≥1a \ge 1 and c≥0c \ge 0. The addition formula with m=a−1m = a - 1 and n=cn = c gives Fa+c=Fa−1Fc+FaFc+1F_{a+c} = F_{a-1} F_c + F_a F_{c+1}.
  7. By step 2 with t=−Fc+1t = -F_{c+1}, gcd⁡(Fa,Fa+c)=gcd⁡(Fa,Fa−1Fc)\gcd(F_a, F_{a+c}) = \gcd(F_a, F_{a-1} F_c).
  8. By consecutive Fibonacci numbers are coprime, gcd⁡(Fa,Fa−1)=1\gcd(F_a, F_{a-1}) = 1. By step 3, gcd⁡(Fa,Fa−1Fc)=gcd⁡(Fa,Fc)\gcd(F_a, F_{a-1} F_c) = \gcd(F_a, F_c).
  9. So gcd⁡(Fa,Fb)=gcd⁡(Fa,Fb−a)\gcd(F_a, F_b) = \gcd(F_a, F_{b-a}) whenever 1≤a≤b1 \le a \le b, and also gcd⁡(a,b)=gcd⁡(a,b−a)\gcd(a, b) = \gcd(a, b - a) by step 2.
  10. For a natural number xx, gcd⁡(x,0)=x\gcd(x, 0) = x. For x>0x > 0 the largest divisor of xx is xx, and gcd⁡(0,0)=0\gcd(0, 0) = 0 by convention.
  11. Let Q(s)Q(s) be the claim that gcd⁡(Fa,Fb)=Fgcd⁡(a,b)\gcd(F_a, F_b) = F_{\gcd(a, b)} for all natural numbers a,ba, b with a+b=sa + b = s. We prove Q(s)Q(s) for all ss by strong induction.
  12. Fix ss and assume Q(s′)Q(s') for all s′<ss' < s. Let a+b=sa + b = s.
  13. If a=0a = 0, then by step 10, gcd⁡(F0,Fb)=gcd⁡(0,Fb)=Fb=Fgcd⁡(0,b)\gcd(F_0, F_b) = \gcd(0, F_b) = F_b = F_{\gcd(0, b)}. The case b=0b = 0 is the same with the roles exchanged.
  14. If 1≤a≤b1 \le a \le b, then a+(b−a)=b<sa + (b - a) = b < s. By step 9 and Q(b)Q(b), gcd⁡(Fa,Fb)=gcd⁡(Fa,Fb−a)=Fgcd⁡(a,b−a)=Fgcd⁡(a,b)\gcd(F_a, F_b) = \gcd(F_a, F_{b-a}) = F_{\gcd(a, b-a)} = F_{\gcd(a, b)}.
  15. If 1≤b<a1 \le b < a, the same argument with aa and bb exchanged applies, since gcd⁡\gcd is symmetric in its two arguments.
  16. So Q(s)Q(s) holds. By strong induction, gcd⁡(Fm,Fn)=Fgcd⁡(m,n)\gcd(F_m, F_n) = F_{\gcd(m, n)} for all natural numbers mm and nn.

Idea

The addition formula writes Fa+cF_{a+c} as Fa−1FcF_{a-1} F_c plus a multiple of FaF_a. Since Fa−1F_{a-1} and FaF_a are coprime, gcd⁡(Fa,Fa+c)=gcd⁡(Fa,Fc)\gcd(F_a, F_{a+c}) = \gcd(F_a, F_c). So the indices follow the Euclidean algorithm, which ends at gcd⁡(m,n)\gcd(m, n).

Reading path

To understand this page from the ground up, read these 31 pages in order. The foundations come first. The path takes the proofs Proof of Bézout's identity, Proof of the generalized Euclid's lemma, Proof of the commutativity of addition by induction, Proof of the addition formula for Fibonacci numbers by induction, Proof of strong induction from ordinary induction, Proof of the well-ordering principle from strong induction, Proof of the division algorithm, Proof that consecutive Fibonacci numbers are coprime.

Show the path as a graph
Definition by recursion, concept, no evidence levelDefinition by recursi…conceptDivisibility, definition, no evidence levelDivisibilitydefinitionEuclidean algorithm, concept, no evidence levelEuclidean algorithmconceptFibonacci sequence, example, no evidence levelFibonacci sequenceexampleMathematical induction, concept, no evidence levelMathematical inductionconceptNatural numbers, object, no evidence levelNatural numbersobjectPeano axioms, concept, no evidence levelPeano axiomsconceptGreatest common divisor, definition, no evidence levelGreatest common divis…definitionProof of the addition formula for Fibonacci numbers by induction, proof, no evidence levelProof of the addition…proofSuccessor function, definition, no evidence levelSuccessor functiondefinitionCoprime integers, definition, no evidence levelCoprime integersdefinitionAddition formula for Fibonacci numbers, statement, no evidence levelAddition formula for …statementAddition of natural numbers, definition, no evidence levelAddition of natural n…definitionThe successor function is injective, statement, no evidence levelThe successor functio…statementZero is not a successor, statement, no evidence levelZero is not a success…statementProof that consecutive Fibonacci numbers are coprime, proof, no evidence levelProof that consecutiv…proofProof of the commutativity of addition by induction, proof, no evidence levelProof of the commutat…proofOrder on the natural numbers, definition, no evidence levelOrder on the natural …definitionConsecutive Fibonacci numbers are coprime, statement, no evidence levelConsecutive Fibonacci…statementCommutativity of addition, statement, no evidence levelCommutativity of addi…statementProof of strong induction from ordinary induction, proof, no evidence levelProof of strong induc…proofStrong induction, statement, no evidence levelStrong inductionstatementProof of the well-ordering principle from strong induction, proof, no evidence levelProof of the well-ord…proofWell-ordering principle, statement, no evidence levelWell-ordering princip…statementProof of the division algorithm, proof, no evidence levelProof of the division…proofDivision algorithm, statement, no evidence levelDivision algorithmstatementProof of Bézout's identity, proof, no evidence levelProof of Bézout's ide…proofBézout's identity, statement, no evidence levelBézout's identitystatementProof of the generalized Euclid's lemma, proof, no evidence levelProof of the generali…proofGeneralized Euclid's lemma, statement, no evidence levelGeneralized Euclid's …statementProof of the gcd formula for Fibonacci numbers by the Euclidean algorithm, proof, no evidence levelProof of the gcd form…proof
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. Definition by recursion concept
  2. Divisibility definition
  3. Euclidean algorithm concept
  4. Fibonacci sequence example
  5. Mathematical induction concept
  6. Natural numbers object
  7. Peano axioms concept
  8. Greatest common divisor definition
  9. Proof of the addition formula for Fibonacci numbers by induction proof
  10. Successor function definition
  11. Coprime integers definition
  12. Addition formula for Fibonacci numbers statement
  13. Addition of natural numbers definition
  14. The successor function is injective statement
  15. Zero is not a successor statement
  16. Proof that consecutive Fibonacci numbers are coprime proof
  17. Proof of the commutativity of addition by induction proof
  18. Order on the natural numbers definition
  19. Consecutive Fibonacci numbers are coprime statement
  20. Commutativity of addition statement
  21. Proof of strong induction from ordinary induction proof
  22. Strong induction statement
  23. Proof of the well-ordering principle from strong induction proof
  24. Well-ordering principle statement
  25. Proof of the division algorithm proof
  26. Division algorithm statement
  27. Proof of Bézout's identity proof
  28. Bézout's identity statement
  29. Proof of the generalized Euclid's lemma proof
  30. Generalized Euclid's lemma statement
  31. Proof of the gcd formula for Fibonacci numbers by the Euclidean algorithm proof

Where this leads

1 page builds on this one.

Further reading

  1. Web https://proofwiki.org/wiki/GCD_of_Fibonacci_Numbers
About this page
Tag28FB6V6JNV
URIm2://28FB6V6JNV
Kindproof
WritingW0 stub
MSC11B39
ProvesGcd of Fibonacci numbers
UsesFibonacci sequence, Greatest common divisor, Addition formula for Fibonacci numbers, Consecutive Fibonacci numbers are coprime, Generalized Euclid's lemma, Coprime integers, Strong induction, Euclidean algorithm
Changed4 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.