Solve $\biggl\lfloor{\dfrac{n^2}{2}}\biggr\rfloor = \Bigl\lfloor{\dfrac{n}{2}}\Bigr\rfloor^2$, where $n$ is an integer.
$\textbf{What I tried:}$
I wrote $$ k^2 \leq \Bigl(\frac{n}{2}\Bigr)^2 < k^2+1+2k, $$ where $k$ is the largest integer less than $\smash{\dfrac{n}{2}}$. Similarly, I wrote $$ k^2 \leq \frac{n^2}{2} < k^2+1 $$ for the LHS of the given equation. I simplified and solved, and got that $k^2 < 1$ and $(k+2)^2 > 2$, but these solutions are do not quite help me find all the answers. Particularly, the answers to the original equation should be $n = 0, 1, -3$.
$\textbf{Where I need help:}$
What would be the inequalities I should write to solve this problem? In general, I struggle with this type of problem where we have an equation with floor functions to solve. What are some general strategies I can implement to solve them?
$n$ is an integer, I presume? If so then you'll want to tackle it in cases, those being $n$ even and $n$ odd. If $n$ is even, then it can be written as $2k$ for some integer $k$, and $\lfloor \frac{n^2}{2} \rfloor = \lfloor \frac{4k^2}{2} \rfloor = 2k^2$. Meanwhile, the right side of the equation will be $\lfloor \frac{2k}{2}\rfloor^2 = \lfloor k\rfloor^2 = k^2$. The overall equation will therefore be $2k^2=k^2$ which is true only when $k=0$; since $n=2k$ this means that $n=0$ also, which is one of your solutions.
Next, suppose $n$ is odd; that is, $n=2m+1$ for some integer $m$. Then $\lfloor \frac{n^2}{2}\rfloor = \lfloor \frac{(2m+1)^2}{2}\rfloor =\lfloor \frac{4m^2+4m+1}{2}\rfloor = \lfloor 2m^2+2m+\frac{1}{2}\rfloor = 2m^2+2m$. On the right we have $\lfloor \frac{2m+1}{2}\rfloor^2 = \lfloor m+\frac{1}{2}\rfloor^2 = m^2$. So overall we have $2m^2+2m=m^2$. This implies that $m^2+2m=0$, and factoring out an $m$ yields $m(m+2)=0$; in other words, $m=0$ or $m=-2$. Since $n=2m+1$, this gives us $n=2(0)+1=1$ and $n=2(-2)+1=-3$ as solutions, which were the other two you were given.
In summary: no inequalities required, at least when dealing with integers. In such cases, even-odd arguments will always suffice.