A good sequence

A sequence of real numbers a 0 , a 1 , a 2 a_0, a_1, a_2 \ldots is said to be good if the following three conditions hold.

  • The value of a 0 a_0 is a positive integer.
  • For each non-negative integer i i we have a i + 1 = 2 a i + 1 a_{i+1}=2a_i+1 or a i + 1 = a i a i + 2 a_{i+1}=\dfrac{a_i}{a_i+2} .
  • There exists a positive integer k k such that a k = 2014 a_k=2014 .

Find the smallest positive integer n n such that there exists a good sequence a 0 , a 1 , a 2 a_0, a_1, a_2 \ldots of real numbers with the property that a n = 2014 a_n=2014 .


The answer is 60.

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

Patrick Corn
Jan 5, 2018

Let's run it backwards. Suppose a n = 2014. a_n = 2014. Let b k = a n k , b_k = a_{n-k}, so b 0 = 2014 b_0 = 2014 and b k = { b k 1 1 2 if b k 1 > 1 2 b k 1 1 b k 1 if b k 1 < 1. b_k = \begin{cases} \frac{b_{k-1}-1}2 &\text{ if } b_{k-1} > 1 \\ \frac{2b_{k-1}}{1-b_{k-1}} &\text{ if } b_{k-1} < 1. \end{cases}

So we can generate values of b k b_k recursively until we get to our first positive integer. In fact, b 60 = 2014 b_{60} = 2014 is the first positive integer, so n = 60 n=\fbox{60} and the minimal good sequence ending in 2014 2014 also starts with 2014. 2014.

I think there is a nice formula for n n in general based on the binary expansion of the starting number plus one (2015 in this case), but I haven't quite put all the pieces together. I'll update with a full solution later. Here is a hint: it's not hard to prove that if you add up the numerator and denominator of b k , b_k, the result is always 2015. 2015.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...