The sequence (an) is defined as follows: a0=1, a1=1, and an+1=2(an−an−1), for all positive integers n. Determine, with proof, the remainder of a2016 on division by 2017.
Solution
Since (an) satisfies the linear recurrence an+1=2(an−an−1), an explicit formula for an can be determined in the usual manner. Formally replacing ak in the recurrence by xk, we obtain xn+1=2(xn−xn−1) and solving for nonzero x, we get x2=2(x−1) and x=1±i, where i=−1. Let α=1+i, β=1−i. Then an=Aαn+Bβn, where A and B are constants to be determined from the initial conditions a0=1, a1=1. Thus A+B=1,Aα+Bβ=1, and so A=B=1/2. Therefore an=21((1+i)n+(1−i)n), for all positive integers n.
Note that (1+i)2=2i, (1+i)4=−4 and (1+i)8=16, and similarly (1−i)8=16. Now, 2016=25×32×7, so (1±i)2016=(1±i)8×4×63=24×4×63=21008. Hence a2016=21(21008+21008)=21008. Next, we show that 2017 is a prime number. Since 452=2025>2017 and so 2045<45, if 2017 is not prime, it must have a prime divisor less than 45, i.e. one of the following: 2,3,5,7,11,13,17,19,23,29,31,37,41,43. As already noted, 2016 is divisible by 2,3 and 7, so these primes can be eliminated from the list. Also, it is simple to check that 2015=5×13×31, so 5,13 and 31 can also be eliminated. The remaining possibilities are: 11,17,19,23,29,37,41,43, and one checks by long division that none of these divide 2017. Hence 2017 is prime. Since p=2017 is congruent to 1 (mod 4), there is an integer y such that p divides 1+y2. For example, using Wilson's Theorem combined with ((p−1)!≡((2p−1)!)2(modp)), we see that we can take y=(2p−1)!. Consider (1+y)2=1+2y+y2≡2y(modp). By Fermat's little theorem, (1+y)2016≡(1+y)p−1≡1(modp),so(2y)1008≡1(modp). Since y4≡1(modp) and 4 divides 1008, it follows that 21008≡1(modp). This shows that the remainder of a2016 on division by 2017 is 1.
Want a route through all this instead of an archive? The track
puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.
Source: MathNet,
licensed CC-BY-4.0.
Statement reproduced verbatim; metadata (topic, difficulty) added by this project.