Skip to main content

2016 AMC 12B Problem 25

Problem 25 of 25HarderAlgebraNumber Theory

The sequence (an)(a_n) is defined recursively by a0=1,a_0=1, a1=219,a_1=\sqrt[19]{2}, and an=an1an22a_n=a_{n-1}a_{n-2}^2 for n2.n\ge2. What is the smallest positive integer kk such that the product a1a2aka_1a_2\cdots a_k is an integer?

Answer choices

Show solution

Solution

Write an=2bn19.a_n=2^{\frac{b_n}{19}}. The recursion becomes b0=0,b_0=0, b1=1,b_1=1, bn=bn1+2bn2,b_n=b_{n-1}+2b_{n-2}, solved by bn=13(2n(1)n).b_n=\tfrac13\bigl(2^n-(-1)^n\bigr). The product a1aka_1\cdots a_k is an integer exactly when b1++bkb_1+\cdots+b_k is divisible by 19.19. Summing the formula for bnb_n gives b1++bk=2k+113b_1+\cdots+b_k=\dfrac{2^{k+1}-1}{3} when kk is odd, and b1++bk=2k+123b_1+\cdots+b_k=\dfrac{2^{k+1}-2}{3} when kk is even. The order of 22 modulo 1919 is 1818 because 291(mod19)2^9\equiv-1\pmod{19} and 26≢1(mod19).2^6\not\equiv1\pmod{19}. For odd k,k, divisibility therefore requires k+1k+1 to be divisible by 18,18, first occurring at k=17.k=17. For even k,k, it requires kk to be divisible by 18,18, first occurring at k=18.k=18. Hence the smallest positive kk is 17.17. Thus, the correct answer is A.

More practice

Concepts: recursion · modular arithmetic · multiplicative order

Problem text and solution from the LIVE past-contest archive. See also the AoPS wiki page for community solutions.