Maths Olympiad Prep

Library / /98 of 377

Algebra Difficulty 4.8 AIME Find the answer United States

Problem:

The sequence {an}n1\{a_n\}_{n \geq 1} is defined by an+2=7an+1ana_{n+2} = 7 a_{n+1} - a_n for positive integers nn with initial values a1=1a_1 = 1 and a2=8a_2 = 8. Another sequence, {bn}\{b_n\}, is defined by the rule bn+2=3bn+1bnb_{n+2} = 3 b_{n+1} - b_n for positive integers nn together with the values b1=1b_1 = 1 and b2=2b_2 = 2. Find gcd(a5000,b501)\operatorname{gcd}(a_{5000}, b_{501}).

A number or a short expression. Fractions can be typed as 3/2, and spacing doesn't matter.

Solution

Solution:

Answer: 89. We show by induction that an=F4n2a_n = F_{4n-2} and bn=F2n1b_n = F_{2n-1}, where FkF_k is the kkth$\text{th}\$ Fibonacci number. The base cases are clear. As for the inductive steps, note that
Fk+2=Fk+1+Fk=2Fk+Fk1=3FkFk2 F_{k+2} = F_{k+1} + F_k = 2 F_k + F_{k-1} = 3 F_k - F_{k-2}
and
Fk+4=3Fk+2Fk=8Fk+3Fk2=7FkFk4 F_{k+4} = 3 F_{k+2} - F_k = 8 F_k + 3 F_{k-2} = 7 F_k - F_{k-4}
We wish to compute the greatest common denominator of F19998F_{19998} and F1001F_{1001}. The Fibonacci numbers satisfy the property that gcd(Fm,Fn)=Fgcd(m,n)\operatorname{gcd}(F_m, F_n) = F_{\operatorname{gcd}(m, n)}, which can be proven by noting that they are periodic modulo any positive integer. So since gcd(19998,1001)=11\operatorname{gcd}(19998, 1001) = 11, the answer is F11=89F_{11} = 89.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.