Let be a recursive relation with , for all . If and , how many cubes will there be in the first 2016 terms?
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.
We write a n = 2 b n ⋅ 3 c n . Then the sequences ( a n ) and ( 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 . We need to count the indices 1 ≤ i ≤ 2 0 1 6 for which both b i and c i are multiples of 3. Now modulo 3, the sequence ( b n ) becomes b n ≡ − 1 , 1 , 0 , 1 , 1 , − 1 , 0 , − 1 , − 1 , 1 , 0 , … mod 3 , and for ( c n ) we find the same with opposite signs.
Thus we see that b i ≡ c i ≡ 0 mod 3 if and only if i ≡ 3 mod 4.
Therefore there are 2 0 1 6 / 4 = 5 0 4 cubes in the original sequence ( a n ) .