If $n\in\mathbb N$ and $k\in\mathbb Z$, solve $$n^3-32n^2+n=k^2$$
I've tried checking congruence modulo $4$. I have that n is divisible by 4. Let $n=4u$, where $u\in\mathbb N$. Then the equation becomes $$16u^3-32u^2+u=(\frac{k}{2})^2$$ And we know that $k$ is even (divisible by $4$). So $$16u^3-32u^2+u=r^2$$ Where $r\in\mathbb Z$. It is an even number as well. That's what I've tried so far.
First of all, let's factor the expression on the left-hand side:
$$n^3-32n^2+n = n(n^2-32n+1) = n\left((n-16)^2 - 255\right)$$
Since $\gcd(n,n^2-32n+1)=1$, both $n$ and $n^2-32n+1$ must be squares in order for their product to be a square. Thus, there is some integer $m$ such that $$(n-16)^2 - 255 = m^2$$ or, equivalently, $$(n-16-m)(n-16+m) = 255$$
Since the quantities on the left-hand side are integers, they must be divisors of $255$. If $d$ is any divisor of $255$, we'd have $$n = 16+\frac{1}{2}\left(d+\frac{255}{d}\right)$$
and we know that $n$ must be square itself. This leaves us with just eight possible values of $d$ to try ($\pm 1, \pm 3, \pm 5, \pm 15$; the remaining eight will be covered by them). As it turns out, only $d=(-15)$ and $d=1$ produce square value of $n$ ($n=144$ or $n=0$), which leads to three (or two, if we restrict ourselves to strictly positive values of $n$) solutions: $$(n,k)\in \{ (0, 0), (144, \pm 1524) \}$$.