1

Find all positive integers that makes the result of $$\frac{1}{x}+\frac{1}{y}$$

integers

JEDW
  • 29
  • 1
    Are you sure you stated that properly, because it looks suspiciously like it only has two answers, since the inputs have to be positive integers. – Terra Hyde Jul 15 '15 at 03:54
  • @TerraHyde you mean $1,2$, but how – JEDW Jul 15 '15 at 03:57
  • http://math.stackexchange.com/questions/1166999/find-all-integers-x-y-and-z-such-that-frac1x-frac1y-frac/1167475#1167475 – individ Jul 15 '15 at 04:35

3 Answers3

4

We have: $n = \dfrac{1}{x}+\dfrac{1}{y}=\dfrac{x+y}{xy}\to x+y=nxy\to x = nxy-y=y(nx-1)\to y = \dfrac{x}{nx-1}$. Thus $nx - 1 \leq x \to 1\leq n \leq \dfrac{x+1}{x} \leq 2$. Can you continue?

DeepSea
  • 77,651
3

The expression $$\frac1x+\frac1y$$ where $x$ and $y$ are positive integers takes integer values only when $$x=y=1$$ OR $$x=y=2$$.

To prove this, assume without loss of generality that $x\geq y>2$. Notice that $$\frac1x\leq\frac1y<\frac12$$ so that $$\frac1x+\frac1y<2\left(\frac12\right)=1$$ Clearly, no integer values can be obtained. To show that the selected values force an integer outcome, simply substitute them.

EDIT: To handle the case when $x=1$ and $y>1$ and the case $x=2$ and $y>2$. Observe that if $x=1$ and $y>1$, then the expression becomes $1+\frac1y$. As $0<\frac1y<1$ for this case, the result is not an integer. Similarly, if $x=2$ and $y>2$, then the expression is $\frac12+\frac1y$, but since $0<\frac1y<\frac12$, the result is again not an integer.

Terra Hyde
  • 1,102
0

So to begin with, let's state the obvious. $(1,1)$

Then there come halves. We can sum the halves to zero or to a nonzero integer. By this I mean $(2,2)$

Other than that, if x or y > 2, then the maximum sum, which would be $\frac{2}{min(x,y)}$, would be less than one. If x or y was one in this situation, then the expression wouldn't equate to an integer. Plugging zero into the equation would make the sum undefined.