Exercise 1999Number theory › Divisibility and gcdOlympiadAdded 5 Nov 2026
gcd(F_m, F_n) = F_gcd(m,n)
#Fibonacci numbers#gcd#Euclidean algorithm#divisibility sequences
Statement
Let , , . Prove that for all positive integers ,
Hint
Prove first the addition formula , and that consecutive Fibonacci numbers are coprime. Then imitate the Euclidean algorithm.
Show solutionHide solution
Solution
Step 1: addition formula. For and : . Induction on .
Step 2: consecutive terms are coprime. .
Step 3: subtractive Euclid. Let . Apply the formula with , :
Hence . Since (Step 2), any common divisor of and is a common divisor of and , so
Step 4: conclusion. Applying Step 3 repeatedly mimics the subtractive Euclidean algorithm on the indices; it ends at with , and .
Check. .
Remark. Consequently, if is prime then is prime, or .
Lesson. A sequence with the "addition formula" structure inherits the Euclidean algorithm on its indices.