The question is to find $\sup$ and $\inf$ of $B=\{\sqrt{n} - \lfloor\sqrt{n}\rfloor | n\in\mathbb{N}\}$ where $\lfloor x \rfloor$ is defined as the largest integer that is smaller than $x$.
That $\inf B=0$ is trivial, I'm having troubles with the other side though. I think intuitively that $\sup B=1$ and random calculations seems to confirm it since I can get as many 9's after the dot as I want by calculating $\sqrt{10^{2n}-1}$ for increasingly large values of $n$, but apart from that I have no idea how to get specific values or even know if a value is sufficient for a given $\epsilon$.
Any hints on where to go with such proofs?
Hint If $n=k^2+a$ where $0 \leq a <2k+1$ then $$ \sqrt{n}-\lfloor \sqrt{n} \rfloor=\sqrt{n}-k=\frac{n-k^2}{\sqrt{n}+k}=\frac{a}{\sqrt{n}+k}\geq \frac{a}{(k+1)+k}= \frac{a}{2k+1}$$
Now it is easy to chose $k$ and $0 \leq a \leq 2k$ such that $\frac{a}{2k+1}$ becomes arbitrarily close to $1$.