Prove that no number of the form $ a^3+3a^2+a $, for a positive integer $a$, is a perfect square.
This problem was published in the Italian national competition (Cesenatico 1991). I've been trying to solve it using modular arithmetic, without success. Thank you for your interest in this question.
Well $a^3+3a^2+a=a(a^2+3a+1)$ and you can see that $\gcd(a,a^2+3a+1)=1$. So if it's a square, then $a^2+3a+1$ has to be a square too.
But that's not possible, because it's strictly between $(a+1)^2=a^2+2a+1$ and $(a+2)^2=a^2+4a+4$.