DR.WANG Mathematics中文

2025 AIME II · Question 2

Number theory · modular arithmetic · divisibility · factor

Problem outline

Sum the positive integers nn satisfying 3(n+3)(n2+9)≡0(modn+2)3(n+3)(n^2+9)\equiv0\pmod{n+2}.

Show answer and methods 1 methods

Answer

049

Method 1 Evaluate a polynomial modulo its linear divisor

Write d=n+2d=n+2. Modulo dd we may replace nn by −2-2, leaving the constant 3(1)(4+9)=393(1)(4+9)=39. Thus d∣39d\mid39 is both necessary and sufficient.

The divisors of 3939 at least 33 are 3,13,393,13,39. The corresponding nn are 1,11,371,11,37, whose sum is 4949.

Source and attribution

The outline and worked methods on this page were prepared for DR.WANG Mathematics.

Original question (external)