Cubes in a recursive succession

Let ( a n ) (a_n) be a recursive relation with a n = a n 2 × a n 1 a_n=a_{n-2}\times a_{n-1} , for all n > 2 n>2 . If a 1 = 18 a_1=18 and a 2 = 12 a_2=12 , how many cubes will there be in the first 2016 terms?


The answer is 504.

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

Arjen Vreugdenhil
Apr 27, 2016

We write a n = 2 b n 3 c n . a_n = 2^{b_n} \cdot 3^{c_n}. Then the sequences ( a n ) (a_n) and ( b n ) (b_n) are Fibonacci-like sequences: b 1 = 2 , b 2 = 1 , b n + 2 = b n + b n + 1 ; c 1 = 1 , c 2 = 2 , c n + 2 = c n + c n + 1 . b_1 = 2,\ b_2 = 1,\ b_{n+2} = b_n + b_{n+1}; \\c_1 = 1,\ c_2 = 2,\ c_{n+2} = c_n + c_{n+1}. We need to count the indices 1 i 2016 1 \leq i \leq 2016 for which both b i b_i and c i c_i are multiples of 3. Now modulo 3, the sequence ( b n ) (b_n) becomes b n 1 , 1 , 0 , 1 , 1 , 1 , 0 , 1 , 1 , 1 , 0 , mod 3 , b_n \equiv -1, 1, 0, 1, 1, -1, 0, -1, -1, 1, 0, \dots\ \ \ \text{mod}\ 3, and for ( c n ) (c_n) we find the same with opposite signs.

Thus we see that b i c i 0 b_i \equiv c_i \equiv 0 mod 3 if and only if i 3 i \equiv 3 mod 4.

Therefore there are 2016 / 4 = 504 2016/4 = \boxed{504} cubes in the original sequence ( a n ) (a_n) .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...