Skip to main content

2008 AMC 12A Problem 17

Problem 17 of 25IntermediateAlgebraNumber Theory

Let a1,a_1, a2,a_2, \ldots be a sequence of integers determined by the rule an=an12a_n = \frac{a_{n-1}}{2} if an1a_{n-1} is even and an=3an1+1a_n = 3a_{n-1} + 1 if an1a_{n-1} is odd. For how many positive integers a12008a_1 \le 2008 is it true that a1a_1 is less than each of a2,a_2, a3,a_3, and a4?a_4?

Answer choices

Show solution

Solution

If a1a_1 is even, then a2=a12<a1,a_2 = \frac{a_1}{2} \lt a_1, so the condition fails. If a11(mod4),a_1 \equiv 1 \pmod 4, then a2=3a1+1a_2 = 3a_1 + 1 is a multiple of 4,4, so a3=3a1+12a_3 = \frac{3a_1 + 1}{2} and a4=3a1+14a1,a_4 = \frac{3a_1 + 1}{4} \le a_1, and again the condition fails. If a13(mod4),a_1 \equiv 3 \pmod 4, then a2a_2 is even but not a multiple of 4,4, so a3=3a1+12>a1,a_3 = \frac{3a_1 + 1}{2} \gt a_1, and a3a_3 is odd, giving a4=3a3+1>a3>a1.a_4 = 3a_3 + 1 \gt a_3 \gt a_1. The condition holds. Exactly 20084=502\tfrac{2008}{4} = 502 values of a12008a_1 \le 2008 satisfy a13(mod4).a_1 \equiv 3 \pmod 4. Thus, D is the correct answer.

More practice

Concepts: recursion · modular arithmetic · casework

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