Find number of $n\in\{1,2,\dotsc,1000\}$ such that $\exists x\in\mathbb{R}^+$ where $x^2+\lfloor x^2\rfloor=n$.
My approach :
As $\lfloor x^2\rfloor$ and $n$ are integers, then $x^2$ is a (positive) integer, say $k$.
As $x^2$ is an integer, therefore $\lfloor x^2\rfloor=x^2$ which implies $n=2x^2=2k$.
Therefore all $n$ that satisfy the statement are even which implies there are $500$ solution for $n$.
But the answer key says there are 516 solutions for $n$.
Clarification for the correct solution (and its method to get to the answer) is appreciated.
I ran some Mathematica code to look for solutions to your problem, using the following code:
And it gave me:
Which are just a few of al the found solutions.
To find the number of solutions I wrote:
So, there are $50 + 50 + 50 + 50 + 50 + 50 + 50 + 50 + 50 + 50=500$ solutions to your problem.
EDIT when you've your equation wrong and it is $x^2+\lfloor x\rfloor ^2=\text{n}$ we get:
So it has $51 + 49 + 56 + 48 + 51 + 56 + 49 + 40 + 59 + 57=516$ solutions.