%% LyX 2.3.4.2 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \documentclass[english]{extarticle} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage{amsmath} \usepackage{amssymb} \usepackage{babel} \begin{document} \title{Solving $x-\lfloor x\rfloor=\frac{1}{x}$} \author{Amit Yaron} \maketitle \section*{How to solve the equation?} $x$ cannot be zero, so let us first multiply both sides by $x$: \begin{multline*} x^{2}-\lfloor x\rfloor x=1\Rightarrow\\ \Rightarrow x^{2}-x\lfloor x\rfloor-1=0 \end{multline*} Great! No, we can substitute \begin{alignat*}{1} n & =\lfloor x\rfloor \end{alignat*} and solve for $x$: \begin{multline*} x^{2}-nx-1=0\Rightarrow\\ \Rightarrow x=\frac{n\pm\sqrt{n^{2}+4}}{2} \end{multline*} Now, we need to find values of $n$, for which: \[ n\leq xn^{2}\Rightarrow\sqrt{n^{2}+4}>n\Rightarrow\frac{n-\sqrt{n^{2}+4}}{2}<0