Skip to main content

2018 AIME II Problem 2

Problem 2 of 15EasierAlgebraNumber TheoryProblem-Solving Techniques

Let a0=2,a_0 = 2, a1=5,a_1 = 5, and a2=8,a_2 = 8, and for n>2n \gt 2 define ana_n recursively to be the remainder when 4(an−1+an−2+an−3)4(a_{n-1} + a_{n-2} + a_{n-3}) is divided by 11.11. Find a2018⋅a2020⋅a2022.a_{2018} \cdot a_{2020} \cdot a_{2022}.

Your answer

Integer from 0 to 999
Show solution

Solution

Computing successive terms gives 2, 5, 8, 5, 6, 10, 7, 4, 7, 6, 2, 5, 8, … \begin{gathered} 2,\ 5,\ 8,\ 5,\ 6,\ 10,\ 7,\ 4,\ 7,\ 6,\ \\ 2,\ 5,\ 8,\ \ldots \end{gathered} Since (a10,a11,a12)(a_{10}, a_{11}, a_{12}) =(2,5,8)= (2, 5, 8) =(a0,a1,a2)= (a_0, a_1, a_2) and each term depends only on the previous three, the sequence is periodic with period 10.10. Therefore a2018=a8=7,a_{2018} = a_8 = 7, a2020=a0=2,a_{2020} = a_0 = 2, and a2022=a2=8,a_{2022} = a_2 = 8, so the product is 7⋅2⋅8=112.7 \cdot 2 \cdot 8 = 112.
AoPS wiki

Tagged: recursion · modular arithmetic · pattern recognition

More practice