Maths Olympiad Prep

Library / /682 of 860

Algebra Difficulty 5.4 AIME, harder Find the answer

The sequence {an}n1\left\{a_{n}\right\}_{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}\left\{b_{n}\right\}, 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}\left(a_{5000}, b_{501}\right).

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

Solution

We show by induction that an=F4n2a_{n}=F_{4 n-2} and bn=F2n1b_{n}=F_{2 n-1}, where FkF_{k} is the kk th Fibonacci number. The base cases are clear. As for the inductive steps, note that Fk+2=Fk+1+Fk=2Fk+Fk1=3FkFk2F_{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=7FkFk4F_{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,\operatorname{gcd}\left(F_{m}, F_{n}\right)=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 F_{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: Omni-MATH, licensed Apache-2.0. Statement and solution reproduced as published; topic and difficulty added by this site.