Let and . Define a sequence of integers as follows:
What is the residue of modulo 2017?
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.
One solution is to find a general form for B n :
We have the characteristic polynomial for B n as x 3 − 3 x 2 + 4 = 0 .
We may try a few integers as roots and find that x = − 1 is a root. We reduce the polynomial to a quadratic via long division:
x 3 − 3 x 2 + 4 = ( x + 1 ) x + 1 x 3 − 3 x 2 + 4 = ( x + 1 ) x + 1 x 3 + x 2 − 4 x 2 − 4 x + 4 x + 4
= ( x + 1 ) ( x + 1 x 3 + x 2 − x + 1 4 x 2 + 4 x + x + 1 4 x + 4 ) = ( x + 1 ) ( x 2 − 4 x + 4 ) = ( x + 1 ) ( x − 2 ) 2
Due to the nature of the characteristic polynomial, this implies that
B n = a 2 n + b n 2 n + c ( − 1 ) n for some constants a , b , c . We are given initial values for B n , so we substitute:
a 2 0 + b ( 0 ) 2 0 + c ( − 1 ) 0 = a + c = 6
a 2 1 + b ( 1 ) 2 1 + c ( − 1 ) 1 = 2 a + 2 b − c = − 1
a 2 2 + b ( 2 ) 2 2 + c ( − 1 ) 2 = 4 a + 8 b + c = 1 7
Solving yields a = b = 1 and c = 5 . So, the general form of B n is given by
B n = ( n + 1 ) 2 n + 5 ( − 1 ) n
Now, we consider ∑ n = 1 2 0 1 8 B n :
∑ n = 1 2 0 1 8 = ∑ n = 1 2 0 1 8 2 n + n 2 n + 5 ( − 1 ) n = ∑ n = 1 2 0 1 8 2 n + ∑ n = 1 2 0 1 8 n 2 n + ∑ n = 1 2 0 1 8 5 ( − 1 ) n
Note that because 2018 is even, the third term is zero, leaving
∑ n = 1 2 0 1 8 B n = ∑ n = 1 2 0 1 8 2 n + ∑ n = 1 2 0 1 8 n 2 n
Recall that, if x = 1 , then
∑ n = 1 q 2 n = 2 ( 2 q − 1 )
and (as it can be shown with some simple calculus):
∑ n = 1 q n 2 n = ( q − 1 ) 2 q + 1 + 2
So,
∑ n = 1 2 0 1 8 B n = ∑ n = 1 2 0 1 8 2 n + ∑ n = 1 2 0 1 8 n 2 n
= 2 + 2 2 0 1 8 − 1 ( 2 0 1 7 ) 2 2 0 1 9 + 2 = 2 2 0 1 9 − 2 + ( 2 0 1 7 ) 2 2 0 1 9 + 2 = ( 2 0 1 8 ) 2 2 0 1 9
We now have that
∑ n = 1 2 0 1 8 B n ≡ ( 2 0 1 8 ) 2 2 0 1 9 ≡ 2 2 0 1 9 m o d 2 0 1 7
Since 2017 is prime, we can invoke Fermat's little theorem:
2 2 0 1 9 ≡ 2 2 0 1 7 − 1 2 3 ≡ 1 ⋅ 2 3 ≡ 8 m o d 2 0 1 7
Therefore, if B n is defined as above, then
∑ n = 1 2 0 1 8 B n ≡ 8 m o d 2 0 1 7