Gauss summation
Play and see how the problem is solved.
Informação: Gauss summation