The harmonic mean of two positive integers is the reciprocal of the arithmetic mean of their reciprocals. For how many ordered pairs of positive integers $(x,y)$ with $x<y$ is the harmonic mean of $x$ and $y$ equal to $6^{20}$?
$\frac{2xy}{x+y}=6^{20}$. With $k=\frac{6^{20}}2=2^{19}3^{20}$, this is $xy=k(x+y)$, i.e.\ $(x-k)(y-k)=k^2$.
Both factors are positive (if both were negative, $x,y<k$ and the product would be less than $k^2$). So solutions correspond to divisors of $k^2=2^{38}3^{40}$, which has $39\cdot41=1599$ divisors.
Excluding $x=y=2k$, half of the remaining $1598$ have $x<y$, that is $799$. The answer is $\boxed{799}$.
The harmonic mean of two positive integers is the reciprocal of the arithmetic mean of their reciprocals. For how many ordered pairs of positive integers $(x,y)$ with $x<y$ is the harmonic mean of $x$ and $y$ equal to $10^{15}$?