2023 AMC 10B Problem 14
How many ordered pairs of integers satisfy the equation ?
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 looks almost like . It is just one short, so add to both sides.
1. Make a square.
2. Give a name. Let . The left side is a perfect square, so must be a perfect square too.
3. Try small values of .
| perfect square? | no | no | yes | yes | no | no | no |
4. Why bigger values never work.
- If is or more: is bigger than , but smaller than . It sits strictly between two neighboring squares, so it is not a square. (Example: gives , between and .)
- If is or less: write with . Then , which is smaller than but bigger than . Again it is stuck between two neighboring squares. (Example: gives , between and .)
5. So or . In both cases , so , which means .
- : , so and .
- : , so . That gives and .
6. Check one. : left side , right side . It works.
There are ordered pairs: , , .
The answer is .
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, , and then the trap finished it. When you see , remember it is close to .
Alternative approach
Compare sizes. If both and are at least in size (ignoring sign), let be the larger of and . The right side is at least , but the left side is at most . So there are no solutions there. That leaves the cases where or is , or :
- : the equation is , so .
- : , so .
- : , so .
- give the same pairs with the roles swapped.
Again the pairs are , , .
Concise solution
A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.
Add to both sides to complete a square on the left:
Let . Then must be a perfect square.
If , then , so is strictly between consecutive squares: impossible.
If , then (the left inequality is , the right is ), so lies strictly between the consecutive squares and : impossible again.
So or , and in both cases , so .
- : with forces .
- : gives , so and .
Three ordered pairs satisfy the equation: , , .
The answer is .
Review in the AoPS books
- Introduction to Number Theory, Chapter 7: Algebra With Integers
- Introduction to Algebra, Chapter 11: Special Factorizations (§11.2, §11.3, §11.5)
- Introduction to Algebra, Chapter 22: Special Manipulations
- Introduction to Algebra, Chapter 10: Quadratic Equations – Part 1 (§10.4)
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.