Problem 713: (2000 AIME I, 6)
For how many ordered pairs $(x,y)$ of integers is it true that $0 < x < y < 10^{6}$ and that the arithmetic mean of $x$ and $y$ is exactly $2$ more than the geometric mean of $x$ and $y$?
- $\frac{x+y}2-\sqrt{xy}=\frac{(\sqrt y-\sqrt x)^2}2=2$, so $\sqrt y=\sqrt x+2$ and $y=x+4+4\sqrt x$. So $x$ is a perfect square.
- $x=a^2$, $y=(a+2)^2$ with $a\ge1$ and $(a+2)^2<10^6$, i.e.\ $a\le997$.
- There are $997$ pairs. The answer is $\boxed{997}$.
For how many ordered pairs $(x,y)$ of integers is it true that $0 < x < y < 10^{5}$ and that the arithmetic mean of $x$ and $y$ is exactly $9$ more than the geometric mean of $x$ and $y$?