If $1!+2!+\dots+x!$ is a perfect square, then the number of possible values of $x$ is?
I looked for a general way of expanding such a factorial series but I was not able to find one, without that I don't know any other way to approach this problem.
All help is appreciated.