AMC 12 Mock Exam 9 Problem 25
Problem 25 of 25
For positive integers and , define a sequence by , , and For example, and give , so that pair does not make every term an integer. How many ordered pairs with and make every term of the sequence an integer?
Answer choices
Show solution
Solution
All terms are positive, by induction. Subtracting from gives . So , and the ratio is the same for all . Thus for every .
Every term is an integer is an integer. If is an integer, the linear recurrence keeps all terms integral. Conversely, suppose all terms are integers and write in lowest terms. From , consecutive terms are coprime. From we get for every . In particular divides the coprime numbers and , so .
must be . So we need positive integers with . Among all solutions for a given , take one with minimal and . The quadratic has root , so it has a second root , a positive integer, and is also a solution. Minimality gives , so , which forces . Then gives , so and .
All solutions of . If is a solution, then so is , which is smaller: when , and when the solution is , which leads to . Repeating this descent always ends at . Reversing it, every solution with is a pair of consecutive terms of , where each term is times the previous term minus the one before. The pairs with both entries at most are and both orders of , , , , , for a total of .
Tagged: integrality of a nonlinear recurrence · invariant and Vieta jumping (N)