2000 AIME I Problem 6

Attempt Problem 6 of the 2000 AIME I below, then check your answer against the professionally curated solution from LIVE by Po-Shen Loh. You can also try the full timed exam, view all 2000 AIME I solutions, or check the answer key.

All problems are used with official legal permission of the Mathematical Association of America (MAA).

6.

For how many ordered pairs (x,y)(x, y) of integers is it true that 0<x<y<1060 \lt x \lt y \lt 10^6 and that the arithmetic mean of xx and yy is exactly 22 more than the geometric mean of xx and y?y?
Answer: 997
Concepts:perfect squareradicalalgebraic manipulation
Small hint:
The condition rearranges to (y−x)2=4,(\sqrt{y} - \sqrt{x})^2 = 4, so y=x+2\sqrt{y} = \sqrt{x} + 2
Big hint:
Show x\sqrt{x} must be an integer, so x=a2x = a^2 and y=(a+2)2;y = (a + 2)^2; count the aa with y<106y \lt 10^6
Solution:
The condition is x+y2=xy+2,\frac{x + y}{2} = \sqrt{xy} + 2, that is, x+y−2xy=4,x + y - 2\sqrt{xy} = 4, so (y−x)2=4(\sqrt{y} - \sqrt{x})^2 = 4 and (as y>xy \gt x) y−x=2.\sqrt{y} - \sqrt{x} = 2. Note xy=x+y−42\sqrt{xy} = \frac{x + y - 4}{2} is rational, hence y+x=y−xy−x=y−x2\sqrt{y} + \sqrt{x} = \frac{y - x}{\sqrt{y} - \sqrt{x}} = \frac{y - x}{2} is rational too, so x\sqrt{x} and y\sqrt{y} are rational — and a rational square root of an integer is an integer.
Therefore x=a2x = a^2 and y=(a+2)2y = (a + 2)^2 for a positive integer a.a. The constraint y<106y \lt 10^6 means a+2≤999,a + 2 \le 999, so aa ranges over 1,2,…,997,1, 2, \ldots, 997, and each value gives a valid pair.
Hence there are 997997 ordered pairs.
LIVE by Po-Shen Loh
Programs

LIVE Classes

Self-Paced Classes

Stars

Scholarship

About Us

Who Is Po-Shen Loh?

Email Contact

Newsletter

Jobs

Become a Star

For a more Thought Full world.

© 2026 Expii, Inc.