-1

So for an iff, I know you must prove it both ways. I have proven the converse by the idea that

$\frac{a}{b} + \frac{b}{a} = \frac{a}{a} + \frac{a}{a} = 2 $ which is an integer.

But I am struggling with the direct proof that if $\frac{a}{b} + \frac{b}{a}$ is an integer then $a = b$.

I have gotten to $ab \mid a^2 + b^2$ but I end up trying to justify why $\frac{b^2}{a}$ is not an integer which I cannot even prove intuitively.

2 Answers2

3

HINT:

Let $\dfrac ab+\dfrac ba=k\iff\left(\dfrac ab\right)^2-k\dfrac ab+1=0$

$\implies\dfrac ab=\dfrac{k\pm\sqrt{k^2-4}}2$

We need $k^2-4$ to be perfect square $=r^2$(say)

$(k+r)(k-r)=4$

2

$\gcd(a,b)=1$ (Otherwise, the numerator and denominator can be reduced)

Let $$\frac ab+ \frac ba =m, m \in \mathbb Z$$ Then $$a^2+b^2=abm$$ Then $a|b \Rightarrow a=1$. Similarly,$b=1$

Roman83
  • 17,884
  • 3
  • 26
  • 70