Maths Olympiad Prep

Track / Stage 3 / 72 of 260 #72 of 1964

Problem 72

AMC 10/12, early questions
Number theory Difficulty 3.3 Multiple choice

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?

Pick one

Official 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 kk be the sum of the units digits in all the terms. Then S=111k=337kS=111k=3 \cdot 37k, so SS must be divisible by 37 (D)37\ \mathrm{(D)}. To see that it need not be divisible by any larger prime, the sequence 123,231,312123, 231, 312 gives S=666=23237(D)S=666=2 \cdot 3^2 \cdot 37\Rightarrow \mathrm{\boxed{(D)}}.

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.