Stay positive

Algebra Level 3

A finite integer sequence { a 0 , a 1 , . . . , a l } \lbrace a_{0}, a_{1}, ..., a_{l} \rbrace starts with a 0 = 2018 a_{0} = 2018 and satisfies a n a n + 1 = a n + 2 ( n = 0 , 1 , . . . , l 2 ) a_{n} - a_{n+1} = a_{n+2}\;(n = 0, 1, ..., l-2) . The last item a l a_{l} is the only negative number in the sequence.

Find the value of a 1 a_{1} that maximizes the length of the sequence ( l ) (l) .

Bonus: Take a look at the ratio a 0 / a 1 a_{0} / a_{1} . Can you see where the value came from?


The answer is 1247.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Nothing novel in the solution; let x = a 1 x = a_{1} , express the first give or take 10 items with x x and evaluate the condition for them to be positive.

You could also write a small code if you wanted to be clear. 1241 , . . . , 1250 1241, ... , 1250 for a 1 a_{1} will give l = 7 , 9 , 9 , 9 , 9 , 9 , 11 , 10 , 10 , 8 l = 7, 9, 9, 9, 9, 9, 11, 10, 10, 8 , showing 1247 \fbox{1247} is the answer.

However, there is a shorter way. To keep the sequence going as long as possible, we want to minimize the fluctuation of the ratio α \alpha between two adjacent items (larger item over the other); i.e., if a n > a n + 1 a_{n} > a_{n+1} then a n = α × a n + 1 a_{n} = \alpha \times a_{n+1} . Now we have α ( α 1 ) = 1 \alpha(\alpha - 1) = 1 , which is the famous equation for the golden ratio α = 1 + 5 2 \alpha = {1 + \sqrt{5} \over 2} . One can therefore shortcut to the answer by a 1 = a 0 α = 2018 1 + 5 2 = 1247.192589 1247 a_{1} = {a_{0} \over \alpha} = {2018 \over {1 + \sqrt{5} \over 2} } = 1247.192589 \simeq \fbox{1247} (and checking cases 1246 and 1248 to ensure the answer).

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...