6. Find all positive integers n such that is a perfect square.
We use the fact that between square of two consecutive numbers there exist no perfect square. That is between and there is no square.
Note that and are two consecutive perfect square and is always a number between them for n > 2 (easily proved by induction).
Hence the only solution is n = 2.