2025 AIME II Problem 2

Below is the professionally curated solution for Problem 2 of the 2025 AIME II, from LIVE by Po-Shen Loh. You can also try the full timed exam, view all 2025 AIME II solutions, or check the answer key.

All of the real AMC 8, AMC 10, AMC 12, and AIME problems in our complete solution collection are used with official legal permission of the Mathematical Association of America (MAA).

Concepts:modular arithmeticdivisibilityfactor

Difficulty rating: 1890

2.

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).

Solution:

Work modulo n+2,n + 2, where n2.n \equiv -2. Then 3(n+3)(n2+9)31(4+9)=39(modn+2),3(n + 3)(n^2 + 9) \equiv 3 \cdot 1 \cdot (4 + 9) = 39 \pmod{n + 2}, 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.

← Problem 1Full ExamProblem 3

Problem 2 in Other Years