In prime factorization form of p!, every power of prime should be even.
For p>1, there exists at least a prime between p/2 and p(including p). So, there exists a prime whose power is 1 (This is concluded using the formula).
So, for p>1, no factorial can be a perfect square.
The only solution is a=1 and p=1 in positive integers.

Comments: (
You must be logged in to post comments.)