(i) If $\displaystyle n$ is a positive integer, such that $\displaystyle 2n+1$ is a perfect square, show that $\displaystyle n+1$ is the sum of two successive perfect squares.

(ii) If $\displaystyle 3n+1$ is a perfect square, show that $\displaystyle n+1$ is the sum of three perfect square.