AMC 10 Step by Step

2026 AMC 10B Problem 6

P1-10~2 minPrint

For how many integers nn is n2−1n+2\frac{n^2-1}{n+2} also an integer?

Log in to save your progress.
Show solution without answering

Key insight

The top is 3 more than a multiple of n + 2. So the fraction is a whole number exactly when n + 2 divides 3.

Solution

Start by trying a few values of nn.

nn−1-100112233
n2−1n+2\dfrac{n^2-1}{n+2}01=0\dfrac{0}{1} = 0−12-\dfrac{1}{2}03=0\dfrac{0}{3} = 034\dfrac{3}{4}85\dfrac{8}{5}

Some work and some do not, and trying values one at a time never tells us when to stop. So rewrite the fraction in a form that shows exactly when it is an integer.

1. Make the top look like a multiple of the bottom. The bottom is n+2n + 2. A nearby expression that has n+2n+2 as a factor is n2−4=(n−2)(n+2)n^2 - 4 = (n-2)(n+2). The top, n2−1n^2 - 1, is 33 more than that:
n2−1=(n2−4)+3=(n−2)(n+2)+3.n^2 - 1 = (n^2 - 4) + 3 = (n-2)(n+2) + 3.

2. Split the fraction.
n2−1n+2=(n−2)(n+2)n+2+3n+2=(n−2)+3n+2.\frac{n^2-1}{n+2} = \frac{(n-2)(n+2)}{n+2} + \frac{3}{n+2} = (n - 2) + \frac{3}{n+2}.

  1. Decide when this is an integer. The part n−2n - 2 is always an integer. So the whole thing is an integer exactly when 3n+2\frac{3}{n+2} is an integer, which means n+2n + 2 must divide 33 evenly.
  1. List the divisors of 33. Do not forget the negative ones: 11, 33, −1-1, −3-3.
n+2n + 21133−1-1−3-3
nn−1-111−3-3−5-5
n2−1n+2\dfrac{n^2-1}{n+2}01=0\dfrac{0}{1} = 003=0\dfrac{0}{3} = 08−1=−8\dfrac{8}{-1} = -824−3=−8\dfrac{24}{-3} = -8

All four really do give integers. (The value n=−2n = -2 would make the bottom zero, but it is not on the list anyway.)

So there are 44 such integers: n=−5,−3,−1,1n = -5, -3, -1, 1.

The answer is (C) 4\boxed{\textbf{(C)}\ 4}.

Why this works

A fraction like this can be split into a part that is always an integer plus a small leftover, a constant over the bottom. Only the leftover decides the question, and a constant has just a few divisors, so the list of answers is short. Whenever a problem asks when a fraction with nn on top and bottom is an integer, divide first, and remember that "integers" includes negatives.

Alternative approach

Rename the bottom. Let m=n+2m = n + 2, so n=m−2n = m - 2. Then the top is
n2−1=(m−2)2−1=m2−4m+3,n^2 - 1 = (m-2)^2 - 1 = m^2 - 4m + 3,
and the fraction becomes
m2−4m+3m=m−4+3m.\frac{m^2 - 4m + 3}{m} = m - 4 + \frac{3}{m}.
This is an integer exactly when mm divides 33, so mm is 11, 33, −1-1, or −3-3. Each value of mm gives one value of n=m−2n = m - 2, so there are 44 values of nn.

Concise solution

A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.

Since n2−1=(n−2)(n+2)+3n^2 - 1 = (n-2)(n+2) + 3,
n2−1n+2=n−2+3n+2.\frac{n^2-1}{n+2} = n - 2 + \frac{3}{n+2}.
This is an integer exactly when n+2n + 2 divides 33, so n+2n + 2 is one of 1,3,−1,−31, 3, -1, -3 and nn is one of −1,1,−3,−5-1, 1, -3, -5. That is 44 integers.

The answer is (C) 4\boxed{\textbf{(C)}\ 4}.

Review in the AoPS books

Similar problems

Problem © Mathematical Association of America (MAA), American Mathematics Competitions. Reproduced for non-commercial educational use. Solution and commentary are original to this site.