Problem

Source: Chinese Western Mathematical Olympiad 2006, Problem 5

Tags: number theory unsolved, number theory



Let $S=\{n|n-1,n,n+1$ can be expressed as the sum of the square of two positive integers.$\}$. Prove that if $n$ in $S$, $n^{2}$ is also in $S$.