Gauss summation
Play and see how the problem is solved.
Información: Gauss summation