[Math] How many natural numbers $n$ are there such that $n!+10$ is a perfect square

elementary-number-theoryfactorialsquare-numbers

How many natural numbers $n$ are there such that $n!+10$ is a perfect square?

An argument for the only such n being n=3

The explanation given here is not very intuitive and I can't understand how to answer this question.

Best Answer

If you factor a perfect square into primes, every prime has an even exponent. The argument made says that for all $n \gt 5,$ there are at least two factors of $2$ in $n!$. In fact, this is true for all $n \ge 4$, but they covered $4$ and $5$ in the casework. Once $n!$ is a multiple of $4$, $n!+10\equiv 2 \pmod 4$ has an odd exponent of $2$, so it cannot be a perfect square.