What's the longest sequence?

Algebra Level 3

A sequence { S } \{S\} is defined such that S 1 = 2018 S_1=2018 , S 2 S_2 is a positive integer and for n 3 n\geq3 , S n = S n 2 S n 1 S_n=S_{n-2}-S_{n-1} . The sequence ends when a term that is not a positive integer appears (this term is kept in the sequence).

What is the maximum possible number of terms in such a sequence?


The answer is 12.

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.

2 solutions

Mark Hennings
Apr 10, 2018

It is a simple induction that (here F n F_n is the n n th Fibonacci number) S n = ( 1 ) n [ F n 1 S 2 2018 F n 2 ] n 2 S_n \; = \; (-1)^n\big[F_{n-1}S_2 - 2018F_{n-2}\big] \hspace{2cm} n \ge 2 and so the term S n S_n will be non-negative provided that S 2 2018 F n 2 F n 1 S_2 \le 2018 \tfrac{F_{n-2}}{F_{n-1}} when n n is odd and provided that S 2 2018 F n 2 F n 1 S_2 \ge 2018 \tfrac{F_{n-2}}{F_{n-1}} when n 2 n\ge2 is even. The sequence 2018 F n 2 F n 1 2018 \tfrac{F_{n-2}}{F_{n-1}} is increasing for odd n n and decreasing for even n n .

Since 2018 F n 2 F n 1 2018 \tfrac{F_{n-2}}{F_{n-1}} is equal to 1246.41 1246.41 , 1247.49 1247.49 , 1247.08 1247.08 when n = 10 , 11 , 12 n = 10,11,12 , we see that it is possible to have S 1 , S 2 , . . . , S 11 S_1,S_2,...,S_{11} all nonegative, by choosing S 2 = 1247 S_2 = 1247 , but that after that S 12 S_{12} is negative. Any other value of S 2 S_2 yields a negative term in the sequence before S 12 S_{12} . Thus the answer is 12 \boxed{12} .

Freddie Hand
Apr 10, 2018

The number of terms is maximised when S 1 S 2 \frac{S_1}{S_2} is as close to the golden ratio ϕ \phi as possible. In this case it is when S 2 = 1247 S_2=1247 .

Then the sequence would go 2018 , 1247 , 771 , 476 , 295 , 181 , 114 , 67 , 47 , 20 , 27 , 7 2018 , 1247 , 771 , 476 , 295 , 181 , 114 , 67 , 47 , 20 , 27 , -7 which is 12 12 terms.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...