AMC 10 Step by Step

2007 AMC 10A Problem 22

P21-25~4 minPrint

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 SS be the sum of all the terms in the sequence. What is the largest prime factor that always divides SS ?

Log in to save your progress.
Show solution without answering

Key insight

The digits wrap around, so each digit appears once as a hundreds, once as a tens and once as a ones digit. The sum is 111 times the digit total.

Solution

Try a short example first: 123,231,312123, 231, 312. Each term starts with the last two digits of the one before, and 312312 leads back to 123123. So this sequence follows the rule.

  1. Look at the columns.
hundredstensones
123123123
231231231
312312312

The hundreds column holds 1,2,31, 2, 3, and so do the tens and the ones columns, just shifted.
2. Why this always happens. Think of the digits written around a circle. Each term reads three digits in a row. As you move around, each digit is first a ones digit, then a tens digit in the next term, then a hundreds digit in the term after that. Because the list wraps around, this works even at the end.
3. So the sum splits nicely. Let TT be the total of the digits around the circle. The hundreds digits add to TT, the tens digits add to TT, and the ones digits add to TT. So
S=100T+10T+T=111 T.S = 100T + 10T + T = 111\,T.
4. Factor 111111. 111=3×37111 = 3 \times 37. So 3737 always divides SS.
5. Nothing bigger always works. For 123,231,312123, 231, 312 the sum is 666=2×3×3×37666 = 2 \times 3 \times 3 \times 37. The only choice bigger than 3737 is 4343, and 4343 does not divide 666666.

The answer is (D) 37\boxed{\textbf{(D)}\ 37}.

Why this works

The wrap-around rule means every digit gets used once in each place, so the sum is always 111111 times something. "Always divides" questions have two halves: show the number works for every sequence, then give one example where a bigger number fails. It helps to know 111=3×37111 = 3 \times 37 on sight.

Alternative approach

Finish the example from the problem into a full loop: 247,475,756,568,682,824247, 475, 756, 568, 682, 824. The sum is 3552=111×323552 = 111 \times 32. Among the choices, only 33 and 3737 divide it, and 3737 is bigger. The column argument above then confirms that 3737 works every time.

Concise solution

A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.

Picture the terms as a ring of digits d1,d2,…,dkd_1, d_2, \ldots, d_k read cyclically: the ii-th term is didi+1di+2d_i d_{i+1} d_{i+2} (indices wrapping around). Each digit did_i 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 T=d1+d2+⋯+dkT = d_1 + d_2 + \cdots + d_k is the total of the ring's digits, then
S=100T+10T+T=111 T=3⋅37⋅T.S = 100T + 10T + T = 111\,T = 3 \cdot 37 \cdot T.
Thus 3737 always divides SS.

No larger prime is guaranteed: the sequence 123,231,312123, 231, 312 is valid and sums to 666=2⋅32⋅37666 = 2 \cdot 3^2 \cdot 37, which is not divisible by 4343 (or by any prime above 3737).

The answer is (D) 37\boxed{\textbf{(D)}\ 37}.

Review in the AoPS books

Similar problems

Problem © Mathematical Association of America (MAA), American Mathematics Competitions. Reproduced for non-commercial educational use. Solution and commentary are original to this site. Also appeared as 2007 12A #11.