# Prime time squares!

Suppose $$p$$ is a prime number and $$n \in \mathbb N$$ such that $$1+np$$ is a perfect square. For what prime number $$p$$ can $$n+1$$ be written as a sum of 2017 perfect squares?

×