2006 AMC 12B Problem 25

Attempt Problem 25 of the 2006 AMC 12B below, then check your answer against the professionally curated solution from LIVE by Po-Shen Loh. You can also try the full timed exam, view all 2006 AMC 12B solutions, or check the answer key.

All problems are used with official legal permission of the Mathematical Association of America (MAA).

25.

A sequence a1,a_1, a2,a_2, \ldots of non-negative integers is defined by the rule an+2=an+1ana_{n+2} = |a_{n+1} - a_n| for n1.n \ge 1. If a1=999,a_1 = 999, a2<999,a_2 \lt 999, and a2006=1,a_{2006} = 1, how many different values of a2a_2 are possible?

165165

324324

495495

499499

660660

Answer: B
Concepts:greatest common divisorparityinclusion-exclusion
Difficulty rating: 2520
Small Hint:

The terms ana_n and an+3a_{n+3} always share the same parity; use this with a2006=1a_{2006} = 1

Big Hint:

Every term is a multiple of gcd(a1,a2),\gcd(a_1, a_2), so gcd(999,a2)=1;\gcd(999, a_2) = 1; note 999=3337999 = 3^3 \cdot 37

Solution:

The rule gives anan+3(mod2),a_n \equiv a_{n+3} \pmod 2, so a2a_2 has the same parity as a2006=1;a_{2006} = 1; thus a2a_2 is odd.

Every term is a multiple of gcd(a1,a2),\gcd(a_1, a_2), and a2006=1a_{2006} = 1 forces gcd(999,a2)=1.\gcd(999, a_2) = 1. Since 999=3337,999 = 3^3 \cdot 37, we need a2a_2 not divisible by 33 or 37.37.

Among the odd integers in [1,998][1, 998] there are 499;499; removing the 166166 multiples of 33 and 1313 multiples of 37,37, then adding back the 44 multiples of 111,111, leaves 49916613+4=324.499 - 166 - 13 + 4 = 324.

Each such a2a_2 works. For consecutive positive terms u,v,u,v, the update (u,v)(v,vu)(u,v)\mapsto(v,|v-u|) reduces their maximum within at most two steps. Since both initial terms are at most 999,999, some aN=0a_N=0 occurs by N1999.N\le1999.

The gcd of each consecutive pair is invariant, so the equal terms immediately before that zero both equal gcd(999,a2)=1.\gcd(999,a_2)=1. The sequence then cycles through 1,1,0.1,1,0. Finally, 20062(mod3),2006\equiv2\pmod3, so a2006a_{2006} has the same odd parity as a2;a_2; in this cycle it must therefore be 1.1.

Thus, the correct answer is B.

Problem 24#24
Full Exam

Problem 25 in Other Years

1950 AMC 12 · 1951 AMC 12 · 1952 AMC 12 · 1953 AMC 12 · 1954 AMC 12 · 1955 AMC 12 · 1956 AMC 12 · 1957 AMC 12 · 1958 AMC 12 · 1959 AMC 12 · 1960 AMC 12 · 1961 AMC 12 · 1962 AMC 12 · 1963 AMC 12 · 1964 AMC 12 · 1965 AMC 12 · 1966 AMC 12 · 1967 AMC 12 · 1968 AMC 12 · 1969 AMC 12 · 1970 AMC 12 · 1971 AMC 12 · 1972 AMC 12 · 1973 AMC 12 · 1974 AMC 12 · 1975 AMC 12 · 1976 AMC 12 · 1977 AMC 12 · 1978 AMC 12 · 1979 AMC 12 · 1980 AMC 12 · 1981 AMC 12 · 1982 AMC 12 · 1983 AMC 12 · 1984 AMC 12 · 1985 AMC 12 · 1986 AMC 12 · 1987 AMC 12 · 1988 AMC 12 · 1989 AMC 12 · 1990 AMC 12 · 1991 AMC 12 · 1992 AMC 12 · 1993 AMC 12 · 1994 AMC 12 · 1995 AMC 12 · 1996 AMC 12 · 1997 AMC 12 · 1998 AMC 12 · 1999 AMC 12 · 2000 AMC 12 · 2001 AMC 12 · 2002 AMC 12A · 2002 AMC 12B · 2003 AMC 12A · 2003 AMC 12B · 2004 AMC 12A · 2004 AMC 12B · 2005 AMC 12A · 2005 AMC 12B · 2006 AMC 12A · 2007 AMC 12A · 2007 AMC 12B · 2008 AMC 12A · 2008 AMC 12B · 2009 AMC 12A · 2009 AMC 12B · 2010 AMC 12A · 2010 AMC 12B · 2011 AMC 12A · 2011 AMC 12B · 2012 AMC 12A · 2012 AMC 12B · 2013 AMC 12A · 2013 AMC 12B · 2014 AMC 12A · 2014 AMC 12B · 2015 AMC 12A · 2015 AMC 12B · 2016 AMC 12A · 2016 AMC 12B · 2017 AMC 12A · 2017 AMC 12B · 2018 AMC 12A · 2018 AMC 12B · 2019 AMC 12A · 2019 AMC 12B · 2020 AMC 12A · 2020 AMC 12B · 2021 AMC 12A Spring · 2021 AMC 12B Spring · 2021 AMC 12A Fall · 2021 AMC 12B Fall · 2022 AMC 12A · 2022 AMC 12B · 2023 AMC 12A · 2023 AMC 12B · 2024 AMC 12A · 2024 AMC 12B · 2025 AMC 12A · 2025 AMC 12B