2006 AMC 12B Problem 25

Below is the professionally curated solution for Problem 25 of the 2006 AMC 12B, 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 of the real AMC 8, AMC 10, AMC 12, and AIME problems in our complete solution collection are used with official legal permission of the Mathematical Association of America (MAA).

Concepts:greatest common divisorparityinclusion-exclusion

Difficulty rating: 2520

25.

A sequence a1,a2,a_1, 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

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: with gcd(a1,a2)=1\gcd(a_1, a_2) = 1 the sequence eventually cycles through 1,1,0,1, 1, 0, and the parity condition makes a2006=1.a_{2006} = 1.

Thus, the correct answer is B.

Problem 25 in Other Years