Skip to main content

1998 AIME Problem 8

Problem 8 of 15IntermediateAlgebraProblem-Solving Techniques

Except for the first two terms, each term of the sequence 1000,1000, x,x, 1000−x,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?

Your answer

Integer from 0 to 999
Show solution

Solution

Computing terms, a3=1000−x,a_3 = 1000 - x, a4=2x−1000,a_4 = 2x - 1000, a5=2000−3x,a_5 = 2000 - 3x, a6=5x−3000,a_6 = 5x - 3000, and in general a2k+1=1000F2k−1−xF2k,a2k+2=xF2k+1−1000F2k, \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 F2k−1F2k\frac{F_{2k-1}}{F_{2k}} for larger and larger k.k. For the first 1313 terms to be nonnegative we need a12=89x−55000≥0a_{12} = 89x - 55000 \ge 0 and a13=89000−144x≥0,a_{13} = 89000 - 144x \ge 0, i.e. 617.9…≤x≤618.05…,617.9\ldots \le x \le 618.05\ldots, so x=618.x = 618. If x≤617x \le 617 the sequence turns negative by a12,a_{12}, and if x≥619x \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.
AoPS wiki

Tagged: Fibonacci · recursion · bounding to limit cases

More practice