Skip to main content

2025 AIME II Problem 2

Problem 2 of 15EasierNumber Theory

Find the sum of all positive integers nn such that n+2n + 2 divides the product 3(n+3)(n2+9).3(n + 3)(n^2 + 9).

Your answer

Integer from 0 to 999
Show solution

Solution

Work modulo n+2,n + 2, where n≡−2.n \equiv -2. Then 3(n+3)(n2+9)≡3⋅1⋅(4+9)=39(modn+2), \begin{gathered} 3(n + 3)(n^2 + 9) \\ \equiv 3 \cdot 1 \cdot (4 + 9) \\ = 39 \pmod{n + 2}, \end{gathered} so n+2n + 2 divides 3(n+3)(n2+9)3(n+3)(n^2+9) exactly when n+2n + 2 divides 39.39. The divisors of 3939 that are at least 33 are 3,3, 13,13, and 39,39, giving n=1,n = 1, 11,11, and 37.37. The sum is 1+11+37=49.1 + 11 + 37 = 49.
AoPS wiki

Tagged: modular arithmetic · divisibility · factor

More practice