Consecutive squares

FInd the sum of all positive integers $$n<2017$$ that have the property that $$n^2 + (n+1)^2$$ is also a perfect square.

×