1998 AIME Problem 8
Problem 8 of 15IntermediateAlgebraProblem-Solving Techniques
Except for the first two terms, each term of the sequence 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 produces a sequence of maximum length?
Your answer
Integer from 0 to 999
Show solution
Solution
Computing terms, and in general where are the Fibonacci numbers. The sequence keeps going exactly as long as its terms stay nonnegative, so a long sequence requires to be squeezed between the ratios and for larger and larger
For the first terms to be nonnegative we need and i.e. so If the sequence turns negative by and if it turns negative by so every other integer gives a shorter sequence.
Indeed yields a sequence of terms, the maximum possible. The answer is
Tagged: Fibonacci · recursion · bounding to limit cases