2007 AMC 12A Problems/Problem 11

Revision as of 15:20, 9 September 2007 by 1=2 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Problem

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

Solution

A given digit appears as the hundreds digit, the tens digit, and the units digit of a term the same number of times. Let k be the sum of the units digits in all the terms. Then S=111k=3*37k, so S must be divisible by 37. To see that it need not b divisible by any larger prime, the sequence 123, 231, 312 gives S=666=2*9*37

See also