A finite sequence of four-digit integers has the property that the hundreds, tens, and units digits of each term are, respectively, the thousands, hundreds, and tens digits of the next term, and the hundreds, tens, and units digits of the last term are, respectively, the thousands, hundreds, and tens digits of the first term. Let $S$ be the sum of all the terms. What is the largest prime factor that always divides $S$?
← 返回第 748 题