Floors!

Let { a n } \{a_n\} be a recurrent sequence such that a 1 = 1 a_1=1 and a n = a 1 + a 2 + + a n 1 a_n= \left \lfloor \sqrt{a_1+a_2+\cdots+a_{n-1}} \right\rfloor for all n > 1 n>1 . Find a 1000 . a_{1000}.


Notation: \lfloor \cdot \rfloor denotes the floor function .


The answer is 495.

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

André Hucek
Oct 3, 2017

If we write down some of the first numbers, we get: ( 1 , 1 , 1 , 1 , 2 , 2 , 2 , 3 , 3 , 4 , 4 , 4 , 5 , 5 , 6 , 6 , 7 , 7 , 8 , 8 , 8 , 9 , 9 , ) (1,1,1,1,2,2,2,3,3,4,4,4,5,5,6,6,7,7,8,8,8,9,9,…) . From this it is visible that number 1 1 appears four times, while all other numbers appear twice, thrice at most. We will further define that numbers that appear thrice are the powers of 2 2 , starting with 2 1 2^1 . All other numbers therefore appear twice.

Suppose we wrote down the beginning of the sequence until the first occurrence of the number n ( n > 1 ) n(n>1) . And that the sequence visibly behaves as defined.

Let k k be the largest integer satisfying 2 k < n 2^{k}<n . Then the sum of all the values is:

s 1 = ( 1 + 2 + . . . + n ) + ( 1 + 2 + . . . + n 1 ) + ( 1 + 2 + 2 2 + . . . + 2 k ) + 1 = n 2 + 2 k + 1 s_1 = (1+2+...+n) + (1+2+...+n-1) + (1+2+2^2+...+2^k) +1 = n^2 + 2^{k+1} .

Because 2 k + 1 = 2 × 2 k < 2 n < 2 n + 1 = ( n + 1 ) 2 n 2 . 2^{k+1} = 2 \times 2^k < 2n < 2n +1 = (n+1)^2 - n^2. . Whe have s 1 < ( n + 1 ) 2 s_1 < (n+1)^2 and the following member is therefore s 1 = n \lfloor\sqrt{s_1}\rfloor = n .

Now we define the next member in this order, we see that the sum is now: s 2 = s 1 + n = n 2 + n + 2 k + 1 s_2 = s_1 + n = n^2 + n + 2^{k+1} , so if 2 k + 1 < n + 1 2^{k+1} < n+1 , then s 2 < ( n + 1 ) 2 s_2 < (n+1)^2 and the next member is n n .

However k k is the largest integer satisfying 2 k < n 2^k < n , so its true that n 2 k + 1 n\le 2^{k+1} . The previous situation therefore occurs iff 2 k + 1 = n 2^{k+1} = n .

When n n isn't a power of two, the next member is n + 1 n+1 , because n + 1 2 k + 1 < 2 n < 3 n + 4 n+1\le 2^{k+1} < 2n < 3n +4 , because ( n + 1 ) 2 n 2 + n + 2 k + 1 < ( n + 2 ) 2 . (n +1)^2 \le n^2 + n + 2^{k+1} < (n+2)^2.

Now it is only needed to show, that if n = 2 k + 1 n = 2^{k+1} , then after three occurences of n n , a n + 1 n+1 will follow.

So now the sum is:

s 3 = s 2 + n = n 2 + 2 n + 2 k + 1 = n 2 + 3 n s_3 = s_2 + n = n^2 + 2n + 2^{k+1} = n^2 + 3n , and we immediately get the inequality ( n + 1 ) 2 < s 3 < ( n + 2 ) 2 (n+1)^2 < s_3 < (n+2)^2 .

Now we finally see that 500 = a 1010 = a 1009 500 = a_{1010} = a_{1009} , from where we finish a 1000 = 495 a_{1000} = \boxed{495} .

How do you prove that all of the powers of 2 appear 3 times?

Vincentpaul Fadri - 3 years, 8 months ago

@Andrew Hucek , umis cesky? muj tatinek je z ceska tak ja umim mluvit cesky

A Former Brilliant Member - 3 years, 7 months ago

Log in to reply

no, tak jsem Čech, tak asi česky umím :-)

André Hucek - 3 years, 7 months ago
Haosen Chen
Jul 22, 2018

The regularity is obvious.But I persuade myself to treat this problem rigorously.

Let’s show that

a 2 k + k 1 = a 2 k + k = a 2 k + k + 1 = 2 k 1 a_{2^k +k-1}= a_{2^k +k}= a_{2^k +k+1}=2^{k-1} ,
a 2 k + k + 1 + 2 j 1 = a 2 k + k + 1 + 2 j = 2 k 1 + j a_{2^k +k+1+2j-1}= a_{2^k +k+1+2j}=2^{k-1}+j , for all k 2 k\ge 2 and 1 j 2 k 1 1 1\le j\le 2^{k-1}-1 .........(#)

Do induction on k k . For k = 2 k=2 ,we have a 5 = a 6 = a 7 = 2 , a 8 = a 9 = 3 a_{5}=a_{6}=a_{7}=2,a_{8}=a_{9}=3 .

Assume that we now have (#) for the cases 2 , , k ( k 2 ) 2,…,k(k\ge 2) ,then we get

i = 1 2 k + 1 + k + 1 2 a i = 1 + 2 i = 1 2 k 1 i + i = 0 k 1 2 i = 1 + 2 k ( 2 k 1 ) + ( 2 k 1 ) = 2 2 k \displaystyle\sum_{i=1}^{2^{k+1}+k+1-2}a_{i} =1+2\sum_{i=1}^{2^k -1}i +\sum_{i=0}^{k-1}2^i=1+2^k(2^k -1)+(2^k -1)=2^{2k} .

And so a 2 k + 1 + k + 1 1 = i = 1 2 k + 1 + k + 1 2 a i = 2 2 k = 2 k a_{2^{k+1} +k+1-1}=\lfloor \sqrt{\displaystyle\sum_{i=1}^{2^{k+1}+k+1-2}a_{i}} \rfloor=\lfloor \sqrt{2^{2k}} \rfloor =2^{k} .

It leads to the result a 2 k + 1 + k + 1 = 2 2 k + 2 k = 2 k a_{2^{k+1} +k+1}=\color{#3D99F6}\lfloor \sqrt{2^{2k}+2^k} \rfloor=2^k , and a 2 k + 1 + k + 1 + 1 = 2 2 k + 2 k + 2 k = 2 k a_{2^{k+1} +k+1+1}=\color{#3D99F6}\lfloor \sqrt{2^{2k}+2^k+2^k} \rfloor=2^k ,

since 2 2 k + 2 k = 2 k 2 k 2 2 k + 2 k < 2 k + 1 2 2 k 2 2 k + 2 k < 2 2 k + 2 2 k + 1 \lfloor \sqrt{2^{2k}+2^k} \rfloor=2^k \iff 2^k \le \sqrt{2^{2k}+2^k} < 2^k +1 \iff 2^{2k}\le 2^{2k}+2^k < 2^{2k}+2\cdot 2^k+1 holds true evidently and the latter can be obtained in the same way.

__Using this method,we can obtain several similar equalities (they're colored in blue and you can check them on your own) .

Then do induction on j j in the case k + 1 k+1 .

it's easy to check the case when j = 1 j=1 :

a ( 2 k + 1 + k + 1 + 1 ) + 1 = 2 2 k + 2 k + 2 k + 2 k = 2 k + 1 a_{(2^{k+1} +k+1+1)+1}=\color{#3D99F6}\lfloor \sqrt{2^{2k}+2^k+2^k+2^k} \rfloor=2^k +1 , and a ( 2 k + 1 + k + 1 + 1 ) + 2 = 2 2 k + 2 k + 2 k + 2 k + ( 2 k + 1 ) = 2 k + 1 a_{(2^{k+1} +k+1+1)+2}=\color{#3D99F6}\lfloor \sqrt{2^{2k}+2^k+2^k+2^k+(2^k+1)} \rfloor=2^k+1 .

Assume that we have showed the cases 1 , . . . , j ( j 1 ) 1,...,j(j\ge1) ,then we got

a ( 2 k + 1 + k + 1 + 1 ) + 2 j + 1 = 2 2 k + 2 k + 2 k + 2 k + i = 1 j ( a ( 2 k + 1 + k + 1 + 1 ) + 2 i 1 + a ( 2 k + 1 + k + 1 + 1 ) + 2 i ) a_{(2^{k+1} +k+1+1)+2j+1}=\lfloor \sqrt{2^{2k}+2^k+2^k+2^k+\displaystyle\sum_{i=1}^{j}(a_{(2^{k+1} +k+1+1)+2i-1}+ a_{(2^{k+1}+k+1+1)+2i}) }\rfloor

= 2 2 k + 3 2 k + 2 i = 1 j ( 2 k + i ) = 2 2 k + 3 2 k + j 2 k + 1 + j ( j + 1 ) = 2 k + j + 1 =\lfloor \sqrt{2^{2k}+3\cdot 2^{k}+\displaystyle 2\sum_{i=1}^{j}( 2^k +i ) } \rfloor= \color{#3D99F6}\lfloor \sqrt{2^{2k}+ 3\cdot 2^{k} +j\cdot 2^{k+1}+j(j+1) } \rfloor=2^k +j+1 .

and we can get a ( 2 k + 1 + k + 1 + 1 ) + 2 j + 2 = 2 k + j + 1 a_{(2^{ k+1}+k+1+1)+2j+2 }=2^k +j+1 in the same way.

So we've finished the proof.In fact, using the proved results we can culculate every term in the sequence separately .

So a 1000 = a 2 9 + 9 + 1 + 2 239 = 2 8 + 239 = 495 a_{1000}=a_{2^9 +9+1+2\cdot 239}=2^8 +239=\boxed{495} .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...