1

I'm trying to find integer solutions to $x + \frac{1}{x}$. Observing the graph of this function, it appears that it approaches the linear function $x=y$ as $x \rightarrow \infty$, which would suggest that no other integer solutions exist.

I don't know how to go about proving this algebraically, assuming such a proof exists. For reference, my attempts, which have not been fruitful, have extended as far as the following.

Ignoring the possible irrational solutions:

Let $x = \frac{m}{n}$ for $m, n \in \mathbb{Z}$

Then $\frac{m}{n}+ \frac{n}{m} \in \mathbb{Z}$

$\implies \frac{m^2+n^2}{nm} \in \mathbb{Z}$

$\implies \frac{(m+n)^2}{mn} -2 \in \mathbb{Z}$

$\implies \frac{(m+n)^2}{mn}\in \mathbb{Z}$ via closure of $\mathbb{Z}$ under subtraction

$\implies \frac{(m+n)^2}{mn} = k$ for some integer $k$

$ (m+n)^2 = kmn$

Assuming $m \neq n$ (as otherwise $x=1$), $k = mn$

Hence all rational solutions of $x$ satisfy, $(m+n)^2=(mn)^2$ for some $m,n \in \mathbb{Z}$.

I'm not sure if the helps reduce the problem.

user1239334
  • 141
  • 6
  • So are you looking for rationals $x$ such that $$x+\frac{1}{x} \in \mathbb{Z}$$ Or are you looking for all real numbers? – S.C.B. Feb 02 '17 at 04:29
  • 1
    The fact that $x+1/x$ is approximately $x$ for large $x$ implies there should be infinitely many reals $x$ for which $x+1/x$ is an integer. Just look at the graph - pick any integer on the $y$-axis, draw a horizontal line through it, and see that it intersects the curve $y=x+1/x$. To solve $x+1/x=n$, just multiply both sides by $x$ and then you have a quadratic equation. – anon Feb 02 '17 at 04:29
  • @S.C.B I'm looking at all real numbers, but I thought to first show that any rational solution of $x$ cannot satisfy the equation since I didn't know how to initially incorporate irrationals. – user1239334 Feb 02 '17 at 04:31
  • @user1239334 To exclude rational solutions other than $\pm1$, write the equation as $x^2 - n x + 1 = 0$ then use the rational root theorem. – dxiv Feb 02 '17 at 04:31
  • @user1239334 You should use quadratics. – S.C.B. Feb 02 '17 at 04:47
  • @S.C.B With quadratics the solutions come easily -- I just had trouble when I was trying to randomly substitute in values for $x$ to get an idea of what the answers look like. I also mistook a function having integer solutions with a function having integer solutions for integer inputs when I was looking at the graph. Thank you. – user1239334 Feb 02 '17 at 04:51
  • @S.C.B I did earlier but it said I didn't have enough reputation. Appears to be fixed now. – user1239334 Feb 02 '17 at 04:53
  • I think for rational solutions, assuming $x = \frac mn$ is written in lowest terms (so $m, n$ coprime), the fact that $\frac{m^2+ n^2}{mn} \in \Bbb Z$ implies that $m$ and $n$ divide each other -- a contradiction unless $m = 1 = n$. – pjs36 Feb 02 '17 at 05:11

1 Answers1

2

There are an infinite number of real numbers $x$ such that $$x+\frac{1}{x} \in \Bbb{Z}$$ This can be proved as follows. $$x+\frac{1}{x}=k \implies x^2-kx+1=0 \implies x=\frac{k \pm \sqrt{k^2-4}}{2}$$ So if $k \ge 2$, $k \le -2$, there is always a real number $x$ that satisfies $x+\frac{1}{x}=k$. This is true for integers $k$, so there are a infinite number of reals that satisfy that $x+\frac{1}{x}$ is an integer.

However, with the restriction that $x$ is a rational, we have $x= \pm 1$. This is because in order for a number of $$\frac{k \pm \sqrt{k^2-4}}{2}$$ to be a rational, we must have that $k^2-4$ is a perfect square. However, if $k \ge 3$, we have that $$(k-1)^2<k^2-4<k^2$$ so $k^2-4$ is not a square. Similarly, if $k \le -3$, we have that $k^2-4$ is not a square. So since $k$ is an integer, this restricts $k$ to the cases where $k=\pm 2$, which is when $x= \pm 1$.

S.C.B.
  • 22,768