Find all positive integers $n$ such that the equation $\frac{1}{x} + \frac{1}{y} = \frac{1}{n}$ has exactly $2011$ positive integer solutions $(x,y)$ where $x \leq y$.
1. We start with the given equation:
   \[
   \frac{1}{x} + \frac{1}{y} = \frac{1}{n}
   \]
   Multiplying through by \(nxy\) to clear the denominators, we get:
   \[
   ny + nx = xy
   \]
   Rearranging terms, we obtain:
   \[
   xy - nx - ny = 0
   \]
   Adding \(n^2\) to both sides, we have:
   \[
   xy - nx - ny + n^2 = n^2
   \]
   Factoring the left-hand side, we get:
   \[
   (x - n)(y - n) = n^2
   \]

2. We need to find the number of positive integer solutions \((x, y)\) such that \(x \leq y\). This is equivalent to finding the number of factor pairs \((a, b)\) of \(n^2\) such that \(a \leq b\), where \(a = x - n\) and \(b = y - n\).

3. The number of factor pairs \((a, b)\) of \(n^2\) is equal to the number of divisors of \(n^2\). Let \(d(n^2)\) denote the number of divisors of \(n^2\). Since \(x \leq y\), we are interested in the number of pairs \((a, b)\) such that \(a \leq b\). If \(d(n^2)\) is the total number of divisors, then the number of such pairs is:
   \[
   \left\lceil \frac{d(n^2)}{2} \right\rceil
   \]
   We are given that this number is exactly 2011:
   \[
   \left\lceil \frac{d(n^2)}{2} \right\rceil = 2011
   \]

4. This implies:
   \[
   d(n^2) = 2 \times 2011 - 1 = 4021
   \]
   The number 4021 must be the number of divisors of \(n^2\). 

5. To have exactly 4021 divisors, \(n^2\) must be of the form \(p^{4020}\) where \(p\) is a prime number. This is because the number of divisors of \(p^k\) is \(k + 1\). Therefore, if \(n^2 = p^{4020}\), then \(d(n^2) = 4020 + 1 = 4021\).

6. Thus, \(n\) must be of the form \(p^{2010}\) where \(p\) is a prime number.

The final answer is \( \boxed{ n = p^{2010} } \) where \(p\) is a prime number.