How to solve $\lfloor x \rfloor + \lfloor \frac{1}{x} \rfloor = 1$? I am stuck with this equation. All I could do is this:
$\lfloor x \rfloor$ = $\lfloor n + m \rfloor$ such that $n \in N$ and $m<1$.
We get:
$\lfloor x \rfloor + \lfloor \frac{1}{x} \rfloor = 1$
$\lfloor n + m \rfloor + \lfloor \frac{1}{n+m} \rfloor = 1$
$n + \lfloor m \rfloor + \lfloor \frac{1}{n+m} \rfloor = 1$
$n + 0 + \lfloor \frac{1}{n+m} \rfloor = 1$
$n + \lfloor \frac{1}{n+m} \rfloor = 1$
From here on I have no idea what to do!
Edit: It is easy to see that any value $1<x<2$ satisfies the equation, but can I find all the solutions?

Hints:

*

*For $x>0$ and $x\neq 1$, one of the two values, $x$ or $\frac1x$, is between $0$ and $1$, so the floor of that value will be $0$.

*If $x$ is a solution, then so is $\frac1x$. This means you can first only focus on $x>1$, to get half of the solutions, then know that this is just half of the solutions.

