2007 iTest Problems/Problem 47

Problem

Let $\{X_n\}$ and $\{Y_n\}$ be sequences defined as follows: $X_0=Y_0=X_1=Y_1=1$,

\begin{align*}X_{n+1}&=X_n+2X_{n-1}\qquad(n=1,2,3\ldots),\\ Y_{n+1}&=3Y_n+4Y_{n-1}\qquad(n=1,2,3\ldots).\end{align*}

Let $k$ be the largest integer that satisfies all of the following conditions: $|X_i-k|\leq 2007$, for some positive integer $i$; $|Y_j-k|\leq 2007$, for some positive integer $j$; and $k<10^{2007}$. Find the remainder when $k$ is divided by $2007$.

Solution

1447

See Also

2007 iTest (Problems, Answer Key)
Preceded by:
Problem 46
Followed by:
Problem 48
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 TB1 TB2 TB3 TB4