Sum of the first n numbers/Doubling/Exercise