For each integer , let be the sum of all products , where and are integers and . What is the sum of the 10 least values of such that is divisible by ?
- A)
- B)
- C)
- D)
- E)
Answer
B
Key insight
S_n = ((sum)^2 - sum of squares)/2 = (n-1)n(n+1)(3n+2)/24, and since 3 never divides 3n+2, S_n is a multiple of 3 exactly when 9 divides (n-1)n(n+1).
Solution
Expanding gives every once and every product with twice, so
Factor out inside the bracket: , and . Hence
Since , is divisible by exactly when the numerator is divisible by . The factor is never a multiple of , so we need . At most one of three consecutive integers is a multiple of , so one of them must be a multiple of : or .
The ten smallest such are , with sum
The answer is .
Why this works
"Sum of pairwise products" is always ; the closed form then reveals the arithmetic. The subtle step is that a factor of in the denominator raises the requirement from numerator to numerator. Quick check: and are not multiples of , while is.
Alternative approach
Work mod recursively: . Computing residues for gives , with period and zeros at ; this confirms the list.
The trap
Forgetting that the division by 24 eats one factor of 3, and concluding S_n is always divisible by 3 because n-1, n, n+1 always contain a multiple of 3.
Common mistakes
- Forgetting that the division by 24 eats one factor of 3, and concluding S_n is always divisible by 3 because n-1, n, n+1 always contain a multiple of 3.
- Including (where ) even though the problem requires , which shifts the list and the sum.
Techniques
Apply an identity: SFFT, sum of squares, difference of cubes, Vieta · Set up the equation/formula and compute; no special trick needed