AMC 10 Step by Step

2023 AMC 10B Problem 14

P11-15~5 minPrint

How many ordered pairs of integers (m,n)(m,n) satisfy the equation m2+mn+n2=m2n2m^2+mn+n^2 = m^2n^2 ?

Log in to save your progress.
Show solution without answering

Key insight

Add mn to both sides to get (m+n) squared on the left. Then (mn) squared plus mn must be a perfect square, so mn is 0 or -1.

Solution

The left side m2+mn+n2m^2 + mn + n^2 looks almost like (m+n)2=m2+2mn+n2(m + n)^2 = m^2 + 2mn + n^2. It is just one mnmn short, so add mnmn to both sides.

1. Make a square.
m2+2mn+n2=m2n2+mn,so(m+n)2=(mn)2+mn.m^2 + 2mn + n^2 = m^2n^2 + mn, \quad\text{so}\quad (m + n)^2 = (mn)^2 + mn.
2. Give mnmn a name. Let p=mnp = mn. The left side is a perfect square, so p2+pp^2 + p must be a perfect square too.
3. Try small values of pp.

pp−3-3−2-2−1-100112233
p2+pp^2 + p6622000022661212
perfect square?nonoyesyesnonono

4. Why bigger values never work.
- If pp is 11 or more: p2+pp^2 + p is bigger than p2p^2, but smaller than p2+2p+1=(p+1)2p^2 + 2p + 1 = (p + 1)^2. It sits strictly between two neighboring squares, so it is not a square. (Example: p=3p = 3 gives 1212, between 99 and 1616.)
- If pp is −2-2 or less: write p=−qp = -q with q≥2q \ge 2. Then p2+p=q2−qp^2 + p = q^2 - q, which is smaller than q2q^2 but bigger than q2−2q+1=(q−1)2q^2 - 2q + 1 = (q - 1)^2. Again it is stuck between two neighboring squares. (Example: p=−3p = -3 gives 66, between 44 and 99.)
5. So p=0p = 0 or p=−1p = -1. In both cases p2+p=0p^2 + p = 0, so (m+n)2=0(m + n)^2 = 0, which means n=−mn = -m.
- p=0p = 0: mn=−m2=0mn = -m^2 = 0, so m=0m = 0 and n=0n = 0.
- p=−1p = -1: mn=−m2=−1mn = -m^2 = -1, so m2=1m^2 = 1. That gives (1,−1)(1, -1) and (−1,1)(-1, 1).
6. Check one. (1,−1)(1, -1): left side 1−1+1=11 - 1 + 1 = 1, right side 1⋅1=11 \cdot 1 = 1. It works.

There are 33 ordered pairs: (0,0)(0, 0), (1,−1)(1, -1), (−1,1)(-1, 1).

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

Why this works

A useful test for "is this a perfect square?" is to trap the number strictly between two neighboring squares; if it is trapped, it cannot be a square. Completing the square on the left turned the two-letter equation into a question about one number, p=mnp = mn, and then the trap finished it. When you see m2+mn+n2m^2 + mn + n^2, remember it is close to (m+n)2(m + n)^2.

Alternative approach

Compare sizes. If both mm and nn are at least 22 in size (ignoring sign), let MM be the larger of m2m^2 and n2n^2. The right side m2n2m^2n^2 is at least 4M4M, but the left side m2+mn+n2m^2 + mn + n^2 is at most M+M+M=3MM + M + M = 3M. So there are no solutions there. That leaves the cases where mm or nn is 00, 11 or −1-1:

  • m=0m = 0: the equation is n2=0n^2 = 0, so n=0n = 0.
  • m=1m = 1: 1+n+n2=n21 + n + n^2 = n^2, so n=−1n = -1.
  • m=−1m = -1: 1−n+n2=n21 - n + n^2 = n^2, so n=1n = 1.
  • n=0,1,−1n = 0, 1, -1 give the same pairs with the roles swapped.

Again the pairs are (0,0)(0, 0), (1,−1)(1, -1), (−1,1)(-1, 1).

Concise solution

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

Add mnmn to both sides to complete a square on the left:
(m+n)2=m2n2+mn.(m + n)^2 = m^2 n^2 + mn.
Let p=mnp = mn. Then (m+n)2=p2+p(m+n)^2 = p^2 + p must be a perfect square.

If p≥1p \ge 1, then p2<p2+p<p2+2p+1=(p+1)2p^2 < p^2 + p < p^2 + 2p + 1 = (p+1)^2, so p2+pp^2 + p is strictly between consecutive squares: impossible.

If p≤−2p \le -2, then (p+1)2=p2+2p+1<p2+p<p2(p+1)^2 = p^2 + 2p + 1 < p^2 + p < p^2 (the left inequality is p+1<0p + 1 < 0, the right is p<0p < 0), so p2+pp^2 + p lies strictly between the consecutive squares (∣p∣−1)2(|p| - 1)^2 and ∣p∣2|p|^2: impossible again.

So p=0p = 0 or p=−1p = -1, and in both cases (m+n)2=0(m+n)^2 = 0, so n=−mn = -m.

  • p=0p = 0: mn=0mn = 0 with n=−mn = -m forces m=n=0m = n = 0.
  • p=−1p = -1: mn=−m2=−1mn = -m^2 = -1 gives m=±1m = \pm 1, so (1,−1)(1, -1) and (−1,1)(-1, 1).

Three ordered pairs satisfy the equation: (0,0)(0,0), (1,−1)(1,-1), (−1,1)(-1,1).

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

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.