A friend recently texted me the following:
Compute the least $x$ such that $\lfloor x^2\rfloor -\lfloor x\rfloor ^2=10$.
Is there a way to do what my friend is asking analytically? I graphed it on Desmos, and got $x\approx 5.91608$. I realized that this should be (and indeed appears to be) $\sqrt{35}$, as then we have $35-25=10$. To show this, I tried my typical way of solving floor problems, which is to break up $x=I+F$, where $I=\lfloor x\rfloor$ and $F=x-\lfloor x\rfloor$. After simplifications, I got $\lfloor F(2I+F)\rfloor =10$. But then upon any further manipulation, I get back the original equation. Is there some further manipulation I am not aware of that lets me solve this analytically? Or am I on the wrong track entirely? Should I perhaps try to prove that $\sqrt{35}$ is the least value of $x$ satisfying the above condition? Sorry if I’m missing something obvious.
$$x = I+ F \qquad (I \in \mathbb Z, \quad 0 \le F < 1).$$
$$\lfloor 2IF+F^2\rfloor =10 \tag{A.}$$
A quick check shows that $I$ needs to be positive.
Let's first consider what happens when
$$F^2 + 2IF = 10 \tag{B.}$$
By the quadratic equation, $$F = \dfrac{-2I+\sqrt{4I^2+40}}{2} = -I+\sqrt{I^2+10}$$
This clearly implies $F \ge 0$. We also need
\begin{align} F &< 1 \\ -I+\sqrt{I^2+10} &< 1 \\ \sqrt{I^2 + 10} &< I + 1 \\ I^2 + 10 &< I^2 + 2I + 1 \\ 10 &< 2I + 1 \\ I &\ge 5 \end{align}
Which leads, unsurprisingly, t0 $x = \sqrt{I^2+10}$ with the restriction $I \ge 5$.
For $I = 5$, we get $F = -5 + \sqrt{35}$. So $x = \sqrt{35}$.
$\lfloor x^2 \rfloor -\lfloor x\rfloor ^2 = 35 - 25 = 10$
In general, there will be a solution when
$$10 \le \lfloor 2IF+F^2\rfloor < 11$$
So our more general equation must have the form
$$ F^2 + 2IF = 10 + \epsilon$$
where $0 \le \epsilon < 1$. Then we would get
$$F = -I+\sqrt{I^2+10 + \epsilon}$$
and $$x = \sqrt{I^2+10 + \epsilon}$$
where $0 \le \epsilon < 1$.