The Fibonacci sequence is defined by F 1 = 1 , F 2 = 1 and F n + 2 = F n + 1 + F n for n ≥ 1 .
Find the greatest common divisor of F 4 8 4 and F 2 0 1 3 .
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
An interesting property of Fibonacci Numbers is that:
gcd
(
a
m
,
a
n
)
=
a
gcd
(
m
,
n
)
.
Here
a
n
denotes
n
t
h
Fibonacci Number.
It's proof is based on four lemmas
*Lemma 1: *
For integers
n
,
m
,
gcd
(
m
,
n
)
=
gcd
(
m
,
n
±
m
)
.
This because any common factor of
n
,
m
is also a factor of
n
±
m
*Lemma 2: *
For
n
>
0
,
gcd
(
a
n
,
a
n
−
1
)
=
1
In other words, any two consecutive Fibonacci numbers are mutually prime. It can be easily proved by induction and Lemma 1.
*Lemma 3: *
Assume,
gcd
(
m
,
n
)
=
1
, then
gcd
(
m
,
n
k
)
=
gcd
(
n
,
k
)
.
This is because any mutual factor of
m
and
n
k
divides
k
, because it can't divide
n
.
*Lemma 4: *
a
m
+
n
=
a
m
a
n
+
1
+
a
m
−
1
a
n
.
. For its proof visit
here
Now proving the main proposition:
Let then n = m k + r , 0 ≤ r < m . We have
gcd ( a m , a n ) = gcd ( a m k + 1 a r + a m k a r − 1 ) = gcd ( a m , a m k + 1 a r ) = gcd ( a m , a r ) d u e t o Lemma 4 b e c a u s e a m ∣ a m k d u e t o Lemma 3 .
If we lose the functional symbol a , the subscripts form a step in Euclid's algorithm. As there, the process can continue until the remainder r becomes zero. At this step we claim that the previous (the last non-zero) remainder is exactly the greatest common divisor of the two original numbers. What we showed so far is that applying Euclid's algorithm to a m and a n goes exactly in parallel with applying it to the subscripts. So when eventually we arrive at, say, gcd ( m , n ) = gcd ( s , 0 ) , and declare that gcd ( m , n ) = s , we can at the same time to declare that gcd ( a m , a n ) = gcd ( a s , 0 ) and, hence, that gcd ( a m , a n ) = gcd ( a s , 0 ) = a s = a gcd ( m , n ) .
Now the problem is to find gcd ( a 4 8 4 , a 2 0 1 3 ) which will be equal to a gcd ( 4 8 4 , 2 0 1 3 ) = a 1 1 = 8 9
Observe the recursion formula: a n = a n − 1 + a n − 2 = 2 a n − 2 + a n − 3 = 3 a n − 3 + 2 a n − 4 = ⋯ = a m + 1 a n − m + a m a n − m − 1 ----(1)
Let ( a , b ) means the greatest common divisor of a and b .
( a n , a n + 1 ) = ( a n + 1 − a n , a n ) = ( a n − 1 , a n ) = ⋯ = ( a 1 , a 2 ) = ( 1 , 1 ) = 1 Therefore, the consecutive terms are coprime numbers.
By (1), a 2 0 1 3 = a 1 5 3 0 a 4 8 4 + a 1 5 2 9 a 4 8 3
By Euclidean algorithm, ( a 4 8 4 , a 2 0 1 3 ) = ( a 4 8 4 , a 1 5 2 9 a 4 8 3 ) = ( a 4 8 4 , a 1 5 2 9 )
( ∵ a 4 8 3 and a 4 8 4 are coprime numbers as we showed it.)
By watching this process carefully, we can understand that ( a B , a A ) = ( a B , a r ) provided that A ≥ B and r is the remainder when A is divided by B .
Apply this in calculation: ( a 4 8 4 , a 2 0 1 3 ) = ( a 4 8 4 , a 7 7 ) = ( a 2 2 , a 7 7 ) = ( a 2 2 , a 1 1 ) = a 1 1 = 8 9
cf. In the algorithm, we can define a 0 = 0 .
GCD of two fibonacci numbers is simply the fibonacci number of GCD of that two numbers.. i.e. GCD of Fn and Fm will be F(gcd of m and n). Gcd of 484 and 2013 is 11. Hence ans is F11 = 89.
Because the Fibonacci Sequence satisfies g c d ( F m , F n ) = F g cd ( m , n ) then we need only find the greatest common divisor of 484 and 2013. Looking at the prime factorizations:
2 0 1 3 = 3 ∗ 1 1 ∗ 6 1
4 8 4 = 2 ∗ 2 ∗ 1 1 ∗ 1 1
We can find the greatest common divisor by listing all the prime factors they have in common. In this case the only prime factor they have in common is 11.
That does not mean the gcd of the two terms is 11, but that F 1 1 will be our gcd.
After making a short list of the Fibonacci Sequence:
1 , 1 , 2 , 3 , 5 , 8 , 1 3 , 2 1 , 3 4 , 5 5 , 8 9 . . .
We see that 89 will be our greatest common divisor.
The Fibonacci Sequence is an example of Divisibility Sequence
Thus,
g c d ( F m , F n ) = F g c d ( m , n )
We have to find g c d ( a 4 8 4 , a 2 0 1 3 ) which is same as a g c d ( 4 8 4 , 2 0 1 3 )
So, g c d ( 4 8 4 , 2 0 1 3 ) = 1 1 .
Now we have to find a 1 1 which is the answer to our question.
a 1 1 can be easily calculated out as 8 9 .
Hence g c d ( a 4 8 4 , a 2 0 1 3 ) = 8 9
So that we can find the desired value, we must use the following formula:
GCD ( a m , a n ) = a GCD ( m , n ) , which was tested in 1876 by the mathematician F. Edouard. A. Lucas (a demonstration (in portuguese) is in the 2.5 section of here , whence we have:
GCD ( a 2 0 1 3 , a 4 8 4 ) = a GCD ( 2 0 1 3 , 4 8 4 )
Let's calculate the GCD ( 2 0 1 3 , 4 8 4 ) , for this, we'll use the Euclidean Algorithm:
GCD ( 2 0 1 3 , 4 8 4 ) = GCD ( 2 0 1 3 − 4 ⋅ 4 8 4 , 4 8 4 ) = GCD ( 7 7 , 4 8 4 ) = GCD ( 7 7 , 4 8 4 − 6 ⋅ 7 7 ) = GCD ( 7 7 , 2 2 ) = 1 1
Whence we have a GCD ( 2 0 1 3 , 4 8 4 ) = a 1 1 = 8 9 . Therefore:
GCD ( a 2 0 1 3 , a 4 8 4 ) = 8 9
This number (89) is the desired result.
For this question we can use the theorem g cd ( f m , f n ) = f g cd ( m , n )
Thus the answer to this question is g cd ( a 4 8 4 , a 2 0 1 3 ) = a g cd ( 4 8 4 , 2 0 1 3 ) = a 1 1 = 8 9
A well-substantiated proof of the theorem used above can be found at the link GCD of Fibonnacci numbers
The GCD of any two Fibonacci numbers f x and f y is f g cd ( f x , f y ) . Therefore, the GCD of f 4 8 4 and f 2 0 1 3 is f 1 1 = 8 9 .
Let's observe the first few Fibonacci numbers.
F 1 = 1
F 2 = 1
F 3 = 2
F 4 = 3
F 5 = 5
F 6 = 8
F 7 = 1 3
F 8 = 2 1
F 9 = 3 4
F 1 0 = 5 5
F 1 1 = 8 9
F 1 2 = 1 4 4
F 1 3 = 2 3 3
F 1 4 = 3 7 7
⋮
and so on.
From the above list, I observed (but couldn't prove it properly) that gcd ( F a , F b ) = F gcd ( a , b )
So, gcd ( F 4 8 4 , F 2 0 1 3 ) = F gcd ( 4 8 4 , 2 0 1 3 )
= F 1 1
= 8 9
Proof : In the list of Fibonacci Numbers, we see an amazing pattern.
F 3 , F 6 , F 9 , F 1 2 , … F 3 n are divisible by F 3 , i.e. 2 ( n ∈ N )
Similarly,
F 4 , F 8 , F 1 2 , F 1 6 , … F 4 n are divisible by F 4 , i.e. 3 ( n ∈ N )
Similarly,
F 5 , F 1 0 , F 1 5 , F 2 0 , … F 5 n are divisible by F 5 , i.e. 5 ( n ∈ N )
This pattern can be generalized.
F k , F 2 k , F 3 k , F 4 k , … will be divisible by F k ( k ∈ N )
Now let's take any two Fibonacci numbers F a and F b
The prime factorization of a would be l 2 p ⋅ 3 q ⋅ 5 r …
Similarly, the prime factorization of b would be l 2 x ⋅ 3 y ⋅ 5 z …
Suppose gcd ( a , b ) = 2 x ⋅ 3 q ⋅ 5 z … .
F a would be divisible with F 2 p , F 3 q , F 5 r …
Similarly, F b would be divisible with F 2 x , F 3 y , F 5 z …
Therefore gcd ( F a , F b ) will be divisible by F 2 x , F 3 q , F 5 z …
gcd ( F a , F b ) = F 2 x ⋅ 3 q ⋅ 5 z …
gcd ( F a , F b ) = F gcd ( a , b )
Log in to reply
Nice reference, thank you!
courtesy of wikipedia: gcd( F(m), F(n) ) = F( gcd(m, n) )
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
|
Answer: 89
Greatest common divisor formula for Fibonacci numbers are,
gcd(Fm, Fn) = F(gcd(m,n))
In this case GCD(484, 2013)=11 and 11th Fibonacci number is 89. So this is the answer.
The proof for this formula can be found here: http://www.math.hmc.edu/funfacts/ffiles/20004.5.shtml
We use the following result: For For m,n≥1, gcd(f {m},f {n})=f {gcd(m,n)} Here m=484, n=2013 gcd(484,2013)=11 f {11} = 89
g c d ( f m , f n ) = f g c d ( m , n ) .
g c d ( 4 8 4 , 2 0 1 3 ) = 1 1 , so the ans is f 1 1 = 8 9
G C D ( F m , F n ) = F G C D ( m , n )
G C D ( 4 8 4 , 2 0 1 3 ) = 1 1
F 1 1 = 8 9
Problem Loading...
Note Loading...
Set Loading...
Euclidean algorithm: If a = b t + r , for integers t and r , then g cd ( a , b ) = g cd ( b , r ) .
By Euclidean algorithm, we deduce that f n and f n + 1 are coprime integers, using induction: f n + 1 = f n ∗ 1 + f n − 1 ⇒ g cd ( f n + 1 , f n ) = g cd ( f n , f n − 1 ) = g cd ( f n − 1 , f n − 2 ) = . . . = g cd ( f 2 , f 1 ) = 1 .
By Binet formula for Fibonacci numbers, we deduce that f m + n = f m ∗ f n + 1 + f n ∗ f m − 1
By those two lemmas, we deduce that: \begin{array}{l l l} \gcd(f_m, f_{m+n}) & = \gcd(f_m; f_m * f_{n+1} + f_n * f_{m-1}) & \mbox{(binet formula)} \\ & = \gcd(f_m; f_n * f_{m-1}) & \mbox{ (euclidean algorithm)} \\ & = \gcd(f_m; f_n) & \mbox{(since f_m and f_{m-1} are coprime)}\\ \end{array}
We can continue reducing the indices until we reach g cd ( f i ; f i ) (proceed and we get f_0). Now we can declare that g cd ( f m ; f n ) = f i , and by the way we reduced the indices, we can conclude that i = g cd ( m , n ) . Hence, g cd ( f m ; f n ) = f g cd ( m , n ) , so
g cd ( f 4 8 4 ; f 2 0 1 3 ) = f g cd ( 4 8 4 ; 2 0 1 3 ) = f 1 1 = 8 9 .
[Latex edits]