MathDB
Sum with - and +

Source:

April 24, 2011

Problem Statement

Compute the sum S=1+2+345+6+7+8910+2010S=1+2+3-4-5+6+7+8-9-10+\dots-2010 where every three consecutive ++ are followed by two -.