I would like to calculate $\lim_ {n \to \infty} {\frac{n+\lfloor \sqrt{n} \rfloor^2}{n-\lfloor \sqrt{n} \rfloor}}$ I would like to calculate the following limit: $$\lim_ {n \to \infty} {\frac{n+\lfloor \sqrt{n} \rfloor^2}{n-\lfloor \sqrt{n} \rfloor}}$$
where $\lfloor x \rfloor$ is floor of $x$ and $x ∈ R$.
Now I know the result is $2$, but I am having trouble getting to it. Any ideas would be greatly appreciated.

You may observe that, as $n \to \infty$,
$$
\begin{align}
 {\frac{n+\lfloor \sqrt{n} \rfloor^2}{n-\lfloor \sqrt{n} \rfloor}}&={\frac{2n+(\lfloor \sqrt{n} \rfloor-\sqrt{n})(\lfloor \sqrt{n} \rfloor+\sqrt{n})}{n-\lfloor \sqrt{n} \rfloor}}\\\\
&={\frac{2+(\lfloor \sqrt{n} \rfloor-\sqrt{n})(\lfloor \sqrt{n} \rfloor+\sqrt{n})/n}{1-\lfloor \sqrt{n} \rfloor/n}}
\\\\& \to 2
\end{align}
$$ since, as $n \to \infty$,
$$
\left|\frac{\lfloor \sqrt{n} \rfloor}{n}\right|\leq\frac{\sqrt{n}}{n} \to 0
$$ and
$$
\left|\frac{(\lfloor \sqrt{n} \rfloor-\sqrt{n})(\lfloor \sqrt{n} \rfloor+\sqrt{n})}{n}\right|\leq\frac{2\sqrt{n}}{n} \to 0.
$$
