Question 376
Let $a_{10} = 10$, and for each integer $n > 10$ let $a_n = 100a_{n-1} + n$. Find the least $n > 10$ such that $a_n$ is a multiple of 99.
Xem đáp án và lời giải
Đáp án: $45$
Because $100 \equiv 1 \pmod{99}$, $a_n \equiv a_{n-1} + n \pmod{99}$. Thus \[ a_n \equiv \sum_{k=10}^n k \pmod{99}, \] which is equivalent to $\dfrac{(n+10)(n-9)}{2}$. Because $n + 10$ and $n - 9$ cannot both be multiples of 3, $a_n$ is a multiple of 99 if and only if one of the following holds: $n - 9$ is a multiple of 99. The least $n > 10$ is 108. $n + 10$ is a multiple of 99. The least $n > 10$ is 89. $n + 10$ is a multiple of 9 while $n - 9$ is a multiple of 11. The least $n > 10$ is 53. $n + 10$ is a multiple of 11 while $n - 9$ is a multiple of 9. The least $n > 10$ is 45. The requested minimum is 45.