Consider the remainders when the sequence is divided by 2018.
If the limit exists, enter your answer as the limit of the sequence.
If the limit does not exist, enter your answer as -1.
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.
Let P n be the power tower involving n 2's, for example, P 3 = 2 2 2 ; note that we have, recursively, P n = 2 P n − 1 . We claim that P n + 1 ≡ P n ( m o d 2 0 1 8 ) for n ≥ 4 , meaning that our sequence P n ( m o d 2 0 1 8 ) becomes stationary at n = 4 . Note that P m is even for positive m and divisible by 16 for m ≥ 3 , so that we can reduce our moduli below to the largest odd factors.
To show that P n + 1 ≡ P n ( m o d 2 0 1 8 ) or ( m o d 1 0 0 9 ) is suffices to consider the exponents and show that P n ≡ P n − 1 ( m o d 1 0 0 8 ) , by Fermat's Little Theorem. Now 1 0 0 8 = 1 6 × 6 3 , and it suffices to show that P n ≡ P n − 1 ( m o d 6 3 ) .
To show that P n ≡ P n − 1 ( m o d 6 3 ) , it suffices to show that P n − 1 ≡ P n − 2 ( m o d 6 ) or ( m o d 3 ) , by Euler's Theorem, since ϕ ( 7 ) = ϕ ( 9 ) = 6 . Now P n − 1 and P n − 2 can be written as powers of 4, so that P n − 1 ≡ P n − 2 ≡ 1 ( m o d 3 ) .
The tower becomes stationary at P 4 = 2 1 6 = 2 0 4 8 × 3 2 ≡ 3 0 × 3 2 = 9 6 0 ( m o d 2 0 1 8 ) .