1998 AIME Problem 8

Attempt Problem 8 of the 1998 AIME 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 1998 AIME solutions, or check the answer key.

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

8.

Except for the first two terms, each term of the sequence 1000,1000, x,x, 1000x,1000 - x, \ldots is obtained by subtracting the preceding term from the one before that. The last term of the sequence is the first negative term encountered. What positive integer xx produces a sequence of maximum length?

Answer: 618
Concepts:Fibonaccirecursionbounding to limit cases
Difficulty rating: 2510
Small Hint:

Write out terms: 1000x,1000 - x, 2x1000,2x - 1000, 20003x,2000 - 3x, 5x3000,5x - 3000, \ldots — the coefficients are Fibonacci numbers

Big Hint:

Keeping the twelfth and thirteenth terms nonnegative pins xx between 5500089\frac{55000}{89} and 89000144,\frac{89000}{144}, an interval containing exactly one integer

Solution:

Computing terms, a3=1000x,a_3 = 1000 - x, a4=2x1000,a_4 = 2x - 1000, a5=20003x,a_5 = 2000 - 3x, a6=5x3000,a_6 = 5x - 3000, and in general a2k+1=1000F2k1xF2k,a2k+2=xF2k+11000F2k, \begin{aligned} a_{2k+1} &= 1000 F_{2k-1} - x F_{2k}, \\ a_{2k+2} &= x F_{2k+1} - 1000 F_{2k}, \end{aligned} where F1=F2=1,F_1 = F_2 = 1, F3=2,F_3 = 2, \ldots are the Fibonacci numbers. The sequence keeps going exactly as long as its terms stay nonnegative, so a long sequence requires x1000\frac{x}{1000} to be squeezed between the ratios F2kF2k+1\frac{F_{2k}}{F_{2k+1}} and F2k1F2k\frac{F_{2k-1}}{F_{2k}} for larger and larger k.k.

For the first 1313 terms to be nonnegative we need a12=89x550000a_{12} = 89x - 55000 \ge 0 and a13=89000144x0,a_{13} = 89000 - 144x \ge 0, i.e. 617.9x618.05,617.9\ldots \le x \le 618.05\ldots, so x=618.x = 618. If x617x \le 617 the sequence turns negative by a12,a_{12}, and if x619x \ge 619 it turns negative by a13,a_{13}, so every other integer gives a shorter sequence.

Indeed x=618x = 618 yields 1000,618,382,236,146,1000, 618, 382, 236, 146, 90,56,34,22,12,90, 56, 34, 22, 12, 10,2,8,6,10, 2, 8, -6, a sequence of 1414 terms, the maximum possible. The answer is 618.618.

Problem 7#7
Full Exam

Problem 8 in Other Years