For which positive integers n is there a sum of n consecutive integers that is a perfect square?

Source: Math Horizons, Sept 2016, p. 31.

[View the solution]