A finite sequence of three-digit integers has the property that the tens and units digits of each term are, respectively, the hundreds and tens digits of the next term, and the tens and units digits of the last term are, respectively, the hundreds and tens digits of the first term. For example, such a sequence might begin with the terms 247, 475, and 756 and end with the term 824. Let be the sum of all the terms in the sequence. What is the largest prime factor that always divides ?
- A)
- B)
- C)
- D)
- E)
Answer
D
Key insight
Because the digits wrap around cyclically, every digit appears once in each of the three places, so S = 111 times the digit total and 111 = 3 * 37.
Solution
Picture the terms as a ring of digits read cyclically: the -th term is (indices wrapping around). Each digit serves as the hundreds digit of one term, the tens digit of the previous term, and the units digit of the one before that.
So if is the total of the ring's digits, then
Thus always divides .
No larger prime is guaranteed: the sequence is valid and sums to , which is not divisible by (or by any prime above ).
The answer is .
Why this works
The wrap-around condition makes the multiset of hundreds digits, tens digits and units digits identical, so the sum factors as times something. "Always divides" questions have two halves: a structural argument that the divisor works for every case, and one explicit example showing nothing bigger does. Recognize (and ) on sight.
Alternative approach
Complete the given example into a valid cycle, such as , and add: . Only and among the choices divide it, and is larger; the ring argument confirms works in general.
The trap
Concluding 3 always divides S (true) and stopping, or believing 43 must divide S because the sample sequence happens to allow it.
Common mistakes
- Concluding always divides (true) and stopping, or believing must divide because the sample sequence happens to allow it.
- Miscounting how often each digit appears, e.g. thinking only the hundreds digits matter, which loses the factor .
Techniques
Test small/specific values or special cases to find or verify the answer · Exploit symmetry to reduce work or pair up objects