Skip to main content

1985 AIME Problem 5

Problem 5 of 15EasierAlgebraProblem-Solving Techniques

A sequence of integers a1,a_1, a2,a_2, a3,a_3, …\ldots is chosen so that an=an−1−an−2a_n=a_{n-1}-a_{n-2} for each n≥3.n\geq3. What is the sum of the first 20012001 terms of this sequence if the sum of the first 14921492 terms is 1985,1985, and the sum of the first 19851985 terms is 1492?1492?

Your answer

Integer from 0 to 999
Show solution

Solution

Put a1=xa_1=x and a2=y.a_2=y. The first six terms are x, y, y−x, −x, −y, x−y, x,\ y,\ y-x,\ -x,\ -y,\ x-y, after which the sequence repeats; these six terms sum to 0.0. Since 1492≡4(mod6)1492\equiv4\pmod6 and 1985≡5(mod6),1985\equiv5\pmod6, the given equations are 2y−x=1985,y−x=1492. \begin{aligned} 2y-x&=1985,\\ y-x&=1492. \end{aligned} Thus y=493.y=493. Since 2001≡3(mod6),2001\equiv3\pmod6, the requested sum is x+y+(y−x)=2y=986.x+y+(y-x)=2y=986.
AoPS wiki

Tagged: recursion · pattern recognition · system of equations

More practice