DR.WANG Mathematics中文
AIME / TMUA · Intermediate · Original practice

Divisibility with a fixed remainder

Find all positive integers n such that n+5 divides n^2 + 4n + 19.

Hint

Write the numerator as a multiple of n+5 plus a constant.

Show answer and methods 2 methods

Answer

n is 1, 3, 7, or 19.

Method 1 Reduce to a divisor list

The identity n^2 + 4n + 19 = (n+5)(n-1) + 24 shows that divisibility is equivalent to n+5 dividing 24. Since n is positive, n+5 is at least 6. The positive divisors of 24 at least 6 are 6, 8, 12, and 24. Subtracting 5 yields exactly the four values listed.

Method 2 Bound the quotient and solve four linear equations

If the quotient is the integer q, let k=q-n. Expanding gives (k+1)n=19-5k. For n>=1 the numerator exceeds (n-1)(n+5) by 24, and it is at most (n+3)(n+5), since the latter minus the numerator is 4(n-1). Thus -1<k<=3. Substituting k=0,1,2,3 into the linear equation yields n=19,7,3,1 respectively. Each satisfies the equation with integer q=n+k and so satisfies the original divisibility.