A very curious sequence

Algebra Level 3

Let us have the next recursive sequence of interger numbers a ( n ) a(n)

a ( 1 ) = 1 a ( n ) = { a ( n / 2 ) , if n is even 1 + a ( n 1 ) , if n is odd a(1)=1 \\ \\ a(n)=\begin{cases}-a(n/2), & \mbox { if } n \mbox { is even } \\ 1+a(n-1), & \mbox { if } n \mbox { is odd } \end{cases}

Find the minimum integer n n such that a ( n ) = 1000 a(n)=1000 . How many digits does it have?


The answer is 602.

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.

0 solutions

No explanations have been posted yet. Check back later!

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...