Is ${x+\frac 1x}$ equal an integer number, only $x=1$ ? If, $x>0$.

I'm looking for this question in MSE. But,I could not find a similar one.

Is ${x+\dfrac 1x}$ equal an integer number, only $x=1$ ? If, $x>0$.

I can prove this only when $x\in \mathbb{N}$ but not for $x \in \mathbb{R}^+$.

Remark: the duplicate link just answer the case where $x \in \mathbb{Q}$.

• If you allow irrational, numbers, $x+\frac{1}{x}$ can be any positive integer $N>1$ – Peter Oct 2 '17 at 11:53
• Did you see this MSE-question? – Dietrich Burde Oct 2 '17 at 11:58
• @Peter ohh, yes I understood. For example, $x+\frac 1x=7$ We can solve this equation. – Math Oct 2 '17 at 11:59
• If $x$ is an integer, then the denominator (in lowest terms) of $x+1/x$ is $x$. So in that case we conclude that $x+1/x$ is integer only if $x=1$ or $x=-1$. – GEdgar Oct 2 '17 at 12:02
• @VidyanshuMishra actually the linked post just answer the case where $x$ is rational. – Siong Thye Goh Oct 2 '17 at 12:34

Let $x>0$,$$x + \frac{1}{x} = k \in \mathbb{Z}$$

$$x^2 + 1 = kx$$

$$x^2-kx+1=0$$

$$x = \frac{k\pm\sqrt{k^2-4}}{2}$$

Now, let $k=3$, then $x=\frac{3+\sqrt{5}}{2}$, hence $x$ need not be equal to $1$.

• Are $11$ seconds sufficient to read and understand this post ? – Peter Oct 2 '17 at 12:00
• @peter why is that your or the OP's attention span ? – user451844 Oct 2 '17 at 12:01
• I was just surprised that an upvote appeared $11$ seconds after the post, nothing more. – Peter Oct 2 '17 at 12:02
• @Peter I have seen upvotes coming even after 5 seconds. Sometimes people upvote first and then read the post because even first sight of lost sometimes give an exact idea of mathematical consistency of posy to someone who already know the answer. – I am Back Oct 2 '17 at 12:05
• @Peter I was the first to upvote, and after 10 seconds, it appeared to me that this answer points out that $x+\frac1x=3$ has a non-integer solution, so I upvoted the answer. Then I checked it, of course (but that was after the 11 seconds...) – 5xum Oct 2 '17 at 12:09

The solutions of

$$x+\frac1x=n$$ are

$$\frac{n\pm\sqrt{n^2-4}}2.$$

For $x\in\mathbb R$, there are infinitely many solutions.

If you restrict yourself to $x\in\mathbb Z$, obviously the inverse of an integer other than $\pm1$ is not an integer.

If you restrict $x$ to $\mathbb Q$, by the formula above, $n^2-4$ must be a perfect square (the square root of an integer is never a proper fraction). Then

$$n^2-4=m^2$$ has no other solutions than $n=\pm2,m=0$, because the difference between two different squares is at least $2n+1$.

• $x > 0$. $~~~~~$ – A---B Oct 2 '17 at 12:05
• @A---B: and ??? – Yves Daoust Oct 2 '17 at 12:07
• $-1 < 0$. $~~~~~$ – A---B Oct 2 '17 at 12:08
• @A---B: and ? In what way does that invalidate my answer ? – Yves Daoust Oct 2 '17 at 12:09
• @A---B While your method of symbollic communication may work for other members of your species, on planet Earth, we prefer to communicate with sentences. – 5xum Oct 2 '17 at 12:10

For any positive integer $n > 2$, the equation $$x + {\small{\frac{1}{x}}} = n$$ has two positive real roots (the roots of $x^2 - nx + 1 = 0$), so without further restrctions on $x$, it's not true that for $x > 0$, the expression $x + {\large{\frac{1}{x}}}$ is an integer only if $x=1$.

But if you require $x$ to be a positive integer, with $x > 1$, then $$x < x + {\small{\frac{1}{x}}} < x + 1$$ so $x + {\large{\frac{1}{x}}}$ is trapped between two consecutive integers, hence can't be an integer.

Next suppose $x$ is a positive rational number, with $x \ne 1$, such that $x + {\large{\frac{1}{x}}}$ is a positive integer, equal to $n$, say. \begin{align*} \text{Then}\;\;&x + {\small{\frac{1}{x}}} = n\\[4pt] \implies\;&x^2 + 1 = nx\\[4pt] \implies\;&x^2 -nx + 1 = 0\\[4pt] \end{align*} but then, by the rational root test, $x$ must be an integer, which we already know is impossible (since $x > 0,\;x \ne 1$).

To recap:

• For $x > 0$, if you allow irrational values of $x$, the expression $x + {\large{\frac{1}{x}}}$ can be made equal to any positive integer $n > 2$, for some some positive irrational number $x$.
• For positive rational values of $x$, the expression $x + {\large{\frac{1}{x}}}$ is an integer if and only if $x=1$.

Assume $n>1$, then $n<n+\frac{1}{n}<n+1$

• The expression is $x+\frac1x$, not $1+\frac1x$. – 5xum Oct 2 '17 at 12:00
• oh, shoot. I'm blind. – Alvin Lepik Oct 2 '17 at 12:00
• to be fair it originally did say 1+1/x so you weren't completely blind just to the updates. – user451844 Oct 2 '17 at 12:02