The sequence $\{a_n\}^{∞}_{n=1} = \{2,3,5,6,7,8,10,...\}$ consists of all the positive integers that are not perfect squares.
Prove that $a_n= n+ [\sqrt{n} + \frac{1}{2}]$.
Well, I managed to prove that $ m^2 < n+ [\sqrt{n} + \frac{1}{2}] < (m+1)^2 $, where $[\sqrt{n} + \frac{1}{2}] = m$.
But is this enough to answer the question? Or do we also need to prove that $n+ [\sqrt{n} + \frac{1}{2}] $ can take all non-perfect square values. If yes, then how?
Any help is appreciated, thanks!
The increment $$a_{n+1}-a_n=1+\left\lfloor\sqrt{n+1}+\dfrac12\right\rfloor-\left\lfloor\sqrt{n}+\dfrac12\right\rfloor$$
is $1$, or $2$ when $\sqrt{n+1}$ rounds differently than $\sqrt n$.