Prove that every non-square number is given by the sequence $$a(n) = n + \Big\lfloor \frac 12 + \sqrt n\Big\rfloor$$ where $\lfloor x \rfloor$ represents the greatest integer less than or equal to $x$.
Attempt: Let $n$ be some natural number. Then, we know that up to $n$, there are $\Big\lfloor \sqrt{n}\Big\rfloor$ perfect squares.
That means, the $nth$ non square number will in the range greater than or equal to $n+\Big\lfloor{\sqrt{n}}\Big\rfloor$. But some of the numbers in this range might also turn out to be square numbers! The challenge would be to weed out these square numbers.
Now, for any $n:\Big\lfloor \frac 12 + \sqrt {n}\Big\rfloor$ represents the nearest integer to $\sqrt{n}$. But, still thinking how I can use this result to prove the result above.
Any hints please? Thanks!