Skip to main content

2021 Fall AMC 10B Problem 22

Problem 22 of 25HarderAlgebraNumber Theory

For each integer n2,n\ge2, let SnS_n be the sum of all products jk,jk, where jj and kk are integers and 1j<kn.1\le j<k\le n. What is the sum of the 1010 least values of nn such that SnS_n is divisible by 3?3?

Answer choices

Show solution

Solution

When passing from Sn1S_{n-1} to Sn,S_n, the new terms are jnjn for 1j<n.1\le j\lt n. Their sum is n(1+2++(n1))=n2(n1)2. \begin{gathered} n(1+2+\cdots+(n-1))\\ =\frac{n^2(n-1)}2. \end{gathered} Modulo 3,3, this increment is 00 when n0n\equiv0 or 1(mod3),1\pmod3, and is 22 when n2(mod3).n\equiv2\pmod3. Since S2=2,S_2=2, the sequence becomes divisible by 33 after the third occurrence of a number congruent to 2(mod3),2\pmod3, namely at n=8.n=8. Then SnS_n stays divisible by 33 for n=8,9,10,n=8,9,10, and the same pattern repeats every 99 in n.n. The ten least values are 8,9,10,17,18,19,26,27,28,35.8,9,10,17,18,19,26,27,28,35. Their sum is 197.197. Thus, the answer is B .

More practice

Concepts: modular arithmetic · summation · pattern recognition

Problem text and solution from the LIVE past-contest archive. See also the AoPS wiki page for community solutions.