I'm learning a basic lesson of number theory and get stuck with this :
Find all positive integers $n$ and prime numbers $p$ such that $n^p+3^p$ is a perfect square.
I found that if $p \ge 3$, then $n$ is in the form $4k+1$ but I'm not sure if I am on the right way. Any help would be welcome:). Thank you.